summaryrefslogtreecommitdiff
path: root/keyboards/lets_split/uno_slave/uno-matrix.h
blob: c0f636f80558d8e2f74a036b2a4a99d24d5ed9dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef UNO_MATRIX
#define UNO_MATRIX

#define MATRIX_ROWS 4
#define MATRIX_COLS 6

#include <stdbool.h>

typedef uint8_t matrix_row_t;

uint8_t matrix_rows(void);
uint8_t matrix_cols(void);
void matrix_init(void);
uint8_t matrix_scan(void);
bool matrix_is_modified(void);
bool matrix_is_on(uint8_t row, uint8_t col);
matrix_row_t matrix_get_row(uint8_t row);

#endif