# Make Imports
import machine
import time
# Wait to USB is ready for debugging
time.sleep(0.1)
#Go!
print("Hello World!")
led1 = machine.Pin(15, machine.Pin.OUT)
led2 = machine.Pin(2, machine.Pin.OUT)
led3 = machine.Pin(4, machine.Pin.OUT)
led4 = machine.Pin(16, machine.Pin.OUT)
led5 = machine.Pin(17, machine.Pin.OUT)
led6 = machine.Pin(5, machine.Pin.OUT)
led7 = machine.Pin(18, machine.Pin.OUT)
leds = [led1, led2, led3, led4, led5, led6, led7]
index = 0
N = len(leds)
while True:
current_led = leds[index]
current_led.on()
time.sleep(0.2)
current_led.off()
#time.sleep(0.2)
index = index + 1
if N == index:
index = 0