I try to use a Servo motor with Arduino NANO ESP32, but already the IDE has stuck me.
I downloaded the ESP32Servo library, and tried to run the code, and get this error message:
"Compilation error: 'ESP32Servo' does not name a type; did you mean 'ESP32_Servo_h'?"
The Code:
#include <ESP32Servo.h>
ESP32Servo myServo;
void setup() {
}
void loop() {
}
The interesting thing is that the following code run correctly:
#include <ESP32Servo.h>
void setup() {
}
void loop() {
}
I have tried to install a previous version of the library and tried to reinstall the arduino IDE.
I have no idea what is wrong.