M5Cardputer-UserDemo icon indicating copy to clipboard operation
M5Cardputer-UserDemo copied to clipboard

The answer sound of the key touch is too loud, I'd like to reduce.

Open spica1120 opened this issue 1 year ago • 1 comments

The answer sound of the key touch is too loud, I would like to add a feature to reduce or turn it off.

spica1120 avatar Apr 25 '24 14:04 spica1120

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); }

jadielsousa avatar Apr 23 '25 02:04 jadielsousa