summaryrefslogtreecommitdiff
path: root/keyboards/gboards/georgi
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-04-12 13:42:51 +1000
committerGitHub <noreply@github.com>2023-04-12 13:42:51 +1000
commit5bd68e3695a82ff504c358c33445b4530c2a327f (patch)
tree10b245757dcb4f2c3c07796671ed8d284e5f5d6f /keyboards/gboards/georgi
parent941e159a28f1bdbdd913654c4f9a14291f8d5299 (diff)
Move single `LAYOUT`s to data driven (#20365)
Diffstat (limited to 'keyboards/gboards/georgi')
-rw-r--r--keyboards/gboards/georgi/georgi.h52
-rw-r--r--keyboards/gboards/georgi/info.json60
2 files changed, 30 insertions, 82 deletions
diff --git a/keyboards/gboards/georgi/georgi.h b/keyboards/gboards/georgi/georgi.h
index 47fb1831c8..e23fc264f4 100644
--- a/keyboards/gboards/georgi/georgi.h
+++ b/keyboards/gboards/georgi/georgi.h
@@ -26,55 +26,3 @@ extern i2c_status_t mcp23018_status;
void init_ergodox(void);
uint8_t init_mcp23018(void);
-
-/* ---------- LEFT HAND ----------- ---------- RIGHT HAND ---------- */
-#define LAYOUT( \
- L00,L01,L02,L03,L04,L05, R00,R01,R02,R03,R04,R05, \
- L10,L11,L12,L13,L14,L15, R10,R11,R12,R13,R14,R15, \
- L20,L21,L22, R20,R21,R22) \
- \
- { \
- { KC_NO, R00, R10, R21}, \
- { KC_NO, R01, R11, R20}, \
- { KC_NO, R02, R12, R22}, \
- { KC_NO, R03, R13, KC_NO}, \
- { KC_NO, R04, R14, KC_NO}, \
- { KC_NO, R05, R15, KC_NO}, \
- { KC_NO, KC_NO, KC_NO, KC_NO}, \
- \
- { KC_NO, L05, L15, L22}, \
- { KC_NO, L04, L14, L21}, \
- { KC_NO, L03, L13, L20}, \
- { KC_NO, L02, L12, KC_NO}, \
- { KC_NO, L01, L11, KC_NO}, \
- { KC_NO, L00, L10, KC_NO}, \
- { KC_NO, KC_NO, KC_NO, KC_NO}, \
- \
-}
-
-/* ---------- LEFT HAND ----------- ---------- RIGHT HAND ----------
-#define LAYOUT_GERGO( \
- L00,L01,L02,L03,L04,L05, R00,R01,R02,R03,R04,R05, \
- L10,L11,L12,L13,L14,L15,L16, R10,R11,R12,R13,R14,R15,R16, \
- L20,L21,L22,L23,L24,L25,L26, R20,R21,R22,R23,R24,R25,R26, \
- L31,L32, R33,R34, \
- L30, R30, \
- L33,L34, R31,R32) \
- \
- { \
- { KC_NO, L16, L26, L30}, \
- { L05, L15, L25, L34}, \
- { L04, L14, L24, L33}, \
- { L03, L13, L23, L32}, \
- { L02, L12, L22, L31}, \
- { L01, L11, L21, KC_NO}, \
- { L00, L10, L20, KC_NO}, \
- \
- { KC_NO, R10, R20, R30}, \
- { R00, R11, R21, R31}, \
- { R01, R12, R22, R32}, \
- { R02, R13, R23, R33}, \
- { R03, R14, R24, R34}, \
- { R04, R15, R25, KC_NO}, \
- { R05, R16, R26, KC_NO}, \
-} */
diff --git a/keyboards/gboards/georgi/info.json b/keyboards/gboards/georgi/info.json
index 3f1c69b7f5..7ede9d1f43 100644
--- a/keyboards/gboards/georgi/info.json
+++ b/keyboards/gboards/georgi/info.json
@@ -16,41 +16,41 @@
"layouts": {
"LAYOUT": {
"layout": [
- {"x": 0, "y": 0.5},
- {"x": 1, "y": 0.5},
- {"x": 2, "y": 0.3},
- {"x": 3, "y": 0},
- {"x": 4, "y": 0.4},
- {"x": 5, "y": 0.5},
+ {"matrix": [12, 1], "x": 0, "y": 0.5},
+ {"matrix": [11, 1], "x": 1, "y": 0.5},
+ {"matrix": [10, 1], "x": 2, "y": 0.3},
+ {"matrix": [9, 1], "x": 3, "y": 0},
+ {"matrix": [8, 1], "x": 4, "y": 0.4},
+ {"matrix": [7, 1], "x": 5, "y": 0.5},
- {"x": 7, "y": 0.5},
- {"x": 8, "y": 0.4},
- {"x": 9, "y": 0},
- {"x": 10, "y": 0.3},
- {"x": 11, "y": 0.5},
- {"x": 12, "y": 0.5},
+ {"matrix": [0, 1], "x": 7, "y": 0.5},
+ {"matrix": [1, 1], "x": 8, "y": 0.4},
+ {"matrix": [2, 1], "x": 9, "y": 0},
+ {"matrix": [3, 1], "x": 10, "y": 0.3},
+ {"matrix": [4, 1], "x": 11, "y": 0.5},
+ {"matrix": [5, 1], "x": 12, "y": 0.5},
- {"x": 0, "y": 1.5},
- {"x": 1, "y": 1.5},
- {"x": 2, "y": 1.3},
- {"x": 3, "y": 1},
- {"x": 4, "y": 1.4},
- {"x": 5, "y": 1.5},
+ {"matrix": [12, 2], "x": 0, "y": 1.5},
+ {"matrix": [11, 2], "x": 1, "y": 1.5},
+ {"matrix": [10, 2], "x": 2, "y": 1.3},
+ {"matrix": [9, 2], "x": 3, "y": 1},
+ {"matrix": [8, 2], "x": 4, "y": 1.4},
+ {"matrix": [7, 2], "x": 5, "y": 1.5},
- {"x": 7, "y": 1.5},
- {"x": 8, "y": 1.4},
- {"x": 9, "y": 1},
- {"x": 10, "y": 1.3},
- {"x": 11, "y": 1.5},
- {"x": 12, "y": 1.5},
+ {"matrix": [0, 2], "x": 7, "y": 1.5},
+ {"matrix": [1, 2], "x": 8, "y": 1.4},
+ {"matrix": [2, 2], "x": 9, "y": 1},
+ {"matrix": [3, 2], "x": 10, "y": 1.3},
+ {"matrix": [4, 2], "x": 11, "y": 1.5},
+ {"matrix": [5, 2], "x": 12, "y": 1.5},
- {"x": 3, "y": 2.75},
- {"x": 4, "y": 2.75},
- {"x": 5, "y": 2.75},
+ {"matrix": [9, 3], "x": 3, "y": 2.75},
+ {"matrix": [8, 3], "x": 4, "y": 2.75},
+ {"matrix": [7, 3], "x": 5, "y": 2.75},
- {"x": 7, "y": 2.75},
- {"x": 8, "y": 2.75},
- {"x": 9, "y": 2.75}
+ {"matrix": [1, 3], "x": 7, "y": 2.75},
+ {"matrix": [0, 3], "x": 8, "y": 2.75},
+ {"matrix": [2, 3], "x": 9, "y": 2.75}
]
}
}