ESP32: Blinking an LED

Blinking an LED is one of the simplest and most important starter projects with ESP32. To do this, you need to complete a few basic setup steps. Prerequisites Download the Arduino IDE based on your computer's specifications. Install the necessary libraries for your development board. Setting Up ESP32 in Arduino IDE Open Arduino IDE and go to File > Preferences . In the Additional Board Manager URLs field, paste the following link: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json Go to Tools > Board > Boards Manager . Search for ESP32 and install the ESP32 board package. Connect your ESP32 board to your computer via USB. On connection you can see the name of the board and the port be selected automatically. Code Open a new sketch and enter the following code: # define LED_BUILTIN 2 // Adjust if your board uses a different pin (e.g., 5) void setup () { pinMode (LED_BUILTIN, OUTPUT); // Initi...