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

Internal DAC initialization problem #778

Open
Dread5151 opened this issue Jun 27, 2024 · 2 comments
Open

Internal DAC initialization problem #778

Dread5151 opened this issue Jun 27, 2024 · 2 comments

Comments

@Dread5151
Copy link

I'm using your "internalDAC.ino" example in my project with an ESP32 Lonin32. It was working great until around May 2024, when I compile the schetch now it gives the following error:

error: 'I2S_DAC_CHANNEL_BOTH_EN' was not declared in this scope
11 | Audio audio(true, I2S_DAC_CHANNEL_BOTH_EN);

If I take away the I2S_DAC_CHANNEL_BOTH_EN and just use Audio audio(true); it compiles but then the DAC is not initialized and there is no audio output.
What am I missing?

Regards

@schreibfaul1
Copy link
Owner

You must be using Arduino V3...
The last working version is V2.0.17. Arduino V3 uses the IDF V5.1 which according to the I2S specification no longer supports the internal DAC.

@Dread5151
Copy link
Author

AH!!!! Thanx @schreibfaul1 I just couldn't understand why my project was not compiling. I would never have got there. All good and running now!

Thanx Again!!

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

2 participants