Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Issue with ledcDetachPin(), ledcSetup(), ledcDetachPin(), ledcDetachPin() #246

Open
codewithdinesh opened this issue Jul 31, 2024 · 0 comments

Comments

@codewithdinesh
Copy link

Issue

c:\Users\your_user_name\OneDrive\Dokumen\Arduino\libraries\ESP32Servo\src\ESP32PWM.cpp: In destructor 'virtual ESP32PWM::~ESP32PWM()':
c:\Users\your_user_name\OneDrive\Dokumen\Arduino\libraries\ESP32Servo\src\ESP32PWM.cpp:53:17: error: 'ledcDetachPin' was not declared in this scope; did you mean 'ledcDetach'?
   53 |                 ledcDetachPin(pin);
      |                 ^~~~~~~~~~~~~
      |                 ledcDetach
c:\Users\your_user_name\OneDrive\Dokumen\Arduino\libraries\ESP32Servo\src\ESP32PWM.cpp: In static member function 'static double ESP32PWM::_ledcSetupTimerFreq(uint8_t, double, uint8_t)':
c:\Users\your_user_name\OneDrive\Dokumen\Arduino\libraries\ESP32Servo\src\ESP32PWM.cpp:60:16: error: 'ledcSetup' was not declared in this scope
   60 |         return ledcSetup(chan, freq, bit_num);

Issue

This issue is raises when we use Arduino Esp32 latest version 3.0 and above, this current library is only supported for Esp32 v1, v2 and its variations, It does not support Arduino Esp32 latest version 3.0 and above.

Issue Source
C:\Users\your_user_name\OneDrive\Documents\Arduino\libraries\TTGO_TWatch_Library\src\drive\tft\bl.h

How to Fix

Change your Arduino Esp32 version to lesser than v3

Reference

https://github.com/espressif/arduino-esp32/blob/master/docs/en/migration_guides/2.x_to_3.0.rst#ledc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant