Windows Subsystem for Linux (WSL) allows you to install a complete Ubuntu terminal environment in minutes on your Windows machine, allowing you to develop cross-platform applications without leaving Windows. Install Ubuntu on WSL for Windows
sudo apt update
sudo apt install -y build-essential git cmake gcc-arm-none-eabi
git clone https://github.com/raspberrypi/pico-sdk.git ~/pico-sdk
git -C ~/pico-sdk submodule update --init
export PICO_SDK_PATH=~/pico-sdk
git clone https://github.com/markadev/AppleII-VGA.git ~/AppleII-VGA
cd ~/AppleII-VGA/pico
mkdir build
cd build
cmake -DAPPLE_MODEL=IIE -DCMAKE_BUILD_TYPE=Release ..
make
$ ls *uf2
...
applevga.uf2
git clone https://github.com/markadev/AppleII-VGA.git ~/AppleII-VGA
cd ~/AppleII-VGA/pico
mkdir build
cd build
cmake -DAPPLE_MODEL=IIPLUS -DCMAKE_BUILD_TYPE=Release ..
make
$ ls *uf2
...
applevga.uf2
Hold down the BOOTSEL button and connect the Raspberry Pi Pico to your PC via micro USB cable. Once Pico is connected release the BOOTSEL button. Pi Pico should be connected to PC with USB mass storage device mode.
A disk volume called RPI-RP2 will appear on your computer. Drag and drop the applevga.uf2 file to that volume. RPI-RP2 will unmount and Pico will start the program.
There's a test pattern image in the source code that one can set to display immediately at power on, and Pico
microcontroller can be powered entirely from USB. To enable test pattern just uncomment RENDER_TEST_PATTERN
flag in render.h
:
// #define RENDER_TEST_PATTERN