from machine import Pin
import time
# Initialize 8 LEDs on GPIO pins 15 to 22
led_pins = [Pin(i, Pin.OUT) for i in range(8, 15)]
while True:
for led in led_pins: # Iterate through each LED
led.value(1) # Turn on the LED
time.sleep(0.5) # Wait for 0.5 seconds
led.value(0) # Turn off the LED
time.sleep(0.5)