Hi im trying to use the servo with my esp32s but it does not work and the error code im getting is the following:
In file included from C:\Users\hacke\AppData\Local\Temp\.arduinoIDE-unsaved2023824-24352-n4hf7f.uateh\01-SimpleServo\01-SimpleServo.ino:1:
c:\Users\hacke\Documents\Arduino\libraries\ServoESP32\src/Servo.h:68:81: error: call to non-'constexpr' function 'const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]'
static const int TIMER_RESOLUTION = std::min(16, SOC_LEDC_TIMER_BIT_WIDE_NUM);
^
c:\Users\hacke\Documents\Arduino\libraries\ServoESP32\src/Servo.h: In member function 'T ServoTemplate<T>::mapTemplate(T, T, T, T, T) const':
c:\Users\hacke\Documents\Arduino\libraries\ServoESP32\src/Servo.h:256:28: error: 'is_floating_point_v' is not a member of 'std'
if constexpr (std::is_floating_point_v<T>) {
^~~~~~~~~~~~~~~~~~~
c:\Users\hacke\Documents\Arduino\libraries\ServoESP32\src/Servo.h:256:28: note: suggested alternative: 'is_floating_point'
if constexpr (std::is_floating_point_v<T>) {
^~~~~~~~~~~~~~~~~~~
is_floating_point
c:\Users\hacke\Documents\Arduino\libraries\ServoESP32\src/Servo.h:256:49: error: expected primary-expression before '>' token
if constexpr (std::is_floating_point_v<T>) {
^
c:\Users\hacke\Documents\Arduino\libraries\ServoESP32\src/Servo.h:256:50: error: expected primary-expression before ')' token
if constexpr (std::is_floating_point_v<T>) {
^
exit status 1
Compilation error: exit status 1
I do not know the reason for this and any help or suggestion would be major. Thank you and hope you guys are having a good day.