from machine import Pin
from utime import sleep
r1=Pin(1,Pin.OUT)
y1=Pin(5,Pin.OUT)
g1=Pin(9,Pin.OUT)
r2=Pin(27,Pin.OUT)
y2=Pin(28,Pin.OUT)
g2=Pin(22,Pin.OUT)
while True:
y1.off()
y2.off()
g1.on()
r2.on()
sleep(5.0)
g1.off()
r2.off()
y1.on()
y2.on()
sleep(5.0)
y1.off()
y2.off()
r1.on()
g2.on()
sleep(5.0)
g2.off()
r1.off()
y1.on()
y2.on()
sleep(5.0)