|
|
@ -34,12 +34,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
#ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
#define ATMEGA_KEYSCANNER_PROPS(ROW_PINS_, COL_PINS_) \
|
|
|
|
#define ATMEGA_KEYSCANNER_PROPS(ROW_PINS_, COL_PINS_) \
|
|
|
|
KEYSCANNER_PROPS(NUM_ARGS(ROW_PINS_), NUM_ARGS(COL_PINS_)); \
|
|
|
|
static constexpr uint8_t matrix_rows = NUM_ARGS(ROW_PINS_); \
|
|
|
|
|
|
|
|
static constexpr uint8_t matrix_columns = NUM_ARGS(COL_PINS_); \
|
|
|
|
|
|
|
|
typedef MatrixAddr<matrix_rows, matrix_columns> KeyAddr; \
|
|
|
|
|
|
|
|
\
|
|
|
|
static constexpr uint8_t matrix_row_pins[matrix_rows] = ROW_PINS_; \
|
|
|
|
static constexpr uint8_t matrix_row_pins[matrix_rows] = ROW_PINS_; \
|
|
|
|
static constexpr uint8_t matrix_col_pins[matrix_columns] = COL_PINS_;
|
|
|
|
static constexpr uint8_t matrix_col_pins[matrix_columns] = COL_PINS_;
|
|
|
|
#else // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
#else // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
#define ATMEGA_KEYSCANNER_PROPS(ROW_PINS_, COL_PINS_) \
|
|
|
|
#define ATMEGA_KEYSCANNER_PROPS(ROW_PINS_, COL_PINS_) \
|
|
|
|
KEYSCANNER_PROPS(NUM_ARGS(ROW_PINS_), NUM_ARGS(COL_PINS_));
|
|
|
|
static constexpr uint8_t matrix_rows = NUM_ARGS(ROW_PINS_); \
|
|
|
|
|
|
|
|
static constexpr uint8_t matrix_columns = NUM_ARGS(COL_PINS_); \
|
|
|
|
|
|
|
|
typedef MatrixAddr<matrix_rows, matrix_columns> KeyAddr;
|
|
|
|
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
|
|
|
|
|
|
|
|
#define ATMEGA_KEYSCANNER_BOILERPLATE \
|
|
|
|
#define ATMEGA_KEYSCANNER_BOILERPLATE \
|
|
|
|