We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7af7b6f commit acdc9deCopy full SHA for acdc9de
src/utility/Speaker.cpp
@@ -21,6 +21,7 @@ void SPEAKER::end() {
21
void SPEAKER::tone(uint16_t frequency) {
22
if(!_begun) begin();
23
ledcWriteTone(TONE_PIN_CHANNEL, frequency);
24
+ ledcWrite(TONE_PIN_CHANNEL, 0x400 >> _volume);
25
}
26
27
void SPEAKER::tone(uint16_t frequency, uint32_t duration) {
0 commit comments