core: Change matrix_init and matrix_print

This commit is contained in:
tmk 2016-10-08 10:57:38 +09:00
parent cb9480877d
commit f57d834f13
2 changed files with 12 additions and 10 deletions

View file

@ -32,6 +32,10 @@ typedef uint32_t matrix_row_t;
#error "MATRIX_COLS: invalid value"
#endif
#if (MATRIX_ROWS > 255)
#error "MATRIX_ROWS must not exceed 255"
#endif
#define MATRIX_IS_ON(row, col) (matrix_get_row(row) && (1<<col))