import time
import machine
tiempo = 500
led = machine.Pin(32, machine.Pin.OUT)
boton = machine.Pin(13, machine.Pin.IN)
while True:
if (boton.value()):
led.on()
time.sleep_ms(tiempo)
led.off()
time.sleep_ms(tiempo)