import time
from machine import Pin

led =Pin(27,Pin.OUT)
led1=Pin(26,Pin.OUT)
led2 =Pin(22,Pin.OUT)
led3 =Pin(21,Pin.OUT)
led4 =Pin(20,Pin.OUT)
led5 =Pin(19,Pin.OUT)
led6 =Pin(18,Pin.OUT)

while True:
    led.value(1)
    time.sleep(0.5)
    led.value(0)
    led1.value(1)
    time.sleep(0.5)
    led1.value(0)
    led2.value(1)
    time.sleep(0.5)
    led2.value(0)
    led3.value(1)
    time.sleep(0.5)
    led3.value(0)
    led4.value (1)
    time.sleep(0.5)
    led4.value(0)
    led5.value(1)
    time.sleep(0.5)
    led5.value(0)
    led6.value (1)
    time.sleep(0.5)
    led6.value (0)
    led6.value(1)
    time.sleep(0.5)
    led6.value(0)
    led5.value(1)
    time.sleep(0.5)
    led5.value(0)
    led4.value(1)
    time.sleep(0.5)
    led4.value(0)
    led3.value(1)
    time.sleep(0.5)
    led3.value(0)
    led2.value(1)
    time.sleep(0.5)
    led2.value(0)
    led1.value(1)
    time.sleep(0.5)
    led1.value(0)
    led.value(1)
    time.sleep(0.5)
    led.value(0)

BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT