from machine import Pin
from time import sleep
secuencia = [15, 2, 0, 4, 16, 17, 5, 18, 19, 21]
leds = [Pin(x, Pin.OUT) for x in secuencia]
while True:
# Primera columna
y = 9
for x in range(5):
leds[x].value(1)
leds[x + y].value(1)
sleep(1)
leds[x].value(0)
leds[x + y].value(0)
y = y - 2
# Segunda columna
y = 3
for x in range(3, 0, -1):
leds[x].value(1)
leds[x + y].value(1)
sleep(1)
leds[x].value(0)
leds[x + y].value(0)
y = y + 2Daniel Ruiz Castellanos 5M