pimoroni-pico-rp2350/micropython/examples/pico_plus_2_w/onboard_led.py
2024-10-01 15:35:47 +01:00

15 lines
187 B
Python

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