from machine import Pin
from utime import sleep
sleep(0.01) # Wait for USB to connect
print("Hello, Pi Pico!")
button = Pin(26, Pin.IN)
led = Pin(5, Pin.OUT)
while True:
led.value(button.value())
sleep(0.1)
from machine import Pin
from utime import sleep
sleep(0.01) # Wait for USB to connect
print("Hello, Pi Pico!")
button = Pin(26, Pin.IN)
led = Pin(5, Pin.OUT)
while True:
led.value(button.value())
sleep(0.1)