import machine
from machine import Pin
#definimos salidas
ledRojoC = Pin(14,Pin.OUT)
ledAzulS = Pin(12,Pin.OUT)
#definimos entradas
SliderA = Pin(4,Pin.IN,Pin.PULL_UP)
SliderB = Pin(2,Pin.IN,Pin.PULL_UP)
while True:
A = SliderA.value()
B = SliderB.value()
XOR = ((not A and B) or (A and not B))
AND = (A and B)
ledRojoC.value(AND)
ledAzulS.value(XOR)