from machine import Pin
import utime
import time

buttom = Pin(12,Pin.IN,Pin.PULL_DOWN)
led = Pin(1,Pin.OUT)


while True :
    if buttom.value():
        led.value(1)
        time.sleep(0.05)

    else :
        led.value(0)
        time.sleep(0.05)
        

BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT