summaryrefslogtreecommitdiff
path: root/keyboards/planck
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/planck')
-rw-r--r--keyboards/planck/config.h8
-rw-r--r--keyboards/planck/ez/config.h17
-rw-r--r--keyboards/planck/ez/info.json5
-rw-r--r--keyboards/planck/info.json188
-rw-r--r--keyboards/planck/keymaps/andylikescandy/rules.mk0
-rw-r--r--keyboards/planck/keymaps/coloneljesus/rules.mk0
-rw-r--r--keyboards/planck/keymaps/jirgn/rules.mk0
-rw-r--r--keyboards/planck/keymaps/kelorean/rules.mk0
-rw-r--r--keyboards/planck/keymaps/mjt/rules.mk0
-rw-r--r--keyboards/planck/keymaps/mjtnumsym/rules.mk0
-rw-r--r--keyboards/planck/keymaps/motform/rules.mk0
-rw-r--r--keyboards/planck/keymaps/originerd/rules.mk0
-rwxr-xr-xkeyboards/planck/keymaps/paget/rules.mk0
-rw-r--r--keyboards/planck/keymaps/phreed/rules.mk0
-rw-r--r--keyboards/planck/keymaps/smt/rules.mk0
-rw-r--r--keyboards/planck/keymaps/tehwalris/rules.mk0
-rw-r--r--keyboards/planck/light/config.h9
-rw-r--r--keyboards/planck/light/info.json5
-rw-r--r--keyboards/planck/rev1/info.json5
-rw-r--r--keyboards/planck/rev2/info.json5
-rw-r--r--keyboards/planck/rev3/info.json5
-rw-r--r--keyboards/planck/rev4/info.json5
-rw-r--r--keyboards/planck/rev5/info.json5
-rw-r--r--keyboards/planck/rev6/config.h17
-rw-r--r--keyboards/planck/rev6/info.json5
-rw-r--r--keyboards/planck/rev6_drop/config.h19
-rw-r--r--keyboards/planck/rev6_drop/info.json5
-rw-r--r--keyboards/planck/thk/config.h8
-rw-r--r--keyboards/planck/thk/info.json193
29 files changed, 238 insertions, 266 deletions
diff --git a/keyboards/planck/config.h b/keyboards/planck/config.h
index ff4b7bb3aa..84c2fd11dc 100644
--- a/keyboards/planck/config.h
+++ b/keyboards/planck/config.h
@@ -17,17 +17,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-/* Planck PCB default pin-out */
-#define MATRIX_ROW_PINS { D0, D5, B5, B6 }
-#define MATRIX_COL_PINS { F1, F0, B0, C7, F4, F5, F6, F7, D4, D6, B4, D7 }
-
#define AUDIO_VOICES
#define AUDIO_PIN C6
-/* COL2ROW or ROW2COL */
-#define DIODE_DIRECTION COL2ROW
-
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
diff --git a/keyboards/planck/ez/config.h b/keyboards/planck/ez/config.h
index 04bfc314ce..6828e4dce2 100644
--- a/keyboards/planck/ez/config.h
+++ b/keyboards/planck/ez/config.h
@@ -18,23 +18,6 @@
#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)
- *
-*/
-
-#undef MATRIX_ROW_PINS
-#undef MATRIX_COL_PINS
-
-#define MATRIX_ROW_PINS { A10, A9, A8, B15, C13, C14, C15, A2 }
-#define MATRIX_COL_PINS { B11, B10, B2, B1, A7, B0 }
-
#define MUSIC_MAP
#undef AUDIO_VOICES
#undef AUDIO_PIN
diff --git a/keyboards/planck/ez/info.json b/keyboards/planck/ez/info.json
index ae67be691d..786814b987 100644
--- a/keyboards/planck/ez/info.json
+++ b/keyboards/planck/ez/info.json
@@ -6,6 +6,11 @@
"vid": "0x3297",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["B11", "B10", "B2", "B1", "A7", "B0"],
+ "rows": ["A10", "A9", "A8", "B15", "C13", "C14", "C15", "A2"]
+ },
+ "diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B12", "pin_b": "B13"}
diff --git a/keyboards/planck/info.json b/keyboards/planck/info.json
index cc57b6da60..a4911b999e 100644
--- a/keyboards/planck/info.json
+++ b/keyboards/planck/info.json
@@ -4,104 +4,104 @@
"layouts": {
"LAYOUT_planck_1x2uC": {
"layout": [
- { "w": 1, "x": 0, "y": 0 },
- { "w": 1, "x": 1, "y": 0 },
- { "w": 1, "x": 2, "y": 0 },
- { "w": 1, "x": 3, "y": 0 },
- { "w": 1, "x": 4, "y": 0 },
- { "w": 1, "x": 5, "y": 0 },
- { "w": 1, "x": 6, "y": 0 },
- { "w": 1, "x": 7, "y": 0 },
- { "w": 1, "x": 8, "y": 0 },
- { "w": 1, "x": 9, "y": 0 },
- { "w": 1, "x": 10, "y": 0 },
- { "w": 1, "x": 11, "y": 0 },
- { "w": 1, "x": 0, "y": 1 },
- { "w": 1, "x": 1, "y": 1 },
- { "w": 1, "x": 2, "y": 1 },
- { "w": 1, "x": 3, "y": 1 },
- { "w": 1, "x": 4, "y": 1 },
- { "w": 1, "x": 5, "y": 1 },
- { "w": 1, "x": 6, "y": 1 },
- { "w": 1, "x": 7, "y": 1 },
- { "w": 1, "x": 8, "y": 1 },
- { "w": 1, "x": 9, "y": 1 },
- { "w": 1, "x": 10, "y": 1 },
- { "w": 1, "x": 11, "y": 1 },
- { "w": 1, "x": 0, "y": 2 },
- { "w": 1, "x": 1, "y": 2 },
- { "w": 1, "x": 2, "y": 2 },
- { "w": 1, "x": 3, "y": 2 },
- { "w": 1, "x": 4, "y": 2 },
- { "w": 1, "x": 5, "y": 2 },
- { "w": 1, "x": 6, "y": 2 },
- { "w": 1, "x": 7, "y": 2 },
- { "w": 1, "x": 8, "y": 2 },
- { "w": 1, "x": 9, "y": 2 },
- { "w": 1, "x": 10, "y": 2 },
- { "w": 1, "x": 11, "y": 2 },
- { "w": 1, "x": 0, "y": 3 },
- { "w": 1, "x": 1, "y": 3 },
- { "w": 1, "x": 2, "y": 3 },
- { "w": 1, "x": 3, "y": 3 },
- { "w": 1, "x": 4, "y": 3 },
+ { "x": 0, "y": 0 },
+ { "x": 1, "y": 0 },
+ { "x": 2, "y": 0 },
+ { "x": 3, "y": 0 },
+ { "x": 4, "y": 0 },
+ { "x": 5, "y": 0 },
+ { "x": 6, "y": 0 },
+ { "x": 7, "y": 0 },
+ { "x": 8, "y": 0 },
+ { "x": 9, "y": 0 },
+ { "x": 10, "y": 0 },
+ { "x": 11, "y": 0 },
+ { "x": 0, "y": 1 },
+ { "x": 1, "y": 1 },
+ { "x": 2, "y": 1 },
+ { "x": 3, "y": 1 },
+ { "x": 4, "y": 1 },
+ { "x": 5, "y": 1 },
+ { "x": 6, "y": 1 },
+ { "x": 7, "y": 1 },
+ { "x": 8, "y": 1 },
+ { "x": 9, "y": 1 },
+ { "x": 10, "y": 1 },
+ { "x": 11, "y": 1 },
+ { "x": 0, "y": 2 },
+ { "x": 1, "y": 2 },
+ { "x": 2, "y": 2 },
+ { "x": 3, "y": 2 },
+ { "x": 4, "y": 2 },
+ { "x": 5, "y": 2 },
+ { "x": 6, "y": 2 },
+ { "x": 7, "y": 2 },
+ { "x": 8, "y": 2 },
+ { "x": 9, "y": 2 },
+ { "x": 10, "y": 2 },
+ { "x": 11, "y": 2 },
+ { "x": 0, "y": 3 },
+ { "x": 1, "y": 3 },
+ { "x": 2, "y": 3 },
+ { "x": 3, "y": 3 },
+ { "x": 4, "y": 3 },
{ "w": 2, "x": 5, "y": 3 },
- { "w": 1, "x": 7, "y": 3 },
- { "w": 1, "x": 8, "y": 3 },
- { "w": 1, "x": 9, "y": 3 },
- { "w": 1, "x": 10, "y": 3 },
- { "w": 1, "x": 11, "y": 3 } ]
+ { "x": 7, "y": 3 },
+ { "x": 8, "y": 3 },
+ { "x": 9, "y": 3 },
+ { "x": 10, "y": 3 },
+ { "x": 11, "y": 3 } ]
},
"LAYOUT_ortho_4x12": {
"layout": [
- { "w": 1, "x": 0, "y": 0 },
- { "w": 1, "x": 1, "y": 0 },
- { "w": 1, "x": 2, "y": 0 },
- { "w": 1, "x": 3, "y": 0 },
- { "w": 1, "x": 4, "y": 0 },
- { "w": 1, "x": 5, "y": 0 },
- { "w": 1, "x": 6, "y": 0 },
- { "w": 1, "x": 7, "y": 0 },
- { "w": 1, "x": 8, "y": 0 },
- { "w": 1, "x": 9, "y": 0 },
- { "w": 1, "x": 10, "y": 0 },
- { "w": 1, "x": 11, "y": 0 },
- { "w": 1, "x": 0, "y": 1 },
- { "w": 1, "x": 1, "y": 1 },
- { "w": 1, "x": 2, "y": 1 },
- { "w": 1, "x": 3, "y": 1 },
- { "w": 1, "x": 4, "y": 1 },
- { "w": 1, "x": 5, "y": 1 },
- { "w": 1, "x": 6, "y": 1 },
- { "w": 1, "x": 7, "y": 1 },
- { "w": 1, "x": 8, "y": 1 },
- { "w": 1, "x": 9, "y": 1 },
- { "w": 1, "x": 10, "y": 1 },
- { "w": 1, "x": 11, "y": 1 },
- { "w": 1, "x": 0, "y": 2 },
- { "w": 1, "x": 1, "y": 2 },
- { "w": 1, "x": 2, "y": 2 },
- { "w": 1, "x": 3, "y": 2 },
- { "w": 1, "x": 4, "y": 2 },
- { "w": 1, "x": 5, "y": 2 },
- { "w": 1, "x": 6, "y": 2 },
- { "w": 1, "x": 7, "y": 2 },
- { "w": 1, "x": 8, "y": 2 },
- { "w": 1, "x": 9, "y": 2 },
- { "w": 1, "x": 10, "y": 2 },
- { "w": 1, "x": 11, "y": 2 },
- { "w": 1, "x": 0, "y": 3 },
- { "w": 1, "x": 1, "y": 3 },
- { "w": 1, "x": 2, "y": 3 },
- { "w": 1, "x": 3, "y": 3 },
- { "w": 1, "x": 4, "y": 3 },
- { "w": 1, "x": 5, "y": 3 },
- { "w": 1, "x": 6, "y": 3 },
- { "w": 1, "x": 7, "y": 3 },
- { "w": 1, "x": 8, "y": 3 },
- { "w": 1, "x": 9, "y": 3 },
- { "w": 1, "x": 10, "y": 3 },
- { "w": 1, "x": 11, "y": 3 } ]
+ { "x": 0, "y": 0 },
+ { "x": 1, "y": 0 },
+ { "x": 2, "y": 0 },
+ { "x": 3, "y": 0 },
+ { "x": 4, "y": 0 },
+ { "x": 5, "y": 0 },
+ { "x": 6, "y": 0 },
+ { "x": 7, "y": 0 },
+ { "x": 8, "y": 0 },
+ { "x": 9, "y": 0 },
+ { "x": 10, "y": 0 },
+ { "x": 11, "y": 0 },
+ { "x": 0, "y": 1 },
+ { "x": 1, "y": 1 },
+ { "x": 2, "y": 1 },
+ { "x": 3, "y": 1 },
+ { "x": 4, "y": 1 },
+ { "x": 5, "y": 1 },
+ { "x": 6, "y": 1 },
+ { "x": 7, "y": 1 },
+ { "x": 8, "y": 1 },
+ { "x": 9, "y": 1 },
+ { "x": 10, "y": 1 },
+ { "x": 11, "y": 1 },
+ { "x": 0, "y": 2 },
+ { "x": 1, "y": 2 },
+ { "x": 2, "y": 2 },
+ { "x": 3, "y": 2 },
+ { "x": 4, "y": 2 },
+ { "x": 5, "y": 2 },
+ { "x": 6, "y": 2 },
+ { "x": 7, "y": 2 },
+ { "x": 8, "y": 2 },
+ { "x": 9, "y": 2 },
+ { "x": 10, "y": 2 },
+ { "x": 11, "y": 2 },
+ { "x": 0, "y": 3 },
+ { "x": 1, "y": 3 },
+ { "x": 2, "y": 3 },
+ { "x": 3, "y": 3 },
+ { "x": 4, "y": 3 },
+ { "x": 5, "y": 3 },
+ { "x": 6, "y": 3 },
+ { "x": 7, "y": 3 },
+ { "x": 8, "y": 3 },
+ { "x": 9, "y": 3 },
+ { "x": 10, "y": 3 },
+ { "x": 11, "y": 3 } ]
}
}
}
diff --git a/keyboards/planck/keymaps/andylikescandy/rules.mk b/keyboards/planck/keymaps/andylikescandy/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/andylikescandy/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/coloneljesus/rules.mk b/keyboards/planck/keymaps/coloneljesus/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/coloneljesus/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/jirgn/rules.mk b/keyboards/planck/keymaps/jirgn/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/jirgn/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/kelorean/rules.mk b/keyboards/planck/keymaps/kelorean/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/kelorean/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/mjt/rules.mk b/keyboards/planck/keymaps/mjt/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/mjt/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/mjtnumsym/rules.mk b/keyboards/planck/keymaps/mjtnumsym/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/mjtnumsym/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/motform/rules.mk b/keyboards/planck/keymaps/motform/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/motform/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/originerd/rules.mk b/keyboards/planck/keymaps/originerd/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/originerd/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/paget/rules.mk b/keyboards/planck/keymaps/paget/rules.mk
deleted file mode 100755
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/paget/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/phreed/rules.mk b/keyboards/planck/keymaps/phreed/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/phreed/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/smt/rules.mk b/keyboards/planck/keymaps/smt/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/smt/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/keymaps/tehwalris/rules.mk b/keyboards/planck/keymaps/tehwalris/rules.mk
deleted file mode 100644
index e69de29bb2..0000000000
--- a/keyboards/planck/keymaps/tehwalris/rules.mk
+++ /dev/null
diff --git a/keyboards/planck/light/config.h b/keyboards/planck/light/config.h
index 7a64f87174..d4001dd80b 100644
--- a/keyboards/planck/light/config.h
+++ b/keyboards/planck/light/config.h
@@ -1,14 +1,5 @@
#pragma once
-
-#undef MATRIX_ROW_PINS
-#undef MATRIX_COL_PINS
-
-#define MATRIX_ROW_PINS \
- { B0, E7, F0, F1 }
-#define MATRIX_COL_PINS \
- { E6, E3, E4, D3, D4, D5, C0, A7, A6, E1, E0, D7 }
-
#define AUDIO_PIN C6
#define AUDIO_PIN_ALT B5
diff --git a/keyboards/planck/light/info.json b/keyboards/planck/light/info.json
index c2ab19563e..5958899759 100644
--- a/keyboards/planck/light/info.json
+++ b/keyboards/planck/light/info.json
@@ -8,6 +8,11 @@
"pid": "0xBEA2",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["E6", "E3", "E4", "D3", "D4", "D5", "C0", "A7", "A6", "E1", "E0", "D7"],
+ "rows": ["B0", "E7", "F0", "F1"]
+ },
+ "diode_direction": "COL2ROW",
"backlight": {
"pin": "A5"
},
diff --git a/keyboards/planck/rev1/info.json b/keyboards/planck/rev1/info.json
index ebf11c9c8b..649132c30c 100644
--- a/keyboards/planck/rev1/info.json
+++ b/keyboards/planck/rev1/info.json
@@ -8,6 +8,11 @@
"pid": "0xAE01",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["F1", "F0", "B0", "C7", "F4", "F5", "F6", "F7", "D4", "D6", "B4", "D7"],
+ "rows": ["D0", "D5", "B5", "B6"]
+ },
+ "diode_direction": "COL2ROW",
"backlight": {
"pin": "B7"
},
diff --git a/keyboards/planck/rev2/info.json b/keyboards/planck/rev2/info.json
index b7a3a31628..ac4c605313 100644
--- a/keyboards/planck/rev2/info.json
+++ b/keyboards/planck/rev2/info.json
@@ -8,6 +8,11 @@
"pid": "0xAE01",
"device_version": "0.0.2"
},
+ "matrix_pins": {
+ "cols": ["F1", "F0", "B0", "C7", "F4", "F5", "F6", "F7", "D4", "D6", "B4", "D7"],
+ "rows": ["D0", "D5", "B5", "B6"]
+ },
+ "diode_direction": "COL2ROW",
"backlight": {
"pin": "B7"
},
diff --git a/keyboards/planck/rev3/info.json b/keyboards/planck/rev3/info.json
index 4ba0085cda..c853b9230d 100644
--- a/keyboards/planck/rev3/info.json
+++ b/keyboards/planck/rev3/info.json
@@ -8,6 +8,11 @@
"pid": "0xAE01",
"device_version": "0.0.3"
},
+ "matrix_pins": {
+ "cols": ["F1", "F0", "B0", "C7", "F4", "F5", "F6", "F7", "D4", "D6", "B4", "D7"],
+ "rows": ["D0", "D5", "B5", "B6"]
+ },
+ "diode_direction": "COL2ROW",
"backlight": {
"pin": "B7"
},
diff --git a/keyboards/planck/rev4/info.json b/keyboards/planck/rev4/info.json
index 46513d8248..c541e2dc4d 100644
--- a/keyboards/planck/rev4/info.json
+++ b/keyboards/planck/rev4/info.json
@@ -8,6 +8,11 @@
"pid": "0xAE01",
"device_version": "0.0.4"
},
+ "matrix_pins": {
+ "cols": ["F1", "F0", "B0", "C7", "F4", "F5", "F6", "F7", "D4", "D6", "B4", "D7"],
+ "rows": ["D0", "D5", "B5", "B6"]
+ },
+ "diode_direction": "COL2ROW",
"backlight": {
"pin": "B7"
},
diff --git a/keyboards/planck/rev5/info.json b/keyboards/planck/rev5/info.json
index 9fb2ae811e..883572e8e1 100644
--- a/keyboards/planck/rev5/info.json
+++ b/keyboards/planck/rev5/info.json
@@ -8,6 +8,11 @@
"pid": "0xAE01",
"device_version": "0.0.5"
},
+ "matrix_pins": {
+ "cols": ["F1", "F0", "B0", "C7", "F4", "F5", "F6", "F7", "D4", "D6", "B4", "D7"],
+ "rows": ["D0", "D5", "B5", "B6"]
+ },
+ "diode_direction": "COL2ROW",
"backlight": {
"pin": "B7"
},
diff --git a/keyboards/planck/rev6/config.h b/keyboards/planck/rev6/config.h
index a60c086b5b..5bde659509 100644
--- a/keyboards/planck/rev6/config.h
+++ b/keyboards/planck/rev6/config.h
@@ -17,23 +17,6 @@
#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)
- *
-*/
-/* Note: These are not used for arm boards. They're here purely as documentation. */
-#undef MATRIX_ROW_PINS
-#undef MATRIX_COL_PINS
-
-#define MATRIX_ROW_PINS { A10, A9, A8, B15, C13, C14, C15, A2 }
-#define MATRIX_COL_PINS { B11, B10, B2, B1, A7, B0 }
-
#define DIP_SWITCH_PINS { B14, A15, A0, B9 }
#define MUSIC_MAP
diff --git a/keyboards/planck/rev6/info.json b/keyboards/planck/rev6/info.json
index 9cc60ab5f0..904b998d03 100644
--- a/keyboards/planck/rev6/info.json
+++ b/keyboards/planck/rev6/info.json
@@ -8,6 +8,11 @@
"pid": "0xA4F9",
"device_version": "0.0.6"
},
+ "matrix_pins": {
+ "cols": ["B11", "B10", "B2", "B1", "A7", "B0"],
+ "rows": ["A10", "A9", "A8", "B15", "C13", "C14", "C15", "A2"]
+ },
+ "diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B12", "pin_b": "B13"}
diff --git a/keyboards/planck/rev6_drop/config.h b/keyboards/planck/rev6_drop/config.h
index 192d3fc6d8..296e1ac6d9 100644
--- a/keyboards/planck/rev6_drop/config.h
+++ b/keyboards/planck/rev6_drop/config.h
@@ -17,25 +17,6 @@
#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)
- *
- */
-/* Note: These are not used for arm boards. They're here purely as documentation. */
-#undef MATRIX_ROW_PINS
-#undef MATRIX_COL_PINS
-
-#define MATRIX_ROW_PINS \
- { A10, A9, A8, B15, C13, C14, C15, A2 }
-#define MATRIX_COL_PINS \
- { B11, B10, B2, B1, A7, B0 }
-
#define DIP_SWITCH_PINS \
{ B14, A15, A0, B9 }
diff --git a/keyboards/planck/rev6_drop/info.json b/keyboards/planck/rev6_drop/info.json
index 828f0c20b8..0b5279b2fb 100644
--- a/keyboards/planck/rev6_drop/info.json
+++ b/keyboards/planck/rev6_drop/info.json
@@ -8,6 +8,11 @@
"pid": "0xA4F9",
"device_version": "0.0.6"
},
+ "matrix_pins": {
+ "cols": ["B11", "B10", "B2", "B1", "A7", "B0"],
+ "rows": ["A10", "A9", "A8", "B15", "C13", "C14", "C15", "A2"]
+ },
+ "diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B12", "pin_b": "B13"}
diff --git a/keyboards/planck/thk/config.h b/keyboards/planck/thk/config.h
index bd93164345..832fb0789c 100644
--- a/keyboards/planck/thk/config.h
+++ b/keyboards/planck/thk/config.h
@@ -18,14 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
-
-// THK has a different pin-out
-#undef MATRIX_ROW_PINS
-#undef MATRIX_COL_PINS
-
-#define MATRIX_ROW_PINS { A7, A6, A5, A4 }
-#define MATRIX_COL_PINS { D7, C2, C3, C4, C5, C6, C7, A3, A2, A1, A0, B0 }
-
#define TAPPING_TOGGLE 3
#define DIP_SWITCH_PINS { D0, D1, D4, D6 }
diff --git a/keyboards/planck/thk/info.json b/keyboards/planck/thk/info.json
index 50ee36da3b..c99041be74 100644
--- a/keyboards/planck/thk/info.json
+++ b/keyboards/planck/thk/info.json
@@ -8,6 +8,11 @@
"pid": "0x25A7",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["D7", "C2", "C3", "C4", "C5", "C6", "C7", "A3", "A2", "A1", "A0", "B0"],
+ "rows": ["A7", "A6", "A5", "A4"]
+ },
+ "diode_direction": "COL2ROW",
"encoder": {
"rotary": [
{"pin_a": "B4", "pin_b": "B3"},
@@ -24,105 +29,105 @@
"layouts": {
"LAYOUT_ortho_4x12": {
"layout": [
- { "label": "k00", "matrix": [0, 0], "w": 1, "x": 0, "y": 0 },
- { "label": "k01", "matrix": [0, 1], "w": 1, "x": 1, "y": 0 },
- { "label": "k02", "matrix": [0, 2], "w": 1, "x": 2, "y": 0 },
- { "label": "k03", "matrix": [0, 3], "w": 1, "x": 3, "y": 0 },
- { "label": "k04", "matrix": [0, 4], "w": 1, "x": 4, "y": 0 },
- { "label": "k05", "matrix": [0, 5], "w": 1, "x": 5, "y": 0 },
- { "label": "k06", "matrix": [0, 6], "w": 1, "x": 6, "y": 0 },
- { "label": "k07", "matrix": [0, 7], "w": 1, "x": 7, "y": 0 },
- { "label": "k08", "matrix": [0, 8], "w": 1, "x": 8, "y": 0 },
- { "label": "k09", "matrix": [0, 9], "w": 1, "x": 9, "y": 0 },
- { "label": "k0a", "matrix": [0, 10], "w": 1, "x": 10, "y": 0 },
- { "label": "k0b", "matrix": [0, 11], "w": 1, "x": 11, "y": 0 },
- { "label": "k10", "matrix": [1, 0], "w": 1, "x": 0, "y": 1 },
- { "label": "k11", "matrix": [1, 1], "w": 1, "x": 1, "y": 1 },
- { "label": "k12", "matrix": [1, 2], "w": 1, "x": 2, "y": 1 },
- { "label": "k13", "matrix": [1, 3], "w": 1, "x": 3, "y": 1 },
- { "label": "k14", "matrix": [1, 4], "w": 1, "x": 4, "y": 1 },
- { "label": "k15", "matrix": [1, 5], "w": 1, "x": 5, "y": 1 },
- { "label": "k16", "matrix": [1, 6], "w": 1, "x": 6, "y": 1 },
- { "label": "k17", "matrix": [1, 7], "w": 1, "x": 7, "y": 1 },
- { "label": "k18", "matrix": [1, 8], "w": 1, "x": 8, "y": 1 },
- { "label": "k19", "matrix": [1, 9], "w": 1, "x": 9, "y": 1 },
- { "label": "k1a", "matrix": [1, 10], "w": 1, "x": 10, "y": 1 },
- { "label": "k1b", "matrix": [1, 11], "w": 1, "x": 11, "y": 1 },
- { "label": "k20", "matrix": [2, 0], "w": 1, "x": 0, "y": 2 },
- { "label": "k21", "matrix": [2, 1], "w": 1, "x": 1, "y": 2 },
- { "label": "k22", "matrix": [2, 2], "w": 1, "x": 2, "y": 2 },
- { "label": "k23", "matrix": [2, 3], "w": 1, "x": 3, "y": 2 },
- { "label": "k24", "matrix": [2, 4], "w": 1, "x": 4, "y": 2 },
- { "label": "k25", "matrix": [2, 5], "w": 1, "x": 5, "y": 2 },
- { "label": "k26", "matrix": [2, 6], "w": 1, "x": 6, "y": 2 },
- { "label": "k27", "matrix": [2, 7], "w": 1, "x": 7, "y": 2 },
- { "label": "k28", "matrix": [2, 8], "w": 1, "x": 8, "y": 2 },
- { "label": "k29", "matrix": [2, 9], "w": 1, "x": 9, "y": 2 },
- { "label": "k2a", "matrix": [2, 10], "w": 1, "x": 10, "y": 2 },
- { "label": "k2b", "matrix": [2, 11], "w": 1, "x": 11, "y": 2 },
- { "label": "k30", "matrix": [3, 0], "w": 1, "x": 0, "y": 3 },
- { "label": "k31", "matrix": [3, 1], "w": 1, "x": 1, "y": 3 },
- { "label": "k32", "matrix": [3, 2], "w": 1, "x": 2, "y": 3 },
- { "label": "k33", "matrix": [3, 3], "w": 1, "x": 3, "y": 3 },
- { "label": "k34", "matrix": [3, 4], "w": 1, "x": 4, "y": 3 },
- { "label": "k35", "matrix": [3, 5], "w": 1, "x": 5, "y": 3 },
- { "label": "k36", "matrix": [3, 6], "w": 1, "x": 6, "y": 3 },
- { "label": "k37", "matrix": [3, 7], "w": 1, "x": 7, "y": 3 },
- { "label": "k38", "matrix": [3, 8], "w": 1, "x": 8, "y": 3 },
- { "label": "k39", "matrix": [3, 9], "w": 1, "x": 9, "y": 3 },
- { "label": "k3a", "matrix": [3, 10], "w": 1, "x": 10, "y": 3 },
- { "label": "k3b", "matrix": [3, 11], "w": 1, "x": 11, "y": 3 }
+ { "label": "k00", "matrix": [0, 0], "x": 0, "y": 0 },
+ { "label": "k01", "matrix": [0, 1], "x": 1, "y": 0 },
+ { "label": "k02", "matrix": [0, 2], "x": 2, "y": 0 },
+ { "label": "k03", "matrix": [0, 3], "x": 3, "y": 0 },
+ { "label": "k04", "matrix": [0, 4], "x": 4, "y": 0 },
+ { "label": "k05", "matrix": [0, 5], "x": 5, "y": 0 },
+ { "label": "k06", "matrix": [0, 6], "x": 6, "y": 0 },
+ { "label": "k07", "matrix": [0, 7], "x": 7, "y": 0 },
+ { "label": "k08", "matrix": [0, 8], "x": 8, "y": 0 },
+ { "label": "k09", "matrix": [0, 9], "x": 9, "y": 0 },
+ { "label": "k0a", "matrix": [0, 10], "x": 10, "y": 0 },
+ { "label": "k0b", "matrix": [0, 11], "x": 11, "y": 0 },
+ { "label": "k10", "matrix": [1, 0], "x": 0, "y": 1 },
+ { "label": "k11", "matrix": [1, 1], "x": 1, "y": 1 },
+ { "label": "k12", "matrix": [1, 2], "x": 2, "y": 1 },
+ { "label": "k13", "matrix": [1, 3], "x": 3, "y": 1 },
+ { "label": "k14", "matrix": [1, 4], "x": 4, "y": 1 },
+ { "label": "k15", "matrix": [1, 5], "x": 5, "y": 1 },
+ { "label": "k16", "matrix": [1, 6], "x": 6, "y": 1 },
+ { "label": "k17", "matrix": [1, 7], "x": 7, "y": 1 },
+ { "label": "k18", "matrix": [1, 8], "x": 8, "y": 1 },
+ { "label": "k19", "matrix": [1, 9], "x": 9, "y": 1 },
+ { "label": "k1a", "matrix": [1, 10], "x": 10, "y": 1 },
+ { "label": "k1b", "matrix": [1, 11], "x": 11, "y": 1 },
+ { "label": "k20", "matrix": [2, 0], "x": 0, "y": 2 },
+ { "label": "k21", "matrix": [2, 1], "x": 1, "y": 2 },
+ { "label": "k22", "matrix": [2, 2], "x": 2, "y": 2 },
+ { "label": "k23", "matrix": [2, 3], "x": 3, "y": 2 },
+ { "label": "k24", "matrix": [2, 4], "x": 4, "y": 2 },
+ { "label": "k25", "matrix": [2, 5], "x": 5, "y": 2 },
+ { "label": "k26", "matrix": [2, 6], "x": 6, "y": 2 },
+ { "label": "k27", "matrix": [2, 7], "x": 7, "y": 2 },
+ { "label": "k28", "matrix": [2, 8], "x": 8, "y": 2 },
+ { "label": "k29", "matrix": [2, 9], "x": 9, "y": 2 },
+ { "label": "k2a", "matrix": [2, 10], "x": 10, "y": 2 },
+ { "label": "k2b", "matrix": [2, 11], "x": 11, "y": 2 },
+ { "label": "k30", "matrix": [3, 0], "x": 0, "y": 3 },
+ { "label": "k31", "matrix": [3, 1], "x": 1, "y": 3 },
+ { "label": "k32", "matrix": [3, 2], "x": 2, "y": 3 },
+ { "label": "k33", "matrix": [3, 3], "x": 3, "y": 3 },
+ { "label": "k34", "matrix": [3, 4], "x": 4, "y": 3 },
+ { "label": "k35", "matrix": [3, 5], "x": 5, "y": 3 },
+ { "label": "k36", "matrix": [3, 6], "x": 6, "y": 3 },
+ { "label": "k37", "matrix": [3, 7], "x": 7, "y": 3 },
+ { "label": "k38", "matrix": [3, 8], "x": 8, "y": 3 },
+ { "label": "k39", "matrix": [3, 9], "x": 9, "y": 3 },
+ { "label": "k3a", "matrix": [3, 10], "x": 10, "y": 3 },
+ { "label": "k3b", "matrix": [3, 11], "x": 11, "y": 3 }
]
},
"LAYOUT_planck_1x2uC": {
"layout": [
- { "label": "k00", "matrix": [0, 0], "w": 1, "x": 0, "y": 0 },
- { "label": "k01", "matrix": [0, 1], "w": 1, "x": 1, "y": 0 },
- { "label": "k02", "matrix": [0, 2], "w": 1, "x": 2, "y": 0 },
- { "label": "k03", "matrix": [0, 3], "w": 1, "x": 3, "y": 0 },
- { "label": "k04", "matrix": [0, 4], "w": 1, "x": 4, "y": 0 },
- { "label": "k05", "matrix": [0, 5], "w": 1, "x": 5, "y": 0 },
- { "label": "k06", "matrix": [0, 6], "w": 1, "x": 6, "y": 0 },
- { "label": "k07", "matrix": [0, 7], "w": 1, "x": 7, "y": 0 },
- { "label": "k08", "matrix": [0, 8], "w": 1, "x": 8, "y": 0 },
- { "label": "k09", "matrix": [0, 9], "w": 1, "x": 9, "y": 0 },
- { "label": "k0a", "matrix": [0, 10], "w": 1, "x": 10, "y": 0 },
- { "label": "k0b", "matrix": [0, 11], "w": 1, "x": 11, "y": 0 },
- { "label": "k10", "matrix": [1, 0], "w": 1, "x": 0, "y": 1 },
- { "label": "k11", "matrix": [1, 1], "w": 1, "x": 1, "y": 1 },
- { "label": "k12", "matrix": [1, 2], "w": 1, "x": 2, "y": 1 },
- { "label": "k13", "matrix": [1, 3], "w": 1, "x": 3, "y": 1 },
- { "label": "k14", "matrix": [1, 4], "w": 1, "x": 4, "y": 1 },
- { "label": "k15", "matrix": [1, 5], "w": 1, "x": 5, "y": 1 },
- { "label": "k16", "matrix": [1, 6], "w": 1, "x": 6, "y": 1 },
- { "label": "k17", "matrix": [1, 7], "w": 1, "x": 7, "y": 1 },
- { "label": "k18", "matrix": [1, 8], "w": 1, "x": 8, "y": 1 },
- { "label": "k19", "matrix": [1, 9], "w": 1, "x": 9, "y": 1 },
- { "label": "k1a", "matrix": [1, 10], "w": 1, "x": 10, "y": 1 },
- { "label": "k1b", "matrix": [1, 11], "w": 1, "x": 11, "y": 1 },
- { "label": "k20", "matrix": [2, 0], "w": 1, "x": 0, "y": 2 },
- { "label": "k21", "matrix": [2, 1], "w": 1, "x": 1, "y": 2 },
- { "label": "k22", "matrix": [2, 2], "w": 1, "x": 2, "y": 2 },
- { "label": "k23", "matrix": [2, 3], "w": 1, "x": 3, "y": 2 },
- { "label": "k24", "matrix": [2, 4], "w": 1, "x": 4, "y": 2 },
- { "label": "k25", "matrix": [2, 5], "w": 1, "x": 5, "y": 2 },
- { "label": "k26", "matrix": [2, 6], "w": 1, "x": 6, "y": 2 },
- { "label": "k27", "matrix": [2, 7], "w": 1, "x": 7, "y": 2 },
- { "label": "k28", "matrix": [2, 8], "w": 1, "x": 8, "y": 2 },
- { "label": "k29", "matrix": [2, 9], "w": 1, "x": 9, "y": 2 },
- { "label": "k2a", "matrix": [2, 10], "w": 1, "x": 10, "y": 2 },
- { "label": "k2b", "matrix": [2, 11], "w": 1, "x": 11, "y": 2 },
- { "label": "k30", "matrix": [3, 0], "w": 1, "x": 0, "y": 3 },
- { "label": "k31", "matrix": [3, 1], "w": 1, "x": 1, "y": 3 },
- { "label": "k32", "matrix": [3, 2], "w": 1, "x": 2, "y": 3 },
- { "label": "k33", "matrix": [3, 3], "w": 1, "x": 3, "y": 3 },
- { "label": "k34", "matrix": [3, 4], "w": 1, "x": 4, "y": 3 },
+ { "label": "k00", "matrix": [0, 0], "x": 0, "y": 0 },
+ { "label": "k01", "matrix": [0, 1], "x": 1, "y": 0 },
+ { "label": "k02", "matrix": [0, 2], "x": 2, "y": 0 },
+ { "label": "k03", "matrix": [0, 3], "x": 3, "y": 0 },
+ { "label": "k04", "matrix": [0, 4], "x": 4, "y": 0 },
+ { "label": "k05", "matrix": [0, 5], "x": 5, "y": 0 },
+ { "label": "k06", "matrix": [0, 6], "x": 6, "y": 0 },
+ { "label": "k07", "matrix": [0, 7], "x": 7, "y": 0 },
+ { "label": "k08", "matrix": [0, 8], "x": 8, "y": 0 },
+ { "label": "k09", "matrix": [0, 9], "x": 9, "y": 0 },
+ { "label": "k0a", "matrix": [0, 10], "x": 10, "y": 0 },
+ { "label": "k0b", "matrix": [0, 11], "x": 11, "y": 0 },
+ { "label": "k10", "matrix": [1, 0], "x": 0, "y": 1 },
+ { "label": "k11", "matrix": [1, 1], "x": 1, "y": 1 },
+ { "label": "k12", "matrix": [1, 2], "x": 2, "y": 1 },
+ { "label": "k13", "matrix": [1, 3], "x": 3, "y": 1 },
+ { "label": "k14", "matrix": [1, 4], "x": 4, "y": 1 },
+ { "label": "k15", "matrix": [1, 5], "x": 5, "y": 1 },
+ { "label": "k16", "matrix": [1, 6], "x": 6, "y": 1 },
+ { "label": "k17", "matrix": [1, 7], "x": 7, "y": 1 },
+ { "label": "k18", "matrix": [1, 8], "x": 8, "y": 1 },
+ { "label": "k19", "matrix": [1, 9], "x": 9, "y": 1 },
+ { "label": "k1a", "matrix": [1, 10], "x": 10, "y": 1 },
+ { "label": "k1b", "matrix": [1, 11], "x": 11, "y": 1 },
+ { "label": "k20", "matrix": [2, 0], "x": 0, "y": 2 },
+ { "label": "k21", "matrix": [2, 1], "x": 1, "y": 2 },
+ { "label": "k22", "matrix": [2, 2], "x": 2, "y": 2 },
+ { "label": "k23", "matrix": [2, 3], "x": 3, "y": 2 },
+ { "label": "k24", "matrix": [2, 4], "x": 4, "y": 2 },
+ { "label": "k25", "matrix": [2, 5], "x": 5, "y": 2 },
+ { "label": "k26", "matrix": [2, 6], "x": 6, "y": 2 },
+ { "label": "k27", "matrix": [2, 7], "x": 7, "y": 2 },
+ { "label": "k28", "matrix": [2, 8], "x": 8, "y": 2 },
+ { "label": "k29", "matrix": [2, 9], "x": 9, "y": 2 },
+ { "label": "k2a", "matrix": [2, 10], "x": 10, "y": 2 },
+ { "label": "k2b", "matrix": [2, 11], "x": 11, "y": 2 },
+ { "label": "k30", "matrix": [3, 0], "x": 0, "y": 3 },
+ { "label": "k31", "matrix": [3, 1], "x": 1, "y": 3 },
+ { "label": "k32", "matrix": [3, 2], "x": 2, "y": 3 },
+ { "label": "k33", "matrix": [3, 3], "x": 3, "y": 3 },
+ { "label": "k34", "matrix": [3, 4], "x": 4, "y": 3 },
{ "label": "k35", "matrix": [3, 6], "w": 2, "x": 5, "y": 3 },
- { "label": "k37", "matrix": [3, 7], "w": 1, "x": 7, "y": 3 },
- { "label": "k38", "matrix": [3, 8], "w": 1, "x": 8, "y": 3 },
- { "label": "k39", "matrix": [3, 9], "w": 1, "x": 9, "y": 3 },
- { "label": "k3a", "matrix": [3, 10], "w": 1, "x": 10, "y": 3 },
- { "label": "k3b", "matrix": [3, 11], "w": 1, "x": 11, "y": 3 }
+ { "label": "k37", "matrix": [3, 7], "x": 7, "y": 3 },
+ { "label": "k38", "matrix": [3, 8], "x": 8, "y": 3 },
+ { "label": "k39", "matrix": [3, 9], "x": 9, "y": 3 },
+ { "label": "k3a", "matrix": [3, 10], "x": 10, "y": 3 },
+ { "label": "k3b", "matrix": [3, 11], "x": 11, "y": 3 }
]
}
}