import machine
from machine import Pin
LedRojo = Pin(12,Pin.OUT)
LedAmarillo = Pin(14,Pin.OUT)
Entrada1 = Pin(19,Pin.IN,Pin.PULL_UP)
Entrada2 = Pin(5,Pin.IN,Pin.PULL_UP)
Entrada3 = Pin(4,Pin.IN,Pin.PULL_UP)
while True:
A = Entrada1.value()
B = Entrada2.value()
C = Entrada3.value()
amarillo = A or B
rojo = C or A
LedRojo.value(rojo)
LedAmarillo.value(amarillo)