0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +03:00

Hold EXIT key to cancel user inputs, also timeout added

This commit is contained in:
OneOfEleven
2023-09-15 15:36:43 +01:00
parent dfd7a1f2b4
commit 7ae40a361b
10 changed files with 103 additions and 34 deletions

3
misc.c
View File

@ -18,6 +18,8 @@
#include "misc.h"
const uint8_t key_input_timeout = 10; // 5 seconds
const uint16_t key_repeat_delay = 40; // 400ms
const uint16_t key_repeat = 8; // was 15 (150ms) .. MUST be less than 'key_repeat_delay'
const uint16_t key_debounce = 2; // 20ms
@ -79,6 +81,7 @@ volatile uint16_t gTailNoteEliminationCountdown;
#endif
bool gEnableSpeaker;
uint8_t gKeyInputCountdown = 0;
uint8_t gKeyLockCountdown;
uint8_t gRTTECountdown;
bool bIsInLockScreen;