from machine import Pin
import time
red = Pin(0, Pin.OUT)
yellow = Pin(7, Pin.OUT)
green = Pin(14, Pin.OUT)
for i in range (3):
red.toggle()
time.sleep(2)
red.toggle()
yellow.toggle()
time.sleep(2)
yellow.toggle()
green.toggle()
time.sleep(2)
green.toggle()
for i in range (10):
red.toggle()
yellow.toggle()
green.toggle()
time.sleep(0.5)