No Servo library compiling - LEDC errors
Posted: Tue Apr 16, 2024 7:54 pm
Beginner trying to use a servo for the first time. Tried a whole bunch of different servo libraries and examples, but none of the code compiles. All errors point to the LEDC API, and it seems there are breaking changes in 3.0 that have not been updated in those libraries.
For example:
But according to the ESP32 2.x - 3.0 migration page, ledcDetachPin no longer exists.
Do I just need to wait until people update those libraries if I don't have the skills to do it manually? Is this a current known issue? My search has not lead me anywhere useful.
My actual sketches are irrelevant to the problem, all I need to do to reproduce is #include "Servo.h" or ESP32Servo.h, or any other servo library.
For example:
Code: Select all
ESP32Servo\src\ESP32PWM.cpp:263:9: error: 'ledcDetachPin' was not declared in this scope; did you mean 'ledcDetach'?
Do I just need to wait until people update those libraries if I don't have the skills to do it manually? Is this a current known issue? My search has not lead me anywhere useful.
My actual sketches are irrelevant to the problem, all I need to do to reproduce is #include "Servo.h" or ESP32Servo.h, or any other servo library.