mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-19 01:41:30 +10:00
Shorter audio feedback for InkHUD buttons (#7301)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user