from machine import Pin
from time import sleep
ledrojo = Pin(15, Pin.OUT)
while True:
ledrojo.value(1)
print("LED . ROJO ENCENDIDO")
sleep (5)
ledrojo.value(0)
print("LED . ROJO APAGADO")
sleep (2)
ledrojo = Pin(14, Pin.OUT)
while True:
ledramarillo.value(1)
print("LED . ROJO ENCENDIDO")
sleep (10)
ledrojo.value(0)
print("LED . ROJO APAGADO")
sleep (2)
ledrojo = Pin(13, Pin.OUT)
while True:
ledverde.value(1)
print("LED . ROJO ENCENDIDO")
sleep (20)
ledrojo.value(0)
print("LED . ROJO APAGADO")
sleep (2)