#DEFINIR MODULOS
from machine import Pin
from time import sleep
#CONFIGURAR PINES Y RECURSOS
led1 = Pin(22, Pin.OUT)
led2 = Pin(21, Pin.OUT)
led3 = Pin(19, Pin.OUT)
led4 = Pin(18, Pin.OUT)
led5 = Pin(5, Pin.OUT)
led6 = Pin(4, Pin.OUT)
#CREARCONSTANTES Y MACROS
RETARDO=0.2
#CICLO INFINITO
while True:
led1.value(0)
led2.value(0)
led3.value(0)
led4.value(0)
led5.value(0)
led6.value(0)
sleep(RETARDO)
led1.value(1)
led2.value(0)
led3.value(0)
led4.value(0)
led5.value(0)
led6.value(1)
sleep(RETARDO)
led1.value(1)
led2.value(1)
led3.value(0)
led4.value(0)
led5.value(1)
led6.value(1)
sleep(RETARDO)
led1.value(1)
led2.value(1)
led3.value(1)
led4.value(1)
led5.value(1)
led6.value(1)
sleep(RETARDO)
led1.value(0)
led2.value(1)
led3.value(1)
led4.value(1)
led5.value(1)
led6.value(0)
sleep(RETARDO)
led1.value(0)
led2.value(0)
led3.value(1)
led4.value(1)
led5.value(0)
led6.value(0)
sleep(RETARDO)