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