Skip to content

Commit 9548090

Browse files
committed
Tone: allow pitches higher than 500Hz
Fixes arduino#84
1 parent b0a3c08 commit 9548090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/Tone.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Tone {
2424
}
2525

2626
void start(void) {
27-
ticker.attach(mbed::callback(this, &Tone::toggle), 500ms / frequency );
27+
ticker.attach(mbed::callback(this, &Tone::toggle), 500000us / frequency );
2828
if (duration != 0) {
2929
start_timeout();
3030
}

0 commit comments

Comments
 (0)