# CBTIS122
# ELECTRONICA
# MAESTRO SIXTO HUMBERTO GONZALEZ PAEZ
# ALUNMA LEILANY GADALUPE GALAVIZ GONZALEZ
# GRUPO 5N NUMERO DE LISTA 12
# FECHA DE INICIO 29 DE SEPTIEMBRE 2025
# FECHA DE ENTREFA 03 DE SEPTIEMBRE 2025
# EXAMEN 01A
# REALIZAR 3 SECUENCIAS DE 10 LEDS USANDO EL CICLO FOR SIN SECUENCIAS
from machine import Pin
from time import sleep
leds = [Pin(x, Pin.OUT) for x in range (13,3,-1)]
t = 1
while True:
for x in range (1,4):
leds[x].on()
leds[x+3].on()
leds[x+6].on()
sleep(t)
leds[x].off()
leds[x+3].off()
leds[x+6].off()
n=1
for x in range (4,-1,-1):
leds[x].on()
leds[x+n].on()
sleep(t)
n=n+2
for x in range (10):
leds[x].off()
sleep(t)