change matrix/m20add to use non-standard names for non-standard pins

This commit is contained in:
Zach White 2021-01-06 10:42:37 -08:00 committed by Zach White
parent 82007aa03a
commit 4394fc35ea
2 changed files with 5 additions and 3 deletions

View File

@ -45,7 +45,8 @@
#define COL15_MASK 0x04 #define COL15_MASK 0x04
#define COL16_MASK 0x02 #define COL16_MASK 0x02
#define MATRIX_ROW_PINS { \ // Note: MATRIX_ROW_PINS only works with standard pin names.
#define MATRIX_M20_ROW_PINS { \
DEF_PIN(TCA6424_PORT2, 7), \ DEF_PIN(TCA6424_PORT2, 7), \
DEF_PIN(TCA6424_PORT2, 6), \ DEF_PIN(TCA6424_PORT2, 6), \
DEF_PIN(TCA6424_PORT2, 0), \ DEF_PIN(TCA6424_PORT2, 0), \
@ -53,7 +54,8 @@
DEF_PIN(TCA6424_PORT2, 4), \ DEF_PIN(TCA6424_PORT2, 4), \
DEF_PIN(TCA6424_PORT2, 5) } DEF_PIN(TCA6424_PORT2, 5) }
#define MATRIX_COL_PINS { \ // Note: MATRIX_COL_PINS only works with standard pin names.
#define MATRIX_M20_COL_PINS { \
DEF_PIN(TCA6424_PORT2, 1), \ DEF_PIN(TCA6424_PORT2, 1), \
DEF_PIN(TCA6424_PORT1, 7), \ DEF_PIN(TCA6424_PORT1, 7), \
DEF_PIN(TCA6424_PORT1, 6), \ DEF_PIN(TCA6424_PORT1, 6), \

View File

@ -10,7 +10,7 @@
#include "tca6424.h" #include "tca6424.h"
#include "m20add.h" #include "m20add.h"
static const uint16_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; static const uint16_t col_pins[MATRIX_COLS] = MATRIX_M20_COL_PINS;
void matrix_init_custom(void) void matrix_init_custom(void)
{ {