1. Download the installation package from the arduino official website and install it.
Download address: https://www.arduino.cc/en/software
2. Install Arduino support for ESP32
1. Add the ESP32 development board manager address
Click File->Preferences->Other Development Board Manager Address. Add the address of ESP32
2. Install ESP32 development board manager
Click on the development board manager on the left to search for ESP32 and click to install.
3. Select the corresponding development board model
Click Tools->Development Board->ESP32->Select your own model
I provide here a simple LED light flashing program as a test program
const int led0 = 12;
const int led1 = 13;
void setup() {
// put your setup code here, to run once:
pinMode(led0, OUTPUT);
pinMode(led1, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(led0, HIGH);
digitalWrite(led1, HIGH);
delay(500);
digitalWrite(led0, LOW);
digitalWrite(led1, LOW);
delay(500);
}
4. Click to download
5. Precautions
The development board I use is Hezhou's ESP32C3 development board, and the flashmode must be set to DIO for normal operation.
Tools->flash mode->DIO Author: The Vatican https://www.bilibili.com/read/cv23088287 Source: bilibili