summaryrefslogtreecommitdiffstats
path: root/keyboards/doppelganger
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-03-11 00:00:24 +1100
committerGitHub <noreply@github.com>2023-03-11 00:00:24 +1100
commit9e64300e67720a5468c2585391250ca5579b311b (patch)
treed8c471bb33cd5d0e38e90d925d69b3c6b3cb2d59 /keyboards/doppelganger
parentdd086a51d82a574a55eb3b89e8943301d72296f3 (diff)
Move matrix config to info.json, part 4 (#20001)
Diffstat (limited to 'keyboards/doppelganger')
-rw-r--r--keyboards/doppelganger/config.h20
-rw-r--r--keyboards/doppelganger/info.json13
2 files changed, 12 insertions, 21 deletions
diff --git a/keyboards/doppelganger/config.h b/keyboards/doppelganger/config.h
index 7fb78172d4..21b4c6f146 100644
--- a/keyboards/doppelganger/config.h
+++ b/keyboards/doppelganger/config.h
@@ -17,28 +17,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/*
- * Keyboard Matrix Assignments
- *
- * Change this to how you wired your keyboard
- * COLS: AVR pins used for columns, left to right
- * ROWS: AVR pins used for rows, top to bottom
- * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
- * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
- *
-*/
#define SPLIT_HAND_PIN D4
-#define MATRIX_ROW_PINS { E6, F1, C7, F7, F6 }
-#define MATRIX_COL_PINS { F4, F0, B7, B3, B2, B1, D5, D3, D2 }
-
-#define MATRIX_ROW_PINS_RIGHT { D7, D6, D4, E6, B5 }
-#define MATRIX_COL_PINS_RIGHT { F1, F0, F4, F5, F6, F7, C7, C6, B6 }
-
-/* COL2ROW, ROW2COL*/
-#define DIODE_DIRECTION COL2ROW
-
// #define USE_I2C
#define RGB_DI_PIN B4
diff --git a/keyboards/doppelganger/info.json b/keyboards/doppelganger/info.json
index d576f73d69..5c489fe44e 100644
--- a/keyboards/doppelganger/info.json
+++ b/keyboards/doppelganger/info.json
@@ -8,8 +8,19 @@
"pid": "0x4447",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["F4", "F0", "B7", "B3", "B2", "B1", "D5", "D3", "D2"],
+ "rows": ["E6", "F1", "C7", "F7", "F6"]
+ },
+ "diode_direction": "COL2ROW",
"split": {
- "soft_serial_pin": "D1"
+ "soft_serial_pin": "D1",
+ "matrix_pins": {
+ "right": {
+ "cols": ["F1", "F0", "F4", "F5", "F6", "F7", "C7", "C6", "B6"],
+ "rows": ["D7", "D6", "D4", "E6", "B5"]
+ }
+ }
},
"bootmagic": {
"matrix": [0, 2]