Add KeyMatrix_Scan() although don't use it yet. Send every detected scancode to the host of which there are false positives for some reason.
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
#include "fsl_common.h"
|
||||
#include "fsl_port.h"
|
||||
|
||||
// Macros:
|
||||
|
||||
#define MAX_KEYS_IN_MATRIX 100
|
||||
|
||||
// Type definitions:
|
||||
|
||||
typedef struct {
|
||||
@@ -20,10 +24,12 @@
|
||||
uint8_t rowNum;
|
||||
key_matrix_pin_t *cols;
|
||||
key_matrix_pin_t *rows;
|
||||
uint8_t keyStates[MAX_KEYS_IN_MATRIX];
|
||||
} key_matrix_t;
|
||||
|
||||
// Functions:
|
||||
|
||||
void KeyMatrix_Init(key_matrix_t keyMatrix);
|
||||
void KeyMatrix_Init(key_matrix_t *keyMatrix);
|
||||
void KeyMatrix_Scan(key_matrix_t *keyMatrix);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user