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 error in Basics/HelloRadio.ino example #216

Open
mcl-uk opened this issue Jun 19, 2024 · 4 comments
Open

Compile error in Basics/HelloRadio.ino example #216

mcl-uk opened this issue Jun 19, 2024 · 4 comments

Comments

@mcl-uk
Copy link

mcl-uk commented Jun 19, 2024

I'm getting an "I2S_DAC_CHANNEL_LEFT_EN undefined" error when comiling this example sketch. I tried #defining this to 2 (found a reference to it in a legacy h file) and now the sketch compiles and runs seemingly correctly but I get no audio out from the CYD's spkr port. Has anyone found a way to get this example to work?
Thanks for reading this far.

@paelzer
Copy link
Contributor

paelzer commented Jun 19, 2024

Hello

Guess pin 2 is wrong. In the pin description GPIO 26 is mentioned to be the correct pin for I2S_DAC_CHANNEL_LEFT_EN.

https://github.com/witnessmenow/ESP32-Cheap-Yellow-Display/blob/main/PINS.md

Boris

@mcl-uk
Copy link
Author

mcl-uk commented Jun 20, 2024

Thanks for your response. Sadly this doesn't work, still no signal at the spkr pins. If I add the line "i2s_set_dac_mode(I2S_DAC_CHANNEL_LEFT_EN);" to the code I get an undefined error for i2s_set_dac_mode.
Be grateful for any other ideas.

@TheNitek
Copy link
Collaborator

@kjr18
Copy link

kjr18 commented Aug 5, 2024

This error is because your esp32 board files are too new. Latest working board definitions are 2.0.17. Anything newer that this version does not work with ESP32-audioI2S library that is used in HelloRadio example

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

4 participants