|
|
|
@ -49,6 +49,20 @@ struct cRGB {
|
|
|
|
|
static uint16_t masks_[matrix_rows]; \
|
|
|
|
|
static uint8_t debounce_matrix_[matrix_rows][matrix_columns];
|
|
|
|
|
|
|
|
|
|
#define ATMEGA_KEYBOARD_DATA(BOARD) \
|
|
|
|
|
const int8_t BOARD::matrix_rows; \
|
|
|
|
|
const int8_t BOARD::matrix_columns; \
|
|
|
|
|
constexpr uint8_t BOARD::matrix_row_pins[matrix_rows]; \
|
|
|
|
|
constexpr uint8_t BOARD::matrix_col_pins[matrix_columns]; \
|
|
|
|
|
uint16_t BOARD::previousKeyState_[matrix_rows]; \
|
|
|
|
|
uint16_t BOARD::keyState_[matrix_rows]; \
|
|
|
|
|
uint16_t BOARD::masks_[matrix_rows]; \
|
|
|
|
|
uint8_t BOARD::debounce_matrix_[matrix_rows][matrix_columns]; \
|
|
|
|
|
\
|
|
|
|
|
ISR(TIMER1_OVF_vect) { \
|
|
|
|
|
BOARD::do_scan_ = true; \
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace kaleidoscope {
|
|
|
|
|
namespace hardware {
|
|
|
|
|
class ATMegaKeyboard {
|
|
|
|
|