from machine import Pin
from utime import sleep
led_verde_1= Pin(25, Pin.OUT)
led_amarillo_1 = Pin(26, Pin.OUT)
led_rojo_1 = Pin(27, Pin.OUT)
#Comenzamos con el ciclo
while True:
led_rojo_1.value(1)
print("Se enciende Rojo 1")
sleep(2)
led_rojo_1.value(0)
print("Se apaga Rojo 1")
led_amarillo_1.value(1)
print("Se enciende Amarillo 1")
sleep(2)
led_amarillo_1.value(0)
print("Se apaga Amarillo 1")
sleep(0)