print("Hello, ESP32!")
from machine import Pin
import time
#G1
p25 = Pin(25,Pin.OUT)
#Y1
p26 = Pin(26,Pin.OUT)
#R1
p27 = Pin(27,Pin.OUT)
#G2
p14 = Pin(14,Pin.OUT)
#Y2
p12 = Pin(12,Pin.OUT)
#R2
p13 = Pin(13,Pin.OUT)
while True:
p25.value(1) # G1
p13.value(1) # R2
time.sleep(5)
p25.value(0) # G1
p26.value(1) # Y1
time.sleep(2)
p26.value(0) # Y1
p27.value(1) # R1
p13.value(0) # R2
p14.value(1) # G2
time.sleep(5)
p14.value(0) # G2
p12.value(1) # Y2
time.sleep(2)
p12.value(0) # Y2
p27.value(0) # R1