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

@@ -1,6 +1,8 @@
#include "fsl_gpio.h"
#include "key_matrix.h"
uint8_t DebounceTimePress = 100, DebounceTimeRelease = 0;
void KeyMatrix_Init(key_matrix_t *keyMatrix)
{
for (key_matrix_pin_t *row = keyMatrix->rows; row < keyMatrix->rows + keyMatrix->rowNum; row++) {