pimoroni-pico-rp2350/micropython/examples/pico_plus_2/onboard_led.py
2024-08-09 13:43:24 +01:00

15 lines
183 B
Python

import time
from machine import Pin
# Setup the LED pin.
led = Pin(25, Pin.OUT)
# Blink the LED!
while True:
led.value(1)
time.sleep(1)
led.value(0)
time.sleep(1)