import machine
from machine import Pin
#Pines de entrada
A_in = Pin(2, Pin.IN, Pin.PULL_UP)
B_in = Pin(4, Pin.IN, Pin.PULL_UP)
C_in = Pin(18, Pin.IN, Pin.PULL_UP)
#Led de salida
led = Pin(13, Pin.OUT)
while True:
A = A_in.value()
B = B_in.value()
C = C_in.value()
And = (A and B and C)
led.value(And)
print("A = " + str(bool(A)) + " B = " + str(bool(B)) + " C = " + str(bool(C)))