-
Notifications
You must be signed in to change notification settings - Fork 428
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
feature request: simple I2S tone() generator #643
Comments
I think maybe this example, https://github.com/earlephilhower/ESP8266Audio/blob/master/examples/PlayWAVFromFunction/PlayWAVFromFunction.ino, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need a
tone()
function that can redirect audio to the DAC. ChatGPT is hallucinating and recommended<AudioGeneratorTone.h>
, which, of course, does not exist.MP3 works fine, but I want to use
tone()
on the same speaker without additional wiring. I have seen Arduino SimpleTone<I2S.h>
, but I don't know how to change the default pinout for ESP32.I2S.setBCLK(bclkPin)
,I2S.setDOUT(doutPin)
, orI2S.setLRCLK(wclkPin)
? are unknown on Arduino 1.8.19. That's why I prefer ESP8266Audio.I had a look into
AudioGeneratorRTTTL.cpp
, but I don't understand how the tones are generated. I decided to play RTTTL notes instead, but I feel this is overloading with unnecessary code and memory waste. Furthermore, the notes sound different, and the mapping is inaccurate.Click to expand
I would be happy to see
beep()
with the same usage astone()
in the next release.The text was updated successfully, but these errors were encountered: