Controlling a light-emitting diode (LED) with an ESP32 Third is the surprisingly simple task, especially when employing the 1k load. The resistance limits the current flowing through the LED, preventing it from frying http://theengineerstore.in/products/li-ion-battery-charger-universal-dual-3-7v-battery-18650-battery-charger