mirror of
https://github.com/meshtastic/firmware.git
synced 2025-07-31 19:05:44 +00:00
Shorter audio feedback for InkHUD buttons (#7301)
This commit is contained in:
parent
13ac182142
commit
1063ef9034
@ -39,8 +39,8 @@ void InkHUD::Events::begin()
|
||||
void InkHUD::Events::onButtonShort()
|
||||
{
|
||||
// Audio feedback (via buzzer)
|
||||
// Short low tone
|
||||
playBoop();
|
||||
// Short tone
|
||||
playChirp();
|
||||
// Cancel any beeping, buzzing, blinking
|
||||
// Some button handling suppressed if we are dismissing an external notification (see below)
|
||||
bool dismissedExt = dismissExternalNotification();
|
||||
@ -64,8 +64,8 @@ void InkHUD::Events::onButtonShort()
|
||||
void InkHUD::Events::onButtonLong()
|
||||
{
|
||||
// Audio feedback (via buzzer)
|
||||
// Low tone, longer than playBoop
|
||||
playBeep();
|
||||
// Slightly longer than playChirp
|
||||
playBoop();
|
||||
|
||||
// Check which system applet wants to handle the button press (if any)
|
||||
SystemApplet *consumer = nullptr;
|
||||
|
@ -104,11 +104,11 @@ void setupNicheGraphics()
|
||||
buttons->setHandlerDown(1, [backlight]() { backlight->peek(); });
|
||||
buttons->setHandlerLongPress(1, [backlight]() {
|
||||
backlight->latch();
|
||||
playBeep();
|
||||
playBoop();
|
||||
});
|
||||
buttons->setHandlerShortPress(1, [backlight]() {
|
||||
backlight->off();
|
||||
playBoop();
|
||||
playChirp();
|
||||
});
|
||||
|
||||
// Begin handling button events
|
||||
|
@ -107,7 +107,7 @@ void setupNicheGraphics()
|
||||
buttons->setWiring(1, PIN_BUTTON2);
|
||||
buttons->setHandlerShortPress(1, [inkhud]() {
|
||||
inkhud->nextTile();
|
||||
playBoop();
|
||||
playChirp();
|
||||
});
|
||||
|
||||
// Begin handling button events
|
||||
|
@ -104,7 +104,7 @@ void setupNicheGraphics()
|
||||
buttons->setWiring(1, PIN_BUTTON2);
|
||||
buttons->setHandlerShortPress(1, [inkhud]() {
|
||||
inkhud->nextTile();
|
||||
playBoop();
|
||||
playChirp();
|
||||
});
|
||||
|
||||
// Begin handling button events
|
||||
|
Loading…
Reference in New Issue
Block a user