Controlling a light-emitting diode (LED) with the ESP32 Third is a surprisingly simple project, especially when using the 1k resistance. The resistance limits one current flowing through a LED, preventing them from frying out and ensuring one predictable brightness. Generally, you battery 9v price will connect the ESP32's GPIO output to one resista