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

Commitc548958

Browse files
authored
Tone limit 20KHz (#7179)
Set Tone maximum frequency to 20KHz (was 5KHz)
1 parent483bfde commitc548958

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎cores/esp8266/Tone.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ static void _startTone(uint8_t _pin, uint32_t high, uint32_t low, unsigned long
3535

3636
pinMode(_pin, OUTPUT);
3737

38-
high =std::max(high, (uint32_t)100);
39-
low =std::max(low, (uint32_t)100);
38+
high =std::max(high, (uint32_t)25);// new 20KHz maximum tone frequency,
39+
low =std::max(low, (uint32_t)25);// (25us high + 25us low period = 20KHz)
4040

4141
if (startWaveform(_pin, high, low, (uint32_t) duration *1000)) {
4242
_toneMap |=1 << _pin;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp