-
Notifications
You must be signed in to change notification settings - Fork 51
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
How to generate a simple tone on speaker #15
Comments
Here's a simple version:
The frequency is in Hz and the duration in milliseconds. |
Which header files are needed, and how is I2S object constructed? (specifically for ESP32/T-Deck target) |
You need:
I also found I needed this:
It's based on the SimpleTone example which is in the ESP32 core at:
|
Ah, thank you. I hear a beep now! :-) |
Is there a reason why "Play MP3" doesn't work in the UnitTest code? |
This issue is stale because it has been open for 30 days with no activity. |
Can you add an example sketch on how to generate a simple tone to play on the built-in speaker (over I2S, I assume?).
The text was updated successfully, but these errors were encountered: