from machine import Pin
import utime
print("Hello, ESP32!")
d1 = Pin(13, Pin.OUT)
d2 = Pin(12, Pin.OUT)
d3 = Pin(14, Pin.OUT)
d4 = Pin(27, Pin.OUT)
d5 = Pin(26, Pin.OUT)
leds=[d1,d2,d3,d4,d5]
while True:
for bombillo in leds[::1]:
bombillo.on()
utime.sleep_ms(50)
bombillo.off()
utime.sleep_ms(50)
for bombillo in leds[::-1]:
bombillo.on()
utime.sleep_ms(50)
bombillo.off()
utime.sleep_ms(50)