summaryrefslogtreecommitdiffstats
path: root/keyboards/4by3
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/4by3')
-rw-r--r--keyboards/4by3/4by3.c1
-rw-r--r--keyboards/4by3/4by3.h70
-rw-r--r--keyboards/4by3/config.h9
-rw-r--r--keyboards/4by3/info.json63
4 files changed, 52 insertions, 91 deletions
diff --git a/keyboards/4by3/4by3.c b/keyboards/4by3/4by3.c
deleted file mode 100644
index 3ae27260d4..0000000000
--- a/keyboards/4by3/4by3.c
+++ /dev/null
@@ -1 +0,0 @@
-#include "4by3.h" \ No newline at end of file
diff --git a/keyboards/4by3/4by3.h b/keyboards/4by3/4by3.h
deleted file mode 100644
index b41628137a..0000000000
--- a/keyboards/4by3/4by3.h
+++ /dev/null
@@ -1,70 +0,0 @@
-#pragma once
-
-#include "quantum.h"
-
-/* LAYOUT_horizontal
- * ┌───┐
- * │USB│
- * ├───┼───┬───┬───┐
- * │K00│K01│K02│K03│
- * ├───┼───┼───┼───┤
- * │K10│K11│K12│K13│
- * ├───┼───┼───┼───┤
- * │K20│K21│K22│K23│
- * └───┴───┴───┴───┘
- */
-#define LAYOUT_horizontal( \
- K00, K01, K02, K03, \
- K10, K11, K12, K13, \
- K20, K21, K22, K23 \
-) { \
- { K00, K01, K02, K03 }, \
- { K10, K11, K12, K13 }, \
- { K20, K21, K22, K23 } \
-}
-
-/* LAYOUT_vertical_right
- * ┌───┬───┬───┬───┐
- * │K00│K01│K03│USB│
- * ├───┼───┼───┬───┘
- * │K04│K05│K06│
- * ├───┼───┼───┤
- * │K07│K08│K09│
- * ├───┼───┼───┤
- * │K10│K11│K12│
- * └───┴───┴───┘
- */
-#define LAYOUT_vertical_right( \
- K20, K10, K00, \
- K21, K11, K01, \
- K22, K12, K02, \
- K23, K13, K03 \
-) { \
- { K00, K01, K02, K03 }, \
- { K10, K11, K12, K13 }, \
- { K20, K21, K22, K23 } \
-}
-
-/* LAYOUT_vertical_left
- * ┌───┬───┬───┐
- * │K00│K01│K03│
- * ├───┼───┼───┤
- * │K04│K05│K06│
- * ├───┼───┼───┤
- * │K07│K08│K09│
- * ┌───┼───┼───┼───┤
- * │USB│K10│K11│K12│
- * └───┴───┴───┴───┘
- */
-#define LAYOUT_vertical_left( \
- K03, K13, K23, \
- K02, K12, K22, \
- K01, K11, K21, \
- K00, K10, K20 \
-) { \
- { K00, K01, K02, K03 }, \
- { K10, K11, K12, K13 }, \
- { K20, K21, K22, K23 } \
-}
-
-#define LAYOUT LAYOUT_horizontal
diff --git a/keyboards/4by3/config.h b/keyboards/4by3/config.h
deleted file mode 100644
index 5f20b5b97a..0000000000
--- a/keyboards/4by3/config.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#pragma once
-
-
-/* key matrix pins */
-#define MATRIX_ROW_PINS { D1, D0, D4 }
-#define MATRIX_COL_PINS { C6, D7, E6, B4 }
-
-/* COL2ROW or ROW2COL */
-#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/4by3/info.json b/keyboards/4by3/info.json
index 0ed57ce2f6..5a64ffcd53 100644
--- a/keyboards/4by3/info.json
+++ b/keyboards/4by3/info.json
@@ -8,30 +8,71 @@
"pid": "0x2019",
"device_version": "0.0.1"
},
+ "matrix_pins": {
+ "cols": ["C6", "D7", "E6", "B4"],
+ "rows": ["D1", "D0", "D4"]
+ },
+ "diode_direction": "COL2ROW",
"processor": "atmega32u4",
"bootloader": "caterina",
+ "layout_aliases": {
+ "LAYOUT": "LAYOUT_horizontal"
+ },
"layouts": {
"LAYOUT_horizontal": {
"layout": [
- { "x": 0, "y": 0 }, { "x": 1, "y": 0 }, { "x": 2, "y": 0 }, { "x": 3, "y": 0 },
- { "x": 0, "y": 1 }, { "x": 1, "y": 1 }, { "x": 2, "y": 1 }, { "x": 3, "y": 1 },
- { "x": 0, "y": 2 }, { "x": 1, "y": 2 }, { "x": 2, "y": 2 }, { "x": 3, "y": 2 }
+ {"matrix": [0, 0], "x": 0, "y": 0},
+ {"matrix": [0, 1], "x": 1, "y": 0},
+ {"matrix": [0, 2], "x": 2, "y": 0},
+ {"matrix": [0, 3], "x": 3, "y": 0},
+
+ {"matrix": [1, 0], "x": 0, "y": 1},
+ {"matrix": [1, 1], "x": 1, "y": 1},
+ {"matrix": [1, 2], "x": 2, "y": 1},
+ {"matrix": [1, 3], "x": 3, "y": 1},
+
+ {"matrix": [2, 0], "x": 0, "y": 2},
+ {"matrix": [2, 1], "x": 1, "y": 2},
+ {"matrix": [2, 2], "x": 2, "y": 2},
+ {"matrix": [2, 3], "x": 3, "y": 2}
]
},
"LAYOUT_vertical_right": {
"layout": [
- { "x": 0, "y": 0 }, { "x": 1, "y": 0 }, { "x": 2, "y": 0 },
- { "x": 0, "y": 1 }, { "x": 1, "y": 1 }, { "x": 2, "y": 1 },
- { "x": 0, "y": 2 }, { "x": 1, "y": 2 }, { "x": 2, "y": 2 },
- { "x": 0, "y": 3 }, { "x": 1, "y": 3 }, { "x": 2, "y": 3 }
+ {"matrix": [2, 0], "x": 0, "y": 0},
+ {"matrix": [1, 0], "x": 1, "y": 0},
+ {"matrix": [0, 0], "x": 2, "y": 0},
+
+ {"matrix": [2, 1], "x": 0, "y": 1},
+ {"matrix": [1, 1], "x": 1, "y": 1},
+ {"matrix": [0, 1], "x": 2, "y": 1},
+
+ {"matrix": [2, 2], "x": 0, "y": 2},
+ {"matrix": [1, 2], "x": 1, "y": 2},
+ {"matrix": [0, 2], "x": 2, "y": 2},
+
+ {"matrix": [2, 3], "x": 0, "y": 3},
+ {"matrix": [1, 3], "x": 1, "y": 3},
+ {"matrix": [0, 3], "x": 2, "y": 3}
]
},
"LAYOUT_vertical_left": {
"layout": [
- { "x": 0, "y": 0 }, { "x": 1, "y": 0 }, { "x": 2, "y": 0 },
- { "x": 0, "y": 1 }, { "x": 1, "y": 1 }, { "x": 2, "y": 1 },
- { "x": 0, "y": 2 }, { "x": 1, "y": 2 }, { "x": 2, "y": 2 },
- { "x": 0, "y": 3 }, { "x": 1, "y": 3 }, { "x": 2, "y": 3 }
+ {"matrix": [0, 3], "x": 0, "y": 0},
+ {"matrix": [1, 3], "x": 1, "y": 0},
+ {"matrix": [2, 3], "x": 2, "y": 0},
+
+ {"matrix": [0, 2], "x": 0, "y": 1},
+ {"matrix": [1, 2], "x": 1, "y": 1},
+ {"matrix": [2, 2], "x": 2, "y": 1},
+
+ {"matrix": [0, 1], "x": 0, "y": 2},
+ {"matrix": [1, 1], "x": 1, "y": 2},
+ {"matrix": [2, 1], "x": 2, "y": 2},
+
+ {"matrix": [0, 0], "x": 0, "y": 3},
+ {"matrix": [1, 0], "x": 1, "y": 3},
+ {"matrix": [2, 0], "x": 2, "y": 3}
]
}
}