from machine import Pin
from utime import sleep
LED= Pin(4, Pin.OUT)
BUTTON = Pin(2, Pin.IN)
while True:
if BUTTON.value() == 1:
LED.on()
sleep(0.1)
else:
LED.off()
LED = Pin(4, Pin.OUT)
BUTTON_S = Pin(3, Pin.OUT)
while True:
if BUTTON_S.value() == 1:
LED.on()
sleep(0.1)
else:
LED.off()
"""interruptor duplo para um led"""