Raspberry Pi Pico practice problem · Raspberry Pi Pico
One-second glow
MediumBudget $4MicroPython
Turn an LED on GP13 on now, and let a one-shot Timer turn it off one second later.
timer = Timer()
timer.init(mode=Timer.ONE_SHOT, period=1000, callback=off)
The main loop keeps sleeping so the timer gets its turn.