import machine
from machine import Pin
LedRojoS1 = Pin(14,Pin.OUT)
LedAzulS0 = Pin(12,Pin.OUT)
Slider1 = Pin(5,Pin.IN,Pin.PULL_UP)
Slider2 = Pin(4,Pin.IN,Pin.PULL_UP)
Slider3 = Pin(2,Pin.IN,Pin.PULL_UP)
while True:
E1 = Slider1.value()
E2 = Slider2.value()
E3 = Slider3.value()
S1 = ((not E1 and E2 and not E3) or (not E1 and not E2 and E3))
S0 = ((E1 and not E2 and not E3) or (not E1 and not E2 and E3))
LedRojoS1.value(S1)
LedAzulS0.value(S0)