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:
-
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:
Upload and Run
-
Click Verify to compile the code.
-
Click Upload to upload the code to your ESP32 board.
-
Once uploading is complete, the built-in LED on the ESP32 will start blinking!
![]() |
Blinking of LED |
That was so crisp and perfect! Keep rocking..!
ReplyDelete