Hallo,
ich versuche den Sketch hani-mandl-esp32_V2 zu Kompilieren es kommt immer die Fehlemeldung:
c:\Users\Pit\Documents\Arduino\libraries\ESP32_Servo\src\ESP32_Servo.cpp: In member function ‘int Servo::attach(int, int, int)’:
c:\Users\Pit\Documents\Arduino\libraries\ESP32_Servo\src\ESP32_Servo.cpp:144:9: error: ‘ledcSetup’ was not declared in this scope
144 | ledcSetup(this->servoChannel, REFRESH_CPS, this->timer_width); // channel #, 50 Hz, timer width
| ^~~~~~~~~
c:\Users\Pit\Documents\Arduino\libraries\ESP32_Servo\src\ESP32_Servo.cpp:145:9: error: ‘ledcAttachPin’ was not declared in this scope; did you mean ‘ledcAttach’?
145 | ledcAttachPin(this->pinNumber, this->servoChannel); // GPIO pin assigned to channel
| ^~~~~~~~~~~~~
| ledcAttach
c:\Users\Pit\Documents\Arduino\libraries\ESP32_Servo\src\ESP32_Servo.cpp: In member function ‘void Servo::detach()’:
c:\Users\Pit\Documents\Arduino\libraries\ESP32_Servo\src\ESP32_Servo.cpp:154:9: error: ‘ledcDetachPin’ was not declared in this scope; did you mean ‘ledcDetach’?
154 | ledcDetachPin(this->pinNumber);
| ^~~~~~~~~~~~~
| ledcDetach
c:\Users\Pit\Documents\Arduino\libraries\ESP32_Servo\src\ESP32_Servo.cpp: In member function ‘void Servo::setTimerWidth(int)’:
c:\Users\Pit\Documents\Arduino\libraries\ESP32_Servo\src\ESP32_Servo.cpp:246:9: error: ‘ledcDetachPin’ was not declared in this scope; did you mean ‘ledcDetach’?
246 | ledcDetachPin(this->pinNumber);
| ^~~~~~~~~~~~~
| ledcDetach
c:\Users\Pit\Documents\Arduino\libraries\ESP32_Servo\src\ESP32_Servo.cpp:247:9: error: ‘ledcSetup’ was not declared in this scope
247 | ledcSetup(this->servoChannel, REFRESH_CPS, this->timer_width);
| ^~~~~~~~~
c:\Users\Pit\Documents\Arduino\libraries\ESP32_Servo\src\ESP32_Servo.cpp:248:9: error: ‘ledcAttachPin’ was not declared in this scope; did you mean ‘ledcAttach’?
248 | ledcAttachPin(this->pinNumber, this->servoChannel);
| ^~~~~~~~~~~~~
| ledcAttach
exit status 1
Compilation error: exit status 1
Software: Arduino IDE 2.3.3
Boardeinstellung: ESP32 Dev Modul
Keine Ahnung woran es liegen kann, vielleicht kann mir hier wer helfen.
Herzlichen Danke für die Hilfe.
Pit