diff options
| author | Louis Burda <quent.burda@gmail.com> | 2022-11-29 00:53:17 +0100 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2022-11-29 00:53:17 +0100 |
| commit | a90347438e51bbd5f65c1c58c76ba339df7fc814 (patch) | |
| tree | 589c1d7c04228ac955d7b4c392aa94c50c762c8f /src/matrix.h | |
| parent | a7bfb47f666c8fadffb80b1beeee1905ad3fe029 (diff) | |
| download | sxkbd-a90347438e51bbd5f65c1c58c76ba339df7fc814.tar.gz sxkbd-a90347438e51bbd5f65c1c58c76ba339df7fc814.zip | |
Refactoring and added sdk uart (not working)
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]; + |
