summaryrefslogtreecommitdiff
path: root/keyboards/sauce
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2023-04-15 21:08:15 +1000
committerGitHub <noreply@github.com>2023-04-15 21:08:15 +1000
commit172a40686b84af7f887350a20c526855c7f7649c (patch)
tree435d6c9a8b06edff988deaa00964629d81d55d64 /keyboards/sauce
parenta84528f85392ccab60fd7130fecb83972539367f (diff)
Move single `LAYOUT_all`s to data driven (#20430)
Diffstat (limited to 'keyboards/sauce')
-rw-r--r--keyboards/sauce/mild/info.json106
-rw-r--r--keyboards/sauce/mild/mild.h37
2 files changed, 100 insertions, 43 deletions
diff --git a/keyboards/sauce/mild/info.json b/keyboards/sauce/mild/info.json
index 71179445ee..7dbcf5afb3 100644
--- a/keyboards/sauce/mild/info.json
+++ b/keyboards/sauce/mild/info.json
@@ -22,12 +22,106 @@
22 "layouts": { 22 "layouts": {
23 "LAYOUT_all": { 23 "LAYOUT_all": {
24 "layout": [ 24 "layout": [
25 {"x":0, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6.5, "y":0}, {"x":7.5, "y":0}, {"x":8.5, "y":0}, {"x":9.5, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":15.25, "y":0}, {"x":16.25, "y":0}, {"x":17.25, "y":0}, 25 {"matrix": [0, 0], "x": 0, "y": 0},
26 {"x":0, "y":1.25}, {"x":1, "y":1.25}, {"x":2, "y":1.25}, {"x":3, "y":1.25}, {"x":4, "y":1.25}, {"x":5, "y":1.25}, {"x":6, "y":1.25}, {"x":7, "y":1.25}, {"x":8, "y":1.25}, {"x":9, "y":1.25}, {"x":10, "y":1.25}, {"x":11, "y":1.25}, {"x":12, "y":1.25}, {"x":13, "y":1.25}, {"x":14, "y":1.25}, {"x":15.25, "y":1.25}, {"x":16.25, "y":1.25}, {"x":17.25, "y":1.25}, 26
27 {"x":0, "y":2.25, "w":1.5}, {"x":1.5, "y":2.25}, {"x":2.5, "y":2.25}, {"x":3.5, "y":2.25}, {"x":4.5, "y":2.25}, {"x":5.5, "y":2.25}, {"x":6.5, "y":2.25}, {"x":7.5, "y":2.25}, {"x":8.5, "y":2.25}, {"x":9.5, "y":2.25}, {"x":10.5, "y":2.25}, {"x":11.5, "y":2.25}, {"x":12.5, "y":2.25}, {"x":13.5, "y":2.25, "w":1.5}, {"x":15.25, "y":2.25}, {"x":16.25, "y":2.25}, {"x":17.25, "y":2.25}, 27 {"matrix": [0, 1], "x": 2, "y": 0},
28 {"x":0, "y":3.25, "w":1.75}, {"x":1.75, "y":3.25}, {"x":2.75, "y":3.25}, {"x":3.75, "y":3.25}, {"x":4.75, "y":3.25}, {"x":5.75, "y":3.25}, {"x":6.75, "y":3.25}, {"x":7.75, "y":3.25}, {"x":8.75, "y":3.25}, {"x":9.75, "y":3.25}, {"x":10.75, "y":3.25}, {"x":11.75, "y":3.25}, {"x":12.75, "y":3.25, "w":2.25}, 28 {"matrix": [0, 2], "x": 3, "y": 0},
29 {"x":0, "y":4.25, "w":1.25}, {"x":1.25, "y":4.25}, {"x":2.25, "y":4.25}, {"x":3.25, "y":4.25}, {"x":4.25, "y":4.25}, {"x":5.25, "y":4.25}, {"x":6.25, "y":4.25}, {"x":7.25, "y":4.25}, {"x":8.25, "y":4.25}, {"x":9.25, "y":4.25}, {"x":10.25, "y":4.25}, {"x":11.25, "y":4.25}, {"x":12.25, "y":4.25, "w":1.75}, {"x":14, "y":4.25}, {"x":16.25, "y":4.25}, 29 {"matrix": [0, 3], "x": 4, "y": 0},
30 {"x":0, "y":5.25, "w":1.5}, {"x":2.5, "y":5.25, "w":1.5}, {"x":4, "y":5.25, "w":7}, {"x":11, "y":5.25, "w":1.5}, {"x":13.5, "y":5.25, "w":1.5}, {"x":15.25, "y":5.25}, {"x":16.25, "y":5.25}, {"x":17.25, "y":5.25} 30 {"matrix": [0, 4], "x": 5, "y": 0},
31
32 {"matrix": [0, 5], "x": 6.5, "y": 0},
33 {"matrix": [0, 6], "x": 7.5, "y": 0},
34 {"matrix": [0, 7], "x": 8.5, "y": 0},
35 {"matrix": [0, 8], "x": 9.5, "y": 0},
36
37 {"matrix": [0, 9], "x": 11, "y": 0},
38 {"matrix": [0, 10], "x": 12, "y": 0},
39 {"matrix": [0, 11], "x": 13, "y": 0},
40 {"matrix": [0, 12], "x": 14, "y": 0},
41
42 {"matrix": [0, 14], "x": 15.25, "y": 0},
43 {"matrix": [0, 15], "x": 16.25, "y": 0},
44 {"matrix": [0, 16], "x": 17.25, "y": 0},
45
46 {"matrix": [1, 0], "x": 0, "y": 1.25},
47 {"matrix": [1, 1], "x": 1, "y": 1.25},
48 {"matrix": [1, 2], "x": 2, "y": 1.25},
49 {"matrix": [1, 3], "x": 3, "y": 1.25},
50 {"matrix": [1, 4], "x": 4, "y": 1.25},
51 {"matrix": [1, 5], "x": 5, "y": 1.25},
52 {"matrix": [1, 6], "x": 6, "y": 1.25},
53 {"matrix": [1, 7], "x": 7, "y": 1.25},
54 {"matrix": [1, 8], "x": 8, "y": 1.25},
55 {"matrix": [1, 9], "x": 9, "y": 1.25},
56 {"matrix": [1, 10], "x": 10, "y": 1.25},
57 {"matrix": [1, 11], "x": 11, "y": 1.25},
58 {"matrix": [1, 12], "x": 12, "y": 1.25},
59 {"matrix": [1, 13], "x": 13, "y": 1.25},
60 {"matrix": [4, 12], "x": 14, "y": 1.25},
61
62 {"matrix": [1, 14], "x": 15.25, "y": 1.25},
63 {"matrix": [1, 15], "x": 16.25, "y": 1.25},
64 {"matrix": [1, 16], "x": 17.25, "y": 1.25},
65
66 {"matrix": [2, 0], "x": 0, "y": 2.25, "w": 1.5},
67 {"matrix": [2, 1], "x": 1.5, "y": 2.25},
68 {"matrix": [2, 2], "x": 2.5, "y": 2.25},
69 {"matrix": [2, 3], "x": 3.5, "y": 2.25},
70 {"matrix": [2, 4], "x": 4.5, "y": 2.25},
71 {"matrix": [2, 5], "x": 5.5, "y": 2.25},
72 {"matrix": [2, 6], "x": 6.5, "y": 2.25},
73 {"matrix": [2, 7], "x": 7.5, "y": 2.25},
74 {"matrix": [2, 8], "x": 8.5, "y": 2.25},
75 {"matrix": [2, 9], "x": 9.5, "y": 2.25},
76 {"matrix": [2, 10], "x": 10.5, "y": 2.25},
77 {"matrix": [2, 11], "x": 11.5, "y": 2.25},
78 {"matrix": [2, 12], "x": 12.5, "y": 2.25},
79 {"matrix": [2, 13], "x": 13.5, "y": 2.25, "w": 1.5},
80
81 {"matrix": [2, 14], "x": 15.25, "y": 2.25},
82 {"matrix": [2, 15], "x": 16.25, "y": 2.25},
83 {"matrix": [2, 16], "x": 17.25, "y": 2.25},
84
85 {"matrix": [3, 0], "x": 0, "y": 3.25, "w": 1.75},
86 {"matrix": [3, 1], "x": 1.75, "y": 3.25},
87 {"matrix": [3, 2], "x": 2.75, "y": 3.25},
88 {"matrix": [3, 3], "x": 3.75, "y": 3.25},
89 {"matrix": [3, 4], "x": 4.75, "y": 3.25},
90 {"matrix": [3, 5], "x": 5.75, "y": 3.25},
91 {"matrix": [3, 6], "x": 6.75, "y": 3.25},
92 {"matrix": [3, 7], "x": 7.75, "y": 3.25},
93 {"matrix": [3, 8], "x": 8.75, "y": 3.25},
94 {"matrix": [3, 9], "x": 9.75, "y": 3.25},
95 {"matrix": [3, 10], "x": 10.75, "y": 3.25},
96 {"matrix": [3, 11], "x": 11.75, "y": 3.25},
97 {"matrix": [3, 13], "x": 12.75, "y": 3.25, "w": 2.25},
98
99 {"matrix": [4, 0], "x": 0, "y": 4.25, "w": 1.25},
100 {"matrix": [5, 1], "x": 1.25, "y": 4.25},
101 {"matrix": [4, 1], "x": 2.25, "y": 4.25},
102 {"matrix": [4, 2], "x": 3.25, "y": 4.25},
103 {"matrix": [4, 3], "x": 4.25, "y": 4.25},
104 {"matrix": [4, 4], "x": 5.25, "y": 4.25},
105 {"matrix": [4, 5], "x": 6.25, "y": 4.25},
106 {"matrix": [4, 6], "x": 7.25, "y": 4.25},
107 {"matrix": [4, 7], "x": 8.25, "y": 4.25},
108 {"matrix": [4, 8], "x": 9.25, "y": 4.25},
109 {"matrix": [4, 9], "x": 10.25, "y": 4.25},
110 {"matrix": [4, 10], "x": 11.25, "y": 4.25},
111 {"matrix": [4, 11], "x": 12.25, "y": 4.25, "w": 1.75},
112 {"matrix": [4, 13], "x": 14, "y": 4.25},
113
114 {"matrix": [4, 15], "x": 16.25, "y": 4.25},
115
116 {"matrix": [5, 0], "x": 0, "y": 5.25, "w": 1.5},
117 {"matrix": [5, 3], "x": 2.5, "y": 5.25, "w": 1.5},
118 {"matrix": [5, 5], "x": 4, "y": 5.25, "w": 7},
119 {"matrix": [5, 10], "x": 11, "y": 5.25, "w": 1.5},
120 {"matrix": [5, 13], "x": 13.5, "y": 5.25, "w": 1.5},
121
122 {"matrix": [5, 14], "x": 15.25, "y": 5.25},
123 {"matrix": [5, 15], "x": 16.25, "y": 5.25},
124 {"matrix": [5, 16], "x": 17.25, "y": 5.25}
31 ] 125 ]
32 } 126 }
33 } 127 }
diff --git a/keyboards/sauce/mild/mild.h b/keyboards/sauce/mild/mild.h
deleted file mode 100644
index 3dbd2630ef..0000000000
--- a/keyboards/sauce/mild/mild.h
+++ /dev/null
@@ -1,37 +0,0 @@
1/* Copyright 2021 Andy Yong (Sauce)
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#define ____ KC_NO
22
23#define LAYOUT_all( \
24 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K014, K015, K016, \
25 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K412, K114, K115, K116, \
26 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \
27 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K314, \
28 K400, K501, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K413, K415, \
29 K500, K503, K505, K510, K513, K514, K515, K516 \
30) { \
31 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, ____, K014, K015, K016 }, \
32 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116 }, \
33 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216 }, \
34 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, ____, K314, ____, ____, ____ }, \
35 { K400, K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, ____, K415, ____ }, \
36 { K500, K501, ____, K503, ____, K505, ____, ____, ____, ____, K510, ____, ____, K513, K514, K515, K516 } \
37}