print("Hello, ESP32!")
import machine
from machine import Pin
ledRojo = Pin(12,Pin.OUT)
SliderA = Pin(4,Pin.IN,Pin.PULL_UP)
SliderB = Pin(2,Pin.IN,Pin.PULL_UP)
SliderC = Pin(15,Pin.IN,Pin.PULL_UP)
while True:
A = SliderA.value()
B = SliderB.value()
C = SliderC.value()
compuertaAnd = (A and B and C)
ledRojo.value(compuertaAnd)
print("A " + str(bool(A)) + " B " + str(bool(B)) + " C " + str(bool(C)) + " AND " + str(bool(compuertaAnd)))