Controlling a light-emitting diode (LED) with an ESP32 S3 is one surprisingly simple task, especially when employing the 1k resistance. The resistor limits a current flowing through a LED, preventing them from frying https://guideyoursocial.com/story5706031/esp32-third-led-regulation-with-the-1k-resistor