Controlling a light-emitting diode (LED) with a ESP32 Third is a surprisingly simple task, especially when employing the 1k resistor. The resistance limits the current flowing through a LED, preventing it from frying http://theengineerstore.in/products/5v-2-1a-3-usb-power-bank-battery-charger-module-circuit-board-step-up-boost-diy