from machine import Pin
import time
#Create a pin instance for the LED
led = Pin("LED", Pin.OUT)
#Enter an infinite loop
while True:
led.toggle() #Toggle pin state
print("LED Blink")
time.sleep_ms(1000) #Sleep 1 second
Loading
pi-pico-w
pi-pico-w