from machine import Pin
from utime import sleep
leds = [
Pin(23, Pin.OUT),
Pin(5, Pin.OUT),
Pin(19, Pin.OUT),
Pin(18, Pin.OUT),
Pin(0, Pin.OUT)
]
while True:
for i in range(1,5,2):
leds[i].value(1)
sleep(1)
leds[i].value(0)
for i in range(4, -1, -2):
leds[i].value(1)
sleep(1)
leds[i].value(0)