M5Cardputer-UserDemo
M5Cardputer-UserDemo copied to clipboard
The answer sound of the key touch is too loud, I'd like to reduce.
The answer sound of the key touch is too loud, I would like to add a feature to reduce or turn it off.
Go to main/hal/hal_cardputer.h and change these values in the follow lines:
void playKeyboardSound() override { _speaker->setVolume(72); _speaker->tone(5000, 20); } void playLastSound() override { _speaker->setVolume(32); _speaker->tone(6000, 20); } void playNextSound() override { _speaker->setVolume(64); _speaker->tone(7000, 20); }