3. Onboard LED#
Pico:ed includes an onboard LED. This LED is a firmware status indicator that flashes rapidly several times when reset and every 5 seconds when the program is idle, and this LED is programmable.
The instance of class Led represents the onboard LEDs.
It is to represent an LED.
pin - Led pins
Turns on the LED.
Turn off the LED.
Toggle the LED state.
Deinit the LED and release the pin.
import time from picoed import * while True: led.on() time.sleep(0.5) led.off() time.sleep(0.5)
import time from picoed import * while True: led.toggle() time.sleep(0.5)