Controlling the amp board 2.1 light-emitting diode (LED) with the ESP32 Third is the surprisingly simple project, especially when utilizing the 1k resistance. The resistance limits one current flowing through one LED, preventing it’s from frying out and ensuring a predictable output. Generally, you'll connect a ESP32's GPIO output to a resistor,