Controlling a light-emitting diode (LED) with a ESP32 Third is the surprisingly simple task, especially when employing the 1k resistor. The load limits a current flowing through a LED, preventing it from frying out and ensuring a predictable brightness. Typically, you will connect one ESP32's GPIO output to one resistance, and and connect the load