Make debounce times configurable on the fly

This commit is contained in:
Eric Tang
2018-07-05 14:41:19 -07:00
parent 2ef5c49090
commit d722b3d173
3 changed files with 8 additions and 3 deletions

View File

@@ -9,7 +9,6 @@
// Macros:
#define MAX_KEYS_IN_MATRIX 100
#define KEY_BOUNCE_TIME_MSEC 100
// Typedefs:
@@ -29,6 +28,10 @@
uint8_t keyStates[MAX_KEYS_IN_MATRIX];
} key_matrix_t;
// Variables:
extern uint8_t DebounceTimePress, DebounceTimeRelease;
// Functions:
void KeyMatrix_Init(key_matrix_t *keyMatrix);