from machine import Pin
from time import sleep
print("霹靂燈!")
led1 = 12;
led2 = 14;
led3 = 25;
led4 = 33;


while True:
  Pin(led1, Pin.OUT).value(1)
  sleep(0.5)
  Pin(led2, Pin.OUT).value(1)
  sleep(0.5)
  Pin(led3, Pin.OUT).value(1)
  sleep(0.5)
  Pin(led4, Pin.OUT).value(1)
  sleep(0.5)
  Pin(led1, Pin.OUT).value(0)
  sleep(0.5)
  Pin(led2, Pin.OUT).value(0)
  sleep(0.5)
  Pin(led3, Pin.OUT).value(0)
  sleep(0.5)
  Pin(led4, Pin.OUT).value(0)
  sleep(0.5)