import machine
from machine import Pin
#definimos Salida
ledRojo = Pin(12, Pin.OUT)
SliderA = Pin(2,Pin.IN,Pin.PULL_UP)
SliderB = Pin(4,Pin.IN,Pin.PULL_UP)
SliderC = Pin(5,Pin.IN,Pin.PULL_UP)
while True:
A = SliderA.value()
B = SliderB.value()
C = SliderC.value()
mayoria = ( (A and B) or (A and C) or (B and C))
ledRojo.value(mayoria)