mirror of
https://github.com/Cian-H/qmk_firmware.git
synced 2025-12-23 06:31:58 +00:00
Fixing Debounce - WIP
This commit is contained in:
@@ -31,6 +31,16 @@ typedef uint32_t matrix_row_t;
|
||||
#error "MATRIX_COLS: invalid value"
|
||||
#endif
|
||||
|
||||
#if (MATRIX_ROWS <= 8)
|
||||
typedef uint8_t matrix_col_t;
|
||||
#elif (MATRIX_ROWS <= 16)
|
||||
typedef uint16_t matrix_col_t;
|
||||
#elif (MATRIX_ROWS <= 32)
|
||||
typedef uint32_t matrix_col_t;
|
||||
#else
|
||||
#error "MATRIX_COLS: invalid value"
|
||||
#endif
|
||||
|
||||
#define MATRIX_IS_ON(row, col) (matrix_get_row(row) && (1<<col))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user