from machine import Pin
from utime import sleep
led_rojo1=Pin(4, Pin.OUT)
led_amarillo1=Pin(2, Pin.OUT)
led_verde1=Pin(15, Pin.OUT)
led_rojo2=Pin(5, Pin.OUT)
led_amarillo2=Pin(18, Pin.OUT)
led_verde2=Pin(19, Pin.OUT)
while True:
led_verde1.value(1)
print("On")
sleep(5)
led_verde1.value(0)
print("Off")
sleep(0)
led_amarillo1.value(1)
print("On")
sleep(1)
led_amarillo1.value(0)
print("Off")
sleep(0)
led_rojo1. value(1)
print("On")
sleep(5)
led_rojo1.value(0)
print("Off")
sleep(0)
led_amarillo1.value(1)
print("On")
sleep(1)
led_amarillo1.value(0)
print("Off")
sleep(0)