from machine import Pin
import time
E_Red=Pin(32,Pin.OUT)
E_Yellow=Pin(33,Pin.OUT)
E_Green=Pin(25,Pin.OUT)
W_Red=Pin(19,Pin.OUT)
W_Yellow=Pin(18,Pin.OUT)
W_Green=Pin(5,Pin.OUT)
N_Red=Pin(23,Pin.OUT)
N_Yellow=Pin(22,Pin.OUT)
N_Green=Pin(21,Pin.OUT)
S_Red=Pin(4,Pin.OUT)
S_Yellow=Pin(2,Pin.OUT)
S_Green=Pin(15,Pin.OUT)
while True:
E_Red.on()
W_Red.on()
N_Green.on()
S_Green.on()
time.sleep(10)
N_Green.off()
S_Green.off()
S_Yellow.on()
N_Yellow.on()
time.sleep(5)
E_Red.off()
W_Red.off()
E_Green.on()
W_Green.on()
S_Yellow.off()
N_Yellow.off()
S_Red.on()
N_Red.on()
time.sleep(10)
E_Yellow.on()
W_Yellow.on()
E_Green.off()
W_Green.off()
time.sleep(5)
E_Yellow.off()
W_Yellow.off()
S_Red.off()
N_Red.off()