import machine
from machine import Pin
#Salidas
LEDROJO = Pin(3,Pin.OUT)
LEDVERDE = Pin(4,Pin.OUT)
LEDAZUL = Pin(5,Pin.OUT)
#ENTRADAS
SliderA = Pin(6,Pin.IN,Pin.PULL_UP)
SliderB = Pin(7,Pin.IN,Pin.PULL_UP)
SliderC = Pin(8,Pin.IN,Pin.PULL_UP)
while True:
A = SliderA.value()
B = SliderB.value()
C = SliderB.value()
MAYORIA = ((A and C)or(A and B)or(B and C))
LEDROJO.value(MAYORIA)