Skip to content

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

Closed

Description

@spica1120

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

Activity

  1. jadielsousa commented on Apr 23, 2025

    @jadielsousa

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

  2. wdoekes commented on Feb 28, 2026

    @wdoekes

    For the CardputerADV there is this:

    --- a/main/main.cpp
    +++ b/main/main.cpp
    @@ -44,7 +44,7 @@ extern "C" void app_main(void)
         // GetMooncake().installApp(std::make_unique<AppDummy>());
     
         // Main loop
    -    audio::set_keyboard_sfx_enable(true);
    +    audio::set_keyboard_sfx_enable(false);
         while (1) {
             GetHAL().feedTheDog();
             GetHAL().update();

    from: https://github.com/m5stack/M5Cardputer-UserDemo/blob/CardputerADV/main/main.cpp#L47

    Reducing the volume would otherwise be in:

    https://github.com/m5stack/M5Cardputer-UserDemo/blob/452db44bbc692128cc3972963f00d3253e385b9f/main/apps/utils/audio/audio.cpp#L122C1-L123C1

    GetHAL().speaker.setVolume(90);

    P.S. If you want to know what version you've flashed, it can be useful to set the FW_VERSION:

    --- a/main/apps/utils/common.h
    +++ b/main/apps/utils/common.h
    @@ -6,7 +6,7 @@
     #pragma once
     #include <hal/hal.h>
     
    -#define FW_VERSION "V0.3"
    +#define FW_VERSION "V0.3ns"
     
     #define ANIM_APP_OPEN()                                                                                     \
         for (int i = 10; i < 123; i += 8) {

    If you enlarge the version, you'll also need to move it in the splash screen:

    --- a/main/apps/app_launcher/view/boot_anim/boot_anim.cpp
    +++ b/main/apps/app_launcher/view/boot_anim/boot_anim.cpp
    @@ -60,7 +60,8 @@ void Launcher::boot_anim()
         GetHAL().display.fillRect(195, 113, 40, 19, (uint32_t)0xE6E6E6);
         GetHAL().display.setFont(&fonts::efontCN_16);
         GetHAL().display.setTextColor((uint32_t)0x999999);
    -    GetHAL().display.drawString(FW_VERSION, 201, 109);
    +    int textWidth = GetHAL().display.textWidth(FW_VERSION);
    +    GetHAL().display.drawString(FW_VERSION, 235 - textWidth, 109);
     
         // Play sfx
     #ifndef NO_BOOT_PLAY
  3. Forairaaaaa commented on Nov 5, 2026

    @Forairaaaaa
    Contributor

    Quiet mode is now available for the original Cardputer via #47, matching the ADV branch.

    Press Q on the startup screen to enable quiet mode, or press Q in the launcher to toggle it. The setting is saved across restarts, and a muted speaker icon appears in the status bar.

    To silence the first startup sound, hold Q while powering on. Recorded audio playback remains available.

  4. added a commit that references this issue on Dec 2, 2026
    ac60757
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions