# llamar módulo
from machine import Pin
from utime import sleep
# crear objeto
Led_r1 = Pin(32, Pin.OUT)
Led_r2 = Pin(21, Pin.OUT)
Led_a1 = Pin(25, Pin.OUT)
Led_a2 = Pin(19, Pin.OUT)
Led_m1 = Pin(33, Pin.OUT)
Led_m2 = Pin(18, Pin.OUT)
Led_v1 = Pin(27, Pin.OUT)
Led_v2 = Pin(5, Pin.OUT)
while True:
Led_r1.on()
Led_r2.off()
Led_a1.off()
Led_a2.off()
Led_m1.off()
Led_m2.off()
Led_v1.off()
Led_v2.off()
sleep(0.2)
Led_r1.off()
Led_r2.on()
Led_a1.off()
Led_a2.off()
Led_m1.off()
Led_m2.off()
Led_v1.off()
Led_v2.off()
sleep(0.2)
Led_r1.off()
Led_r2.off()
Led_a1.on()
Led_a2.off()
Led_m1.off()
Led_m2.off()
Led_v1.off()
Led_v2.off()
sleep(0.2)
Led_r1.off()
Led_r2.off()
Led_a1.off()
Led_a2.on()
Led_m1.off()
Led_m2.off()
Led_v1.off()
Led_v2.off()
sleep(0.2)
Led_r1.off()
Led_r2.off()
Led_a1.off()
Led_a2.off()
Led_m1.on()
Led_m2.off()
Led_v1.off()
Led_v2.off()
sleep(0.2)
Led_r1.off()
Led_r2.off()
Led_a1.off()
Led_a2.off()
Led_m1.off()
Led_m2.on()
Led_v1.off()
Led_v2.off()
sleep(0.2)
Led_r1.off()
Led_r2.off()
Led_a1.off()
Led_a2.off()
Led_m1.off()
Led_m2.off()
Led_v1.on()
Led_v2.off()
sleep(0.2)
Led_r1.off()
Led_r2.off()
Led_a1.off()
Led_a2.off()
Led_m1.off()
Led_m2.off()
Led_v1.off()
Led_v2.on()
sleep(0.2)