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:
László Monda
2016-10-10 22:39:22 +02:00
parent 56b8609187
commit c8284fcd6f
3 changed files with 46 additions and 9 deletions

View File

@@ -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