from machine import Pin
from time import sleep
e_red=Pin(23,Pin.OUT)
e_yellow=Pin(22,Pin.OUT)
e_green=Pin(21,Pin.OUT)
w_red=Pin(14,Pin.OUT)
w_yellow=Pin(12,Pin.OUT)
w_green=Pin(13,Pin.OUT)
n_red=Pin(33,Pin.OUT)
n_yellow=Pin(25,Pin.OUT)
n_green=Pin(26,Pin.OUT)
s_red=Pin(5,Pin.OUT)
s_yellow=Pin(18,Pin.OUT)
s_green=Pin(19,Pin.OUT)
while True:
e_red.on()
w_red.on()
n_green.on()
s_green.on()
sleep(5)
w_red.off()
e_red.off()
e_yellow.on()
w_yellow.on()
sleep(5)
e_yellow.off()
w_yellow.off()
n_green.off()
s_green.off()
n_red.on()
s_red.on()
e_green.on()
w_green.on()
sleep(5)
n_yellow.on()
s_yellow.on()
n_red.off()
s_red.off()
sleep(5)
n_yellow.off()
s_yellow.off()
e_green.off()
w_green.off()