PyRasp

← All practice problems

Raspberry Pi Pico practice problem · Raspberry Pi Pico

First blink

EasyBudget $4MicroPython

The Pico's first program: an LED on GP13 blinks 0.5 s on, 0.5 s off, forever.

  • machine.Pin(13, Pin.OUT) makes the pin an output.
  • led.toggle() flips it; utime.sleep(0.5) waits half a second.

A red LED and its 330 Ω resistor are already wired in circuit.py.

More in Raspberry Pi Pico