diff options
Diffstat (limited to 'src/matrix.h')
| -rw-r--r-- | src/matrix.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/matrix.h b/src/matrix.h new file mode 100644 index 0000000..749d16f --- /dev/null +++ b/src/matrix.h @@ -0,0 +1,17 @@ +#pragma once + +#include "util.h" + +#include <stdint.h> + +#define KEY_ROWS 4 +#define KEY_COLS 6 +#define KEY_COUNT (KEY_ROWS * KEY_COLS) + +void matrix_init(void); +void scan_matrix(void); + +extern bool prev_state_matrix[KEY_COUNT]; +extern bool state_matrix[KEY_COUNT]; +extern uint32_t sym_matrix[KEY_COUNT]; + |
