- Notifications
You must be signed in to change notification settings - Fork13.3k
Tone limit 20KHz#7179
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Tone limit 20KHz#7179
Uh oh!
There was an error while loading.Please reload this page.
Conversation
earlephilhower left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks for the add'l comment, but I can see no reason not to extend the range by default to 20kHz like you were mentioning.
Uh oh!
There was an error while loading.Please reload this page.
Tech-TX commentedApr 1, 2020
Done, and done! I'll good with removing artificial restraints on operation. 😄 |
Tech-TX commentedApr 2, 2020
FYI, I've already tested this change yesterday much farther than 20KHz. When I tried to take it to 65535 it blew up, but I sort of expected that based on your notes elsewhere about CPU utilization at 40KHz PWM. |
earlephilhower left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thx!
Add 2 comments since I found out where the 5KHz upper limit on Tone output frequency was, apparently added for compatibility with the Arduino library some time in the past.
If you want the full 20KHz audio frequency range, change the two lines in Tone.cpp at line 38 to: