This is my first time using an ESP32 with Arduino IDE, and I keep getting the following error; Error compiling for board DOIT ESP32 DEVKIT V1.
Steps I've done so far;
- Added board manager URL https://dl.espressif.com/dl/package_esp ... index.json
- Installed board manager v1.0.3-rc3
- Selected the board type for my board (DOIT ESP32 DEVKIT V1) AFAIK is right
- Selected the port
- Added in an example code below
When I restart the IDDE I can compile correctly, but when I then click upload I get Error compiling for board DOIT ESP32 DEVKIT V1.
What am I doing wrong?
Thanks
Chris
Example code used;
[Codebox]
/*
* https://circuits4you.com
* ESP32 LED Blink Example
* Board ESP23 DEVKIT V1
*
* ON Board LED GPIO 2
*/
#define LED 2
void setup() {
// Set pin mode
pinMode(LED,OUTPUT);
}
void loop() {
delay(500);
digitalWrite(LED,HIGH);
delay(500);
digitalWrite(LED,LOW);
}
[/Codebox]