Refactoring Matrix scanning

This commit is contained in:
IBNobody 2016-10-28 16:24:20 -05:00
parent 508eddf8ba
commit 4c6960835c
2 changed files with 95 additions and 88 deletions

View file

@ -31,16 +31,6 @@ 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))