Controlling a light-emitting diode (LED) with an ESP32 Three is the surprisingly simple task, especially when using the 1k load. The resistor limits the current flowing through the LED, preventing them from frying out https://worldlistpro.com/story22656310/esp32-three-led-management-with-one-1k-resistance