- Install VS Code.
- In VS Code, install the "MicroPico" extension.
- Download the MicroPython firmware from: https://micropython.org/download/RPI_PICO/RPI_PICO-latest.uf2
- Connect the RP2040-Zero to the computer. If a USB Drive doesn't appear, press: reset-down, boot-down, reset-up, boot-up.
- Open the USB Drive that appeared. Copy on the MicroPython uf2 file. Wait 30 seconds.
- Use Device Manager (or SerialTest) to see that a new USB Serial Device appeared.
- In VS Code with MicroPython, see that it's connected (see the status bar at the very bottom).
- Optional: Run
pip install micropython-rp2-rpi_pico-stubs
to install Python type checking helpers. - Load the
rp2040_zero_onboard_led_example.py
file from this gist. Name itmain.py
. - Flash the firmware in this repo by pressing "Run".
- Use Ctrl+Shift+P -> "MicroPico: Upload project to Pico" to upload a project to the RP2040, such that it persists across reboots.
To reset the RP2040-Zero so that you can install a new program on it:
- Download the flash_nuke.uf2 file.
- Copy that file to the mounted USB Drive. Let it reboot.
- Copy the MicroPython firmware from steps above to the mounted USB Drive. Let it reboot.