from machine import Pin
import time
RED1_PIN = 2
YELLOW1_PIN = 4
GREEN1_PIN = 5
RED2_PIN = 12
YELLOW2_PIN = 13
GREEN2_PIN = 14
RED3_PIN = 15
YELLOW3_PIN = 16
GREEN3_PIN = 17
RED4_PIN = 18
YELLOW4_PIN = 19
GREEN4_PIN = 21
red1 = Pin(RED1_PIN, Pin.OUT)
yellow1 = Pin(YELLOW1_PIN, Pin.OUT)
green1 = Pin(GREEN1_PIN, Pin.OUT)
red2 = Pin(RED1_PIN, Pin.OUT)
yellow2 = Pin(YELLOW1_PIN, Pin.OUT)
green2 = Pin(GREEN1_PIN, Pin.OUT)
red3 = Pin(RED1_PIN, Pin.OUT)
yellow2 = Pin(YELLOW1_PIN, Pin.OUT)
green3 = Pin(GREEN1_PIN, Pin.OUT)
red4 = Pin(RED1_PIN, Pin.OUT)
yellow4 = Pin(YELLOW1_PIN, Pin.OUT)
green4 = Pin(GREEN1_PIN, Pin.OUT)
while True:
red1.on()
time.sleep(1)
red1.off()
yellow1.on()
time.sleep(1)
yellow1.off()
green1.on()
time.sleep(1)
green1.off()