from machine import Pin 

led = Pin(21, Pin.OUT)
boton = Pin(19, Pin.IN)

while True:
    if boton.value() == 1:
        led.value(1)
    else:
        led.value(0)
$abcdeabcde151015202530354045505560fghijfghij
BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT