Micro Python

Jun 2026

Micro Python Examples - Pico

Here are some Micro Python programs for you to try. Please bear in mind that these examples will likely require you to build some basic hardware (A Pico with, LEDs or buttons etc) before you can test the Micro Python code itself. In the Projects Section, there will be files for building the project hardware, software and 3D print files for the casing etc. Many of these examples will work with Raspberry Pi and other RP based devices.

What is Micro Python

Raspberry Pi Pico Simulator - Only use this to start if you don't have a Raspberry Pi Pico board.

Button Controlled LED

These first three examples all use the onboard LED on the Raspberry Pi Pico.

LED On and Off

Flash the LED Ex1

Blink the LED

From here we are using the GPIO pins on the Raspberry Pi Pico.

GPIO Controlled LEDs

Traffic Light LEDs using Array

Control an LED Using a Button

Control an LED using a Webpage

Using the Pico RUN Button - Simple

Using the Pico RUN Button

Making your Raspberry Pi Pico code run on boot.

Using Breakout Time Delay

Using a Breakout Button

Using a Breakout Button - Better code but slightly more complex

Full Projects. Full Projects are where we have built some circuitry, written some Micro Python Code and 3D Modelled an enclosure/stand etc. Sections in here might exist in other areas of the wiki, but to tie them together, we will create a project and put all relevant information in there.

Project 1 - Coming Soon

Micro Python Examples - Waveshare

The Micro Python examples here will not work with the Raspberry Pi Pico, as we are addressing hardware not available on the Raspberry Pi Pico. These include, but are not limited to:

USB Type-C: Replaces the standard micro-USB connector.

Battery Charging Circuitry: Onboard JST connectors and recharge/discharge circuits.

More Flash Memory: Options with 4MB or 16MB of onboard flash instead of the Pico's 2MB.

Extra Pins: Extra GPIOs exposed (up to 29 on the Zero, compared to 26 on the Pico).

Hardware Buttons: Dedicated Reset and BOOT buttons.

OnBoard Neo Pixel instead of single colour LED

Micro Python code listed here may use some of the above features, so will not work on a Raspberry Pi Pico.