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