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

Cant seem to compile esp32 #25

Open
Tezzatron81 opened this issue Aug 20, 2024 · 1 comment
Open

Cant seem to compile esp32 #25

Tezzatron81 opened this issue Aug 20, 2024 · 1 comment
Assignees
Labels

Comments

@Tezzatron81
Copy link

Cant seem to compile the examples with esp32. Im trying to make 3 tones a 4800 for 800ms then 4500 for 800ms then 4000 for 800ms. Then stop.

@alexitoo00
Copy link

alexitoo00 commented Oct 28, 2024

I've also tried compiling for WROOM and WROVER esp32 boards. The examples don't compile. This is the result after trying to compile:

C:\Users\alexa\Documents\Arduino\libraries\EasyBuzzer\src\EasyBuzzer.cpp: In constructor 'EasyBuzzerClass::EasyBuzzerClass()':
C:\Users\alexa\Documents\Arduino\libraries\EasyBuzzer\src\EasyBuzzer.cpp:17:9: error: 'ledcSetup' was not declared in this scope
17 | ledcSetup(mChannel, mFreq, mResolution);
| ^~~~~~~~~
C:\Users\alexa\Documents\Arduino\libraries\EasyBuzzer\src\EasyBuzzer.cpp: In member function 'void EasyBuzzerClass::stopBeep()':
C:\Users\alexa\Documents\Arduino\libraries\EasyBuzzer\src\EasyBuzzer.cpp:79:9: error: 'ledcDetachPin' was not declared in this scope; did you mean 'ledcDetach'?
79 | ledcDetachPin(mPin);
| ^~~~~~~~~~~~~
| ledcDetach
C:\Users\alexa\Documents\Arduino\libraries\EasyBuzzer\src\EasyBuzzer.cpp: In member function 'void EasyBuzzerClass::update()':
C:\Users\alexa\Documents\Arduino\libraries\EasyBuzzer\src\EasyBuzzer.cpp:139:17: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
139 | ledcAttachPin(mPin, mChannel);
| ^~~~~~~~~~~~~
| ledcAttach
C:\Users\alexa\Documents\Arduino\libraries\EasyBuzzer\src\EasyBuzzer.cpp:144:17: error: 'ledcDetachPin' was not declared in this scope; did you mean 'ledcDetach'?
144 | ledcDetachPin(mPin);
| ^~~~~~~~~~~~~
| ledcDetach
Usando librería EasyBuzzer con versión 1.0.4 en la carpeta: C:\Users\alexa\Documents\Arduino\libraries\EasyBuzzer
exit status 1
Error compilando para la tarjeta ESP32-WROOM-DA Module.

The error seems to resolve if downgrading to version 2.0.16 of ESP32 from Espressif

Update: On 2.0.17 it is not working but throws a different error. In 2.0.16 it is in fact working fine

@evert-arias evert-arias self-assigned this Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants