from machine import Pin
import time
led = Pin(6, Pin.OUT)
boton1 = Pin(1, Pin.IN, Pin.PULL_UP)
boton2 = Pin(11, Pin.IN, Pin. PULL_UP)
estado_led = 0
while True:
if boton1.value()== 0:
estado_led = not estado_led
led.value(estado_led)
time.sleep(0.3)