from machine import Pin
led = Pin(4,Pin.OUT)
presionar_boton=Pin(13, Pin.IN,Pin.PULL_UP)
while True:
if presionar_boton.value() == False:
led.value(1)
print("Led encendido")
else:
led.value(0)
print("Led apagado")