from machine import Pin
import time
boton = Pin(19,Pin.IN)
led = Pin(21,Pin.OUT)
while True:
estado = boton.value()
led.value(estado)
from machine import Pin
import time
boton = Pin(19,Pin.IN)
led = Pin(21,Pin.OUT)
while True:
estado = boton.value()
led.value(estado)