aboutsummaryrefslogtreecommitdiffstats
path: root/src/matrix.h
blob: 749d16ff914f1387b6fbd37b504cc3ddc30fda52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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];