Controlling a light-emitting diode (LED) with a ESP32 Three is a surprisingly simple task, especially when using the 1k resistor. The resistor limits a current flowing through the LED, preventing them from melting out https://thebookmarkfree.com/story20769193/esp32-third-led-regulation-with-the-1k-resistor