from machine import Pin
from utime import sleep
r1=Pin(14,Pin.OUT)
y1=Pin(13,Pin.OUT)
g1=Pin(11,Pin.OUT)
r2=Pin(3,Pin.OUT)
y2=Pin(1,Pin.OUT)
g2=Pin(0,Pin.OUT)
r3=Pin(16,Pin.OUT)
y3=Pin(17,Pin.OUT)
g3=Pin(19,Pin.OUT)
r4=Pin(28,Pin.OUT)
y4=Pin(27,Pin.OUT)
g4=Pin(26,Pin.OUT)
while True:
y1.off()
y4.off()
g1.on()
r2.on()
r3.on()
r4.on()
sleep(5.0)
y1.on()
y2.on()
g1.off()
r2.off()
sleep(5.0)
r1.on()
g2.on()
y1.off()
y2.off()
sleep(5.0)
g2.off()
r3.off()
y2.on()
y3.on()
sleep(5.0)
r2.on()
g3.on()
y2.off()
y3.off()
sleep(5.0)
y3.on()
y4.on()
g3.off()
r4.off()
sleep(5.0)
g4.on()
r3.on()
y3.off()
y4.off()
sleep(5.0)
g4.off()
r1.off()
y4.on()
y1.on()
sleep(5.0)