User Tools

Site Tools


using_the_pico_run_button_-_simple

This is an old revision of the document!


Using the Pico RUN Button - Simple

Jul 2026


Introduction


The Raspberry Pi Pico has a RUN pin, see below.


Connecting this Pin to GND starts (or if it is already running restarts) the Raspberry Pi Pico. For this example I am going connect a button from the RUN pin (30) to the GND Pin (28).

Connect the button as shown below, we are using the Raspberry Pico onboard LED.


The code we are going to use is a simple piece of Micro Python to flash the onboard LED, this code works on both the Wireless and non Wireless Pico boards.

Pico Code

Download this code and save it to your Pico in a file called main.py.

| download
from picozero import pico_led
pico_led.blink(0.1)


If you reboot the Pico (unplug it and plug it back in) the main.py file will be loaded on boot, and the onboard LED will start to flash.


Looking at the video above, we can see the code that flashes the LED is running, we press the button that connects the RUN button to GND, this resets the Pico. The Pico then reboots and runs the code main.py again (the led flash code).


using_the_pico_run_button_-_simple.1784219202.txt.gz · Last modified: by walkeradmin