from machine import Pin
import time
# LED on GPIO 15
led = Pin(5, Pin.OUT)
while True:
led.value(1) # LED ON
time.sleep(1) # wait 1 second
led.value(0) # LED OFF
time.sleep(1) # wait 1 second
Loading
pi-pico-w
pi-pico-w
from machine import Pin
import time
# LED on GPIO 15
led = Pin(5, Pin.OUT)
while True:
led.value(1) # LED ON
time.sleep(1) # wait 1 second
led.value(0) # LED OFF
time.sleep(1) # wait 1 second