import machine
import time
led = machine.Pin("LED", machine.Pin.OUT)
while True:
led.off()
print("LED: OFF")
time.sleep(2)
led.on()
print("LED: ON")
time.sleep(2)
Loading
pi-pico-w
pi-pico-w
import machine
import time
led = machine.Pin("LED", machine.Pin.OUT)
while True:
led.off()
print("LED: OFF")
time.sleep(2)
led.on()
print("LED: ON")
time.sleep(2)