import machine
from machine import Pin
import time
#time.sleep_ms(200)
LedRojo = Pin(12,Pin.OUT)
Boton1 = Pin(4,Pin.IN,Pin.PULL_UP)
Boton2 = Pin(2,Pin.IN,Pin.PULL_UP)
while True:
A = not Boton1.value()
B = not Boton2.value()
LedRojo.value(A and B)
print("A="+str(bool(A))+" B="+str(bool(B))+" Led="+str(bool(A and B)))