import machine
from machine import Pin
ledRojo = Pin(3, Pin.OUT)
ledVerde = Pin(4, Pin.OUT)
ledAzul = Pin(5, Pin.OUT)
SliderA = Pin(6, Pin.IN, Pin.PULL_UP)
SliderB = Pin(7, Pin.IN, Pin.PULL_UP)
SliderC = Pin(8, Pin.IN, Pin.PULL_UP)
ledVerde.value(0)
ledAzul.value(0)
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)