import time
from machine import Pin
green_south = Pin(27, Pin.OUT)
yellow_south = Pin(26, Pin.OUT)
red_south = Pin(25, Pin.OUT)
green_north = Pin(13, Pin.OUT)
yellow_north = Pin(12, Pin.OUT)
red_north = Pin(14, Pin.OUT)
green_west = Pin(21, Pin.OUT)
yellow_west = Pin(22, Pin.OUT)
red_west = Pin(23, Pin.OUT)
green_east = Pin(18, Pin.OUT)
yellow_east = Pin(17, Pin.OUT)
red_east = Pin(16, Pin.OUT)
while True:
green_south.on()
green_north.on()
red_west.on()
red_east.on()
time.sleep(2)
red_west.off()
red_east.off()
green_south.off()
green_north.off()
yellow_south.on()
yellow_north.on()
yellow_west.on()
yellow_east.on()
time.sleep(2)
yellow_south.off()
yellow_north.off()
yellow_west.off()
yellow_east.off()
green_east.on()
green_west.on()
red_south.on()
red_north.on()
time.sleep(2)
green_east.off()
green_west.off()
red_south.off()
red_north.off()
yellow_south.on()
yellow_north.on()
yellow_west.on()
yellow_east.on()
time.sleep(2)
yellow_south.off()
yellow_north.off()
yellow_west.off()
yellow_east.off()