Skip to content

Commit

Permalink
feat: update config buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
DriftKingTW committed Feb 5, 2024
1 parent 782565c commit 8dba987
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1086,13 +1086,17 @@ void readConfigButtons() {
}
delay(10);
if (longPressCounter > 100) {
switchBootMode();
isCaffeinated = !isCaffeinated;
while (digitalRead(CFG_BTN_PIN_2) == ACTIVE) {
delay(10);
}
return;
}
longPressCounter++;
}
isUsbMode = !isUsbMode;
usbKeyboard.releaseAll();
bleKeyboard.releaseAll();
if (!isScreenSleeping) {
isScreenDisabled = !isScreenDisabled;
}
} else if (digitalRead(CFG_BTN_PIN_0) == ACTIVE) {
resetIdle();
while (digitalRead(CFG_BTN_PIN_0) == ACTIVE) {
Expand Down

0 comments on commit 8dba987

Please sign in to comment.