summaryrefslogtreecommitdiff
path: root/keyboards/splitography
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/splitography
parent941e159a28f1bdbdd913654c4f9a14291f8d5299 (diff)
Move single `LAYOUT`s to data driven (#20365)
Diffstat (limited to 'keyboards/splitography')
-rw-r--r--keyboards/splitography/info.json315
-rw-r--r--keyboards/splitography/splitography.h33
2 files changed, 47 insertions, 301 deletions
diff --git a/keyboards/splitography/info.json b/keyboards/splitography/info.json
index aab9d3f22f..45ee7beed8 100644
--- a/keyboards/splitography/info.json
+++ b/keyboards/splitography/info.json
@@ -29,274 +29,53 @@
29 "layouts": { 29 "layouts": {
30 "LAYOUT": { 30 "LAYOUT": {
31 "layout": [ 31 "layout": [
32 { 32 {"matrix": [0, 0], "x": 0, "y": 0, "h": 0.6},
33 "x": 0, 33 {"matrix": [0, 1], "x": 1, "y": 0, "h": 0.6},
34 "y": 0, 34 {"matrix": [0, 2], "x": 2, "y": 0, "h": 0.6},
35 "h": 0.6, 35 {"matrix": [0, 3], "x": 3, "y": 0, "h": 0.6},
36 "matrix": [0, 0], 36 {"matrix": [0, 4], "x": 4, "y": 0, "h": 0.6},
37 "label": "Esc" 37 {"matrix": [0, 5], "x": 5, "y": 0, "h": 0.6},
38 }, 38
39 { 39 {"matrix": [0, 6], "x": 8, "y": 0, "h": 0.6},
40 "x": 1, 40 {"matrix": [0, 7], "x": 9, "y": 0, "h": 0.6},
41 "y": 0, 41 {"matrix": [0, 8], "x": 10, "y": 0, "h": 0.6},
42 "h": 0.6, 42 {"matrix": [0, 9], "x": 11, "y": 0, "h": 0.6},
43 "matrix": [0, 1], 43 {"matrix": [0, 10], "x": 12, "y": 0, "h": 0.6},
44 "label": "Q" 44 {"matrix": [0, 11], "x": 13, "y": 0, "h": 0.6},
45 }, 45
46 { 46 {"matrix": [1, 0], "x": 0, "y": 0.6},
47 "x": 2, 47 {"matrix": [1, 1], "x": 1, "y": 0.6},
48 "y": 0, 48 {"matrix": [1, 2], "x": 2, "y": 0.6},
49 "h": 0.6, 49 {"matrix": [1, 3], "x": 3, "y": 0.6},
50 "matrix": [0, 2], 50 {"matrix": [1, 4], "x": 4, "y": 0.6},
51 "label": "W" 51 {"matrix": [1, 5], "x": 5, "y": 0.6},
52 }, 52
53 { 53 {"matrix": [1, 6], "x": 8, "y": 0.6},
54 "x": 3, 54 {"matrix": [1, 7], "x": 9, "y": 0.6},
55 "y": 0, 55 {"matrix": [1, 8], "x": 10, "y": 0.6},
56 "h": 0.6, 56 {"matrix": [1, 9], "x": 11, "y": 0.6},
57 "matrix": [0, 3], 57 {"matrix": [1, 10], "x": 12, "y": 0.6},
58 "label": "E" 58 {"matrix": [1, 11], "x": 13, "y": 0.6},
59 }, 59
60 { 60 {"matrix": [2, 0], "x": 0, "y": 1.6, "h": 1.2},
61 "x": 4, 61 {"matrix": [2, 1], "x": 1, "y": 1.6, "h": 1.2},
62 "y": 0, 62 {"matrix": [2, 2], "x": 2, "y": 1.6, "h": 1.2},
63 "h": 0.6, 63 {"matrix": [2, 3], "x": 3, "y": 1.6, "h": 1.2},
64 "matrix": [0, 4], 64 {"matrix": [2, 4], "x": 4, "y": 1.6, "h": 1.2},
65 "label": "R" 65 {"matrix": [2, 5], "x": 5, "y": 1.6, "h": 1.2},
66 }, 66
67 { 67 {"matrix": [2, 6], "x": 8, "y": 1.6, "h": 1.2},
68 "x": 5, 68 {"matrix": [2, 7], "x": 9, "y": 1.6, "h": 1.2},
69 "y": 0, 69 {"matrix": [2, 8], "x": 10, "y": 1.6, "h": 1.2},
70 "h": 0.6, 70 {"matrix": [2, 9], "x": 11, "y": 1.6, "h": 1.2},
71 "matrix": [0, 5], 71 {"matrix": [2, 10], "x": 12, "y": 1.6, "h": 1.2},
72 "label": "T" 72 {"matrix": [2, 11], "x": 13, "y": 1.6, "h": 1.2},
73 }, 73
74 { 74 {"matrix": [3, 4], "x": 3.5, "y": 3, "h": 1.2},
75 "x": 8, 75 {"matrix": [3, 5], "x": 4.5, "y": 3, "h": 1.2},
76 "y": 0, 76
77 "h": 0.6, 77 {"matrix": [3, 6], "x": 8.5, "y": 3, "h": 1.2},
78 "matrix": [0, 6], 78 {"matrix": [3, 7], "x": 9.5, "y": 3, "h": 1.2}
79 "label": "Y"
80 },
81 {
82 "x": 9,
83 "y": 0,
84 "h": 0.6,
85 "matrix": [0, 7],
86 "label": "U"
87 },
88 {
89 "x": 10,
90 "y": 0,
91 "h": 0.6,
92 "matrix": [0, 8],
93 "label": "I"
94 },
95 {
96 "x": 11,
97 "y": 0,
98 "h": 0.6,
99 "matrix": [0, 9],
100 "label": "O"
101 },
102 {
103 "x": 12,
104 "y": 0,
105 "h": 0.6,
106 "matrix": [0, 10],
107 "label": "P"
108 },
109 {
110 "x": 13,
111 "y": 0,
112 "h": 0.6,
113 "matrix": [0, 11],
114 "label": "Backspace"
115 },
116 {
117 "x": 0,
118 "y": 0.6,
119 "matrix": [1, 0],
120 "label": "Alt"
121 },
122 {
123 "x": 1,
124 "y": 0.6,
125 "matrix": [1, 1],
126 "label": "A"
127 },
128 {
129 "x": 2,
130 "y": 0.6,
131 "matrix": [1, 2],
132 "label": "S"
133 },
134 {
135 "x": 3,
136 "y": 0.6,
137 "matrix": [1, 3],
138 "label": "D"
139 },
140 {
141 "x": 4,
142 "y": 0.6,
143 "matrix": [1, 4],
144 "label": "F"
145 },
146 {
147 "x": 5,
148 "y": 0.6,
149 "matrix": [1, 5],
150 "label": "G"
151 },
152 {
153 "x": 8,
154 "y": 0.6,
155 "matrix": [1, 6],
156 "label": "H"
157 },
158 {
159 "x": 9,
160 "y": 0.6,
161 "matrix": [1, 7],
162 "label": "J"
163 },
164 {
165 "x": 10,
166 "y": 0.6,
167 "matrix": [1, 8],
168 "label": "K"
169 },
170 {
171 "x": 11,
172 "y": 0.6,
173 "matrix": [1, 9],
174 "label": "L"
175 },
176 {
177 "x": 12,
178 "y": 0.6,
179 "matrix": [1, 10],
180 "label": ";"
181 },
182 {
183 "x": 13,
184 "y": 0.6,
185 "matrix": [1, 11],
186 "label": "Enter"
187 },
188 {
189 "x": 0,
190 "y": 1.6,
191 "h": 1.2,
192 "matrix": [2, 0],
193 "label": "Shift"
194 },
195 {
196 "x": 1,
197 "y": 1.6,
198 "h": 1.2,
199 "matrix": [2, 1],
200 "label": "Z"
201 },
202 {
203 "x": 2,
204 "y": 1.6,
205 "h": 1.2,
206 "matrix": [2, 2],
207 "label": "X"
208 },
209 {
210 "x": 3,
211 "y": 1.6,
212 "h": 1.2,
213 "matrix": [2, 3],
214 "label": "C"
215 },
216 {
217 "x": 4,
218 "y": 1.6,
219 "h": 1.2,
220 "matrix": [2, 4],
221 "label": "V"
222 },
223 {
224 "x": 5,
225 "y": 1.6,
226 "h": 1.2,
227 "matrix": [2, 5],
228 "label": "B"
229 },
230 {
231 "x": 8,
232 "y": 1.6,
233 "h": 1.2,
234 "matrix": [2, 6],
235 "label": "N"
236 },
237 {
238 "x": 9,
239 "y": 1.6,
240 "h": 1.2,
241 "matrix": [2, 7],
242 "label": "M"
243 },
244 {
245 "x": 10,
246 "y": 1.6,
247 "h": 1.2,
248 "matrix": [2, 8],
249 "label": ","
250 },
251 {
252 "x": 11,
253 "y": 1.6,
254 "h": 1.2,
255 "matrix": [2, 9],
256 "label": "c"
257 },
258 {
259 "x": 12,
260 "y": 1.6,
261 "h": 1.2,
262 "matrix": [2, 10],
263 "label": "/"
264 },
265 {
266 "x": 13,
267 "y": 1.6,
268 "h": 1.2,
269 "matrix": [2, 11],
270 "label": "Super"
271 },
272 {
273 "x": 3.5,
274 "y": 3,
275 "h": 1.2,
276 "matrix": [3, 4],
277 "label": "Orange"
278 },
279 {
280 "x": 4.5,
281 "y": 3,
282 "h": 1.2,
283 "matrix": [3, 5],
284 "label": "Blue"
285 },
286 {
287 "x": 8.5,
288 "y": 3,
289 "h": 1.2,
290 "matrix": [3, 6],
291 "label": "Space"
292 },
293 {
294 "x": 9.5,
295 "y": 3,
296 "h": 1.2,
297 "matrix": [3, 7],
298 "label": "Ctrl"
299 }
300 ] 79 ]
301 } 80 }
302 } 81 }
diff --git a/keyboards/splitography/splitography.h b/keyboards/splitography/splitography.h
deleted file mode 100644
index cfef33363d..0000000000
--- a/keyboards/splitography/splitography.h
+++ /dev/null
@@ -1,33 +0,0 @@
1/* Copyright 2021 Alexis Jeandeau
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20
21// clang-format off
22#define LAYOUT( \
23 L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05, \
24 L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15, \
25 L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25, \
26 L34, L35, R30, R31 \
27) \
28{ \
29 { L00, L01, L02, L03, L04, L05, R00, R01, R02, R03, R04, R05 }, \
30 { L10, L11, L12, L13, L14, L15, R10, R11, R12, R13, R14, R15 }, \
31 { L20, L21, L22, L23, L24, L25, R20, R21, R22, R23, R24, R25 }, \
32 { KC_NO, KC_NO, KC_NO, KC_NO, L34, L35, R30, R31, KC_NO, KC_NO, KC_NO, KC_NO } \
33}