from machine import Pin
import utime
ledverde=Pin(5,Pin.OUT)
ledamarillo=Pin(9,Pin.OUT)
ledrojo=Pin(13,Pin.OUT)
lverde=Pin(28,Pin.OUT)
lamarillo=Pin(22,Pin.OUT)
lrojo=Pin(18,Pin.OUT)
while True:
lrojo.on()
ledverde.on()
utime.sleep(3)
ledverde.off()
ledamarillo.on()
utime.sleep(3)
ledamarillo.off()
lrojo.off()
ledrojo.on()
lverde.on()
utime.sleep(3)
lverde.off()
lamarillo.on()
utime.sleep(3)
lamarillo.off()
ledrojo.off()