Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Merged
earlephilhower merged 7 commits intoesp8266:masterfromTech-TX:tone_limit_comments
Apr 4, 2020
Merged

Tone limit 20KHz#7179

earlephilhower merged 7 commits intoesp8266:masterfromTech-TX:tone_limit_comments
Apr 4, 2020

Conversation

@Tech-TX
Copy link
Contributor

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:

  high = std::max(high, (uint32_t)25);// new 20KHz maximum Tone frequency  low = std::max(low, (uint32_t)25);

Copy link
Collaborator

@earlephilhowerearlephilhower left a 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.

@Tech-TX
Copy link
ContributorAuthor

Done, and done! I'll good with removing artificial restraints on operation. 😄
Travis CI running now.

@Tech-TX
Copy link
ContributorAuthor

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.

Copy link
Collaborator

@earlephilhowerearlephilhower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thx!

@Tech-TXTech-TX changed the titleTone limit commentsTone limit 20KHzApr 3, 2020
@earlephilhowerearlephilhower merged commitc548958 intoesp8266:masterApr 4, 2020
@Tech-TXTech-TX deleted the tone_limit_comments branchApril 4, 2020 17:20
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@earlephilhowerearlephilhowerearlephilhower approved these changes

@devytedevytedevyte approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@Tech-TX@earlephilhower@devyte

[8]ページ先頭

©2009-2025 Movatter.jp