MicroPythonRaspberry Pi PicoExact chip

MicroPython: blink

MicroPython’s own firmware on the real RP2040: the LED blinks, the board prints. No build.

MicroPython: blink in Argynix Lab

The code

main.pyPython
# The Pico's LED blinks and the board prints. This is MicroPython's own firmware on the
# exact RP2040: press Run and it starts at once, no build. When it stops, type into its REPL.
from machine import Pin
import time

led = Pin("LED", Pin.OUT)
for n in range(20):
    led.toggle()
    print("blink", n)
    time.sleep(0.25)
print("done")