ESP32 LEDS — ESP32 simulation

An interactive ESP32 circuit simulation you can run free in your browser on Velxio, by malover26.

Components

Sketch code

# MicroPython Blink for ESP32
from machine import Pin
import time

n = [22, 21, 19, 18, 2, 4, 5]
leds = []
for p in n:
    leds.append(Pin(p, Pin.OUT))

while True:
    for led in leds:
         led.on()
         time.sleep(1)
         led.off()
         time.sleep(1)
    leds.reverse()

More projects by malover26