#霹靂燈1-循序結構
from machine import Pin
from time import sleep_ms

led0 = Pin(32,Pin.OUT)
led1 = Pin(33,Pin.OUT)
led2 = Pin(25,Pin.OUT)
led3 = Pin(26,Pin.OUT)
led4 = Pin(27,Pin.OUT)
led5 = Pin(14,Pin.OUT)
led6 = Pin(12,Pin.OUT)
led7 = Pin(13,Pin.OUT)

while True:  
  led0.value(1)
  sleep_ms(100)
  led0.value(0)
  sleep_ms(200)
  led1.value(1)
  sleep_ms(300)
  led1.value(0)
  sleep_ms(200)
  led2.value(1)
  sleep_ms(300)
  led2.value(0)
  sleep_ms(100)
  led3.value(1)
  sleep_ms(300)
  led3.value(0)
  sleep_ms(300)
  led4.value(1)
  sleep_ms(100)
  led4.value(0)
  sleep_ms(300)
  led5.value(1)
  sleep_ms(300)
  led5.value(0)
  sleep_ms(300)
  led6.value(1)
  sleep_ms(100)
  led6.value(0)
  sleep_ms(300)
  led7.value(1)
  sleep_ms(100)
  led7.value(0)
  sleep_ms(300)