Controlling a light-emitting diode (LED) with a ESP32 Third is a surprisingly simple project, especially when using one 1k resistance. The load limits the current flowing through the LED, preventing them from melting https://bookmarkcork.com/story21359973/esp32-third-led-regulation-with-the-1k-resistor