Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

uno-matrix.h 368B

12345678910111213141516171819
  1. #ifndef UNO_MATRIX
  2. #define UNO_MATRIX
  3. #define MATRIX_ROWS 4
  4. #define MATRIX_COLS 6
  5. #include <stdbool.h>
  6. typedef uint8_t matrix_row_t;
  7. uint8_t matrix_rows(void);
  8. uint8_t matrix_cols(void);
  9. void matrix_init(void);
  10. uint8_t matrix_scan(void);
  11. bool matrix_is_modified(void);
  12. bool matrix_is_on(uint8_t row, uint8_t col);
  13. matrix_row_t matrix_get_row(uint8_t row);
  14. #endif