import time
from machine import Pin
time.sleep(0.1) # Wait for USB to become ready
#PRIMER SEMAFORO DERECHA
LR = Pin(0, Pin.OUT) #VERDE
LA = Pin(1, Pin.OUT) #AMARILLO
Lv = Pin(2, Pin.OUT) #ROJO
#SEGUNDO SEMAFORO ISQUIERDA
LO = Pin(20, Pin.OUT) #ROJO
LK = Pin(19, Pin.OUT) #AMARILLO
LJ = Pin(18, Pin.OUT) #VERDE
while True:
LR.value(0)
time.sleep(0)
LA.value(0)
time.sleep(0)
Lv.value(3)
time.sleep(1)
LO.value(0)
time.sleep(0)
LK.value(1)
time.sleep(0)
LJ.value(20)
time.sleep(1)