Raspberry Pi Pico W MicroPython example Updated 2025-07-27
An upstream repo at: github.com/raspberrypi/pico-micropython-examples
Some generic Micropython examples most of which work on this board can be found at: Section "MicroPython example".
The examples can be run as described at Program Raspberry Pi Pico W with MicroPython.
- rpi-pico-w/upython/led_on.py: turn on-board LED on and leave it on forever. Useful to quickly check that you are still able to update the firmware.
- rpi-pico-w/upython/led_off.py: turn on-board LED off and leave it off forever
- rpi-pico-w/upython/pwm.py: pulse width modulation. Using the same circuit as the rpi-pico-w/upython/blink_gpio.py, you will now see the external LED go from dark to bright continuously and then back