from machine import Pin
from time import sleep
BUTTON = Pin(1, Pin.IN)
led = Pin(11, Pin.OUT)
while True:
 print(BUTTON.value())
 if BUTTON.value() == 1:
    led.on()
    sleep(1)

 else:
    led.off()
    sleep(1)
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT