aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/matrix/m20add/config.h6
-rw-r--r--keyboards/matrix/m20add/matrix.c2
2 files changed, 5 insertions, 3 deletions
diff --git a/keyboards/matrix/m20add/config.h b/keyboards/matrix/m20add/config.h
index 8c3f922ab..316434649 100644
--- a/keyboards/matrix/m20add/config.h
+++ b/keyboards/matrix/m20add/config.h
@@ -45,7 +45,8 @@
45#define COL15_MASK 0x04 45#define COL15_MASK 0x04
46#define COL16_MASK 0x02 46#define COL16_MASK 0x02
47 47
48#define MATRIX_ROW_PINS { \ 48// Note: MATRIX_ROW_PINS only works with standard pin names.
49#define MATRIX_M20_ROW_PINS { \
49 DEF_PIN(TCA6424_PORT2, 7), \ 50 DEF_PIN(TCA6424_PORT2, 7), \
50 DEF_PIN(TCA6424_PORT2, 6), \ 51 DEF_PIN(TCA6424_PORT2, 6), \
51 DEF_PIN(TCA6424_PORT2, 0), \ 52 DEF_PIN(TCA6424_PORT2, 0), \
@@ -53,7 +54,8 @@
53 DEF_PIN(TCA6424_PORT2, 4), \ 54 DEF_PIN(TCA6424_PORT2, 4), \
54 DEF_PIN(TCA6424_PORT2, 5) } 55 DEF_PIN(TCA6424_PORT2, 5) }
55 56
56#define MATRIX_COL_PINS { \ 57// Note: MATRIX_COL_PINS only works with standard pin names.
58#define MATRIX_M20_COL_PINS { \
57 DEF_PIN(TCA6424_PORT2, 1), \ 59 DEF_PIN(TCA6424_PORT2, 1), \
58 DEF_PIN(TCA6424_PORT1, 7), \ 60 DEF_PIN(TCA6424_PORT1, 7), \
59 DEF_PIN(TCA6424_PORT1, 6), \ 61 DEF_PIN(TCA6424_PORT1, 6), \
diff --git a/keyboards/matrix/m20add/matrix.c b/keyboards/matrix/m20add/matrix.c
index b17643fea..e9ddbdff6 100644
--- a/keyboards/matrix/m20add/matrix.c
+++ b/keyboards/matrix/m20add/matrix.c
@@ -10,7 +10,7 @@
10#include "tca6424.h" 10#include "tca6424.h"
11#include "m20add.h" 11#include "m20add.h"
12 12
13static const uint16_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS; 13static const uint16_t col_pins[MATRIX_COLS] = MATRIX_M20_COL_PINS;
14 14
15void matrix_init_custom(void) 15void matrix_init_custom(void)
16{ 16{