summaryrefslogtreecommitdiffstats
path: root/keyboards/atreus62
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/atreus62
parent941e159a28f1bdbdd913654c4f9a14291f8d5299 (diff)
Move single `LAYOUT`s to data driven (#20365)
Diffstat (limited to 'keyboards/atreus62')
-rw-r--r--keyboards/atreus62/atreus62.h21
-rw-r--r--keyboards/atreus62/info.json74
2 files changed, 73 insertions, 22 deletions
diff --git a/keyboards/atreus62/atreus62.h b/keyboards/atreus62/atreus62.h
deleted file mode 100644
index 6af5d8bf6e..0000000000
--- a/keyboards/atreus62/atreus62.h
+++ /dev/null
@@ -1,21 +0,0 @@
-#pragma once
-
-#include "quantum.h"
-
-// This a shortcut to help you visually see your layout.
-// The first section contains all of the arguements
-// The second converts the arguments into a two-dimensional array
-#define LAYOUT( \
- k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, \
- k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, \
- k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, \
- k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, \
- k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4a, k4b, k4c, k4d \
-) \
-{ \
- { k00, k01, k02, k03, k04, k05, KC_NO, k06, k07, k08, k09, k0a, k0b }, \
- { k10, k11, k12, k13, k14, k15, KC_NO, k16, k17, k18, k19, k1a, k1b }, \
- { k20, k21, k22, k23, k24, k25, KC_NO, k26, k27, k28, k29, k2a, k2b }, \
- { k30, k31, k32, k33, k34, k35, k46, k36, k37, k38, k39, k3a, k3b }, \
- { k40, k41, k42, k43, k44, k45, k47, k48, k49, k4a, k4b, k4c, k4d } \
-}
diff --git a/keyboards/atreus62/info.json b/keyboards/atreus62/info.json
index 0221f2c551..a745eb5e27 100644
--- a/keyboards/atreus62/info.json
+++ b/keyboards/atreus62/info.json
@@ -17,7 +17,79 @@
"bootloader": "caterina",
"layouts": {
"LAYOUT": {
- "layout": [{"x":0, "y":0.6}, {"x":1, "y":0.6}, {"x":2, "y":0.35}, {"x":3, "y":0}, {"x":4, "y":0.35}, {"x":5, "y":0.7}, {"x":9, "y":0.7}, {"x":10, "y":0.35}, {"x":11, "y":0}, {"x":12, "y":0.35}, {"x":13, "y":0.6}, {"x":14, "y":0.6}, {"x":0, "y":1.6}, {"x":1, "y":1.6}, {"x":2, "y":1.35}, {"x":3, "y":1}, {"x":4, "y":1.35}, {"x":5, "y":1.7}, {"x":9, "y":1.7}, {"x":10, "y":1.35}, {"x":11, "y":1}, {"x":12, "y":1.35}, {"x":13, "y":1.6}, {"x":14, "y":1.6}, {"x":0, "y":2.6}, {"x":1, "y":2.6}, {"x":2, "y":2.35}, {"x":3, "y":2}, {"x":4, "y":2.35}, {"x":5, "y":2.7}, {"x":9, "y":2.7}, {"x":10, "y":2.35}, {"x":11, "y":2}, {"x":12, "y":2.35}, {"x":13, "y":2.6}, {"x":14, "y":2.6}, {"x":0, "y":3.6}, {"x":1, "y":3.6}, {"x":2, "y":3.35}, {"x":3, "y":3}, {"x":4, "y":3.35}, {"x":5, "y":3.7}, {"x":9, "y":3.7}, {"x":10, "y":3.35}, {"x":11, "y":3}, {"x":12, "y":3.35}, {"x":13, "y":3.6}, {"x":14, "y":3.6}, {"x":0, "y":4.6}, {"x":1, "y":4.6}, {"x":2, "y":4.35}, {"x":3, "y":4}, {"x":4, "y":4.35}, {"x":5, "y":4.7}, {"x":6, "y":3.95, "h":1.5}, {"x":8, "y":3.95, "h":1.5}, {"x":9, "y":4.7}, {"x":10, "y":4.35}, {"x":11, "y":4}, {"x":12, "y":4.35}, {"x":13, "y":4.6}, {"x":14, "y":4.6}]
+ "layout": [
+ {"label": "k00", "matrix": [0, 0], "x": 0, "y": 0.6},
+ {"label": "k01", "matrix": [0, 1], "x": 1, "y": 0.6},
+ {"label": "k02", "matrix": [0, 2], "x": 2, "y": 0.35},
+ {"label": "k03", "matrix": [0, 3], "x": 3, "y": 0},
+ {"label": "k04", "matrix": [0, 4], "x": 4, "y": 0.35},
+ {"label": "k05", "matrix": [0, 5], "x": 5, "y": 0.7},
+
+ {"label": "k06", "matrix": [0, 7], "x": 9, "y": 0.7},
+ {"label": "k07", "matrix": [0, 8], "x": 10, "y": 0.35},
+ {"label": "k08", "matrix": [0, 9], "x": 11, "y": 0},
+ {"label": "k09", "matrix": [0, 10], "x": 12, "y": 0.35},
+ {"label": "k0a", "matrix": [0, 11], "x": 13, "y": 0.6},
+ {"label": "k0b", "matrix": [0, 12], "x": 14, "y": 0.6},
+
+ {"label": "k10", "matrix": [1, 0], "x": 0, "y": 1.6},
+ {"label": "k11", "matrix": [1, 1], "x": 1, "y": 1.6},
+ {"label": "k12", "matrix": [1, 2], "x": 2, "y": 1.35},
+ {"label": "k13", "matrix": [1, 3], "x": 3, "y": 1},
+ {"label": "k14", "matrix": [1, 4], "x": 4, "y": 1.35},
+ {"label": "k15", "matrix": [1, 5], "x": 5, "y": 1.7},
+
+ {"label": "k16", "matrix": [1, 7], "x": 9, "y": 1.7},
+ {"label": "k17", "matrix": [1, 8], "x": 10, "y": 1.35},
+ {"label": "k18", "matrix": [1, 9], "x": 11, "y": 1},
+ {"label": "k19", "matrix": [1, 10], "x": 12, "y": 1.35},
+ {"label": "k1a", "matrix": [1, 11], "x": 13, "y": 1.6},
+ {"label": "k1b", "matrix": [1, 12], "x": 14, "y": 1.6},
+
+ {"label": "k20", "matrix": [2, 0], "x": 0, "y": 2.6},
+ {"label": "k21", "matrix": [2, 1], "x": 1, "y": 2.6},
+ {"label": "k22", "matrix": [2, 2], "x": 2, "y": 2.35},
+ {"label": "k23", "matrix": [2, 3], "x": 3, "y": 2},
+ {"label": "k24", "matrix": [2, 4], "x": 4, "y": 2.35},
+ {"label": "k25", "matrix": [2, 5], "x": 5, "y": 2.7},
+
+ {"label": "k26", "matrix": [2, 7], "x": 9, "y": 2.7},
+ {"label": "k27", "matrix": [2, 8], "x": 10, "y": 2.35},
+ {"label": "k28", "matrix": [2, 9], "x": 11, "y": 2},
+ {"label": "k29", "matrix": [2, 10], "x": 12, "y": 2.35},
+ {"label": "k2a", "matrix": [2, 11], "x": 13, "y": 2.6},
+ {"label": "k2b", "matrix": [2, 12], "x": 14, "y": 2.6},
+
+ {"label": "k30", "matrix": [3, 0], "x": 0, "y": 3.6},
+ {"label": "k31", "matrix": [3, 1], "x": 1, "y": 3.6},
+ {"label": "k32", "matrix": [3, 2], "x": 2, "y": 3.35},
+ {"label": "k33", "matrix": [3, 3], "x": 3, "y": 3},
+ {"label": "k34", "matrix": [3, 4], "x": 4, "y": 3.35},
+ {"label": "k35", "matrix": [3, 5], "x": 5, "y": 3.7},
+
+ {"label": "k36", "matrix": [3, 7], "x": 9, "y": 3.7},
+ {"label": "k37", "matrix": [3, 8], "x": 10, "y": 3.35},
+ {"label": "k38", "matrix": [3, 9], "x": 11, "y": 3},
+ {"label": "k39", "matrix": [3, 10], "x": 12, "y": 3.35},
+ {"label": "k3a", "matrix": [3, 11], "x": 13, "y": 3.6},
+ {"label": "k3b", "matrix": [3, 12], "x": 14, "y": 3.6},
+
+ {"label": "k40", "matrix": [4, 0], "x": 0, "y": 4.6},
+ {"label": "k41", "matrix": [4, 1], "x": 1, "y": 4.6},
+ {"label": "k42", "matrix": [4, 2], "x": 2, "y": 4.35},
+ {"label": "k43", "matrix": [4, 3], "x": 3, "y": 4},
+ {"label": "k44", "matrix": [4, 4], "x": 4, "y": 4.35},
+ {"label": "k45", "matrix": [4, 5], "x": 5, "y": 4.7},
+ {"label": "k46", "matrix": [3, 6], "x": 6, "y": 3.95, "h": 1.5},
+
+ {"label": "k47", "matrix": [4, 6], "x": 8, "y": 3.95, "h": 1.5},
+ {"label": "k48", "matrix": [4, 7], "x": 9, "y": 4.7},
+ {"label": "k49", "matrix": [4, 8], "x": 10, "y": 4.35},
+ {"label": "k4a", "matrix": [4, 9], "x": 11, "y": 4},
+ {"label": "k4b", "matrix": [4, 10], "x": 12, "y": 4.35},
+ {"label": "k4c", "matrix": [4, 11], "x": 13, "y": 4.6},
+ {"label": "k4d", "matrix": [4, 12], "x": 14, "y": 4.6}
+]
}
}
}