Controlling a light-emitting diode (LED) with an ESP32 Three is a surprisingly simple task, especially when using the 1k resistance. The resistance limits the current flowing through a LED, preventing it from melting https://mixbookmark.com/story6294141/esp32-three-led-control-with-one-1k-resistance