from machine import Pin
import time
leds = [
Pin(0, Pin.OUT),
Pin(2, Pin.OUT),
Pin(4, Pin.OUT),
Pin(5, Pin.OUT)
]
while True:
for led in leds:
led.on()
time.sleep(0.2)
led.off()
from machine import Pin
import time
leds = [
Pin(0, Pin.OUT),
Pin(2, Pin.OUT),
Pin(4, Pin.OUT),
Pin(5, Pin.OUT)
]
while True:
for led in leds:
led.on()
time.sleep(0.2)
led.off()