summaryrefslogtreecommitdiff
path: root/keyboards/buildakb
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/buildakb
parenta84528f85392ccab60fd7130fecb83972539367f (diff)
Move single `LAYOUT_all`s to data driven (#20430)
Diffstat (limited to 'keyboards/buildakb')
-rw-r--r--keyboards/buildakb/potato65s/info.json137
-rw-r--r--keyboards/buildakb/potato65s/potato65s.h33
2 files changed, 69 insertions, 101 deletions
diff --git a/keyboards/buildakb/potato65s/info.json b/keyboards/buildakb/potato65s/info.json
index 5b81266ee3..11419106c0 100644
--- a/keyboards/buildakb/potato65s/info.json
+++ b/keyboards/buildakb/potato65s/info.json
@@ -21,78 +21,79 @@
21 "layouts": { 21 "layouts": {
22 "LAYOUT_all": { 22 "LAYOUT_all": {
23 "layout": [ 23 "layout": [
24 { "x":0, "y":0 }, 24 {"matrix": [0, 0], "x": 0, "y": 0},
25 { "x":1, "y":0 }, 25 {"matrix": [0, 1], "x": 1, "y": 0},
26 { "x":2, "y":0 }, 26 {"matrix": [0, 2], "x": 2, "y": 0},
27 { "x":3, "y":0 }, 27 {"matrix": [0, 3], "x": 3, "y": 0},
28 { "x":4, "y":0 }, 28 {"matrix": [0, 4], "x": 4, "y": 0},
29 { "x":5, "y":0 }, 29 {"matrix": [0, 5], "x": 5, "y": 0},
30 { "x":6, "y":0 }, 30 {"matrix": [0, 6], "x": 6, "y": 0},
31 { "x":7, "y":0 }, 31 {"matrix": [0, 7], "x": 7, "y": 0},
32 { "x":8, "y":0 }, 32 {"matrix": [0, 8], "x": 8, "y": 0},
33 { "x":9, "y":0 }, 33 {"matrix": [0, 9], "x": 9, "y": 0},
34 { "x":10, "y":0 }, 34 {"matrix": [0, 10], "x": 10, "y": 0},
35 { "x":11, "y":0 }, 35 {"matrix": [0, 11], "x": 11, "y": 0},
36 { "x":12, "y":0 }, 36 {"matrix": [0, 12], "x": 12, "y": 0},
37 { "x":13, "y":0 }, 37 {"matrix": [0, 13], "x": 13, "y": 0},
38 { "x":14, "y":0 }, 38 {"matrix": [2, 12], "x": 14, "y": 0},
39 { "x":15, "y":0 }, 39 {"matrix": [0, 14], "x": 15, "y": 0},
40 40
41 { "x":0, "y":1, "w":1.5 }, 41 {"matrix": [1, 0], "x": 0, "y": 1, "w": 1.5},
42 { "x":1.5, "y":1 }, 42 {"matrix": [1, 1], "x": 1.5, "y": 1},
43 { "x":2.5, "y":1 }, 43 {"matrix": [1, 2], "x": 2.5, "y": 1},
44 { "x":3.5, "y":1 }, 44 {"matrix": [1, 3], "x": 3.5, "y": 1},
45 { "x":4.5, "y":1 }, 45 {"matrix": [1, 4], "x": 4.5, "y": 1},
46 { "x":5.5, "y":1 }, 46 {"matrix": [1, 5], "x": 5.5, "y": 1},
47 { "x":6.5, "y":1 }, 47 {"matrix": [1, 6], "x": 6.5, "y": 1},
48 { "x":7.5, "y":1 }, 48 {"matrix": [1, 7], "x": 7.5, "y": 1},
49 { "x":8.5, "y":1 }, 49 {"matrix": [1, 8], "x": 8.5, "y": 1},
50 { "x":9.5, "y":1 }, 50 {"matrix": [1, 9], "x": 9.5, "y": 1},
51 { "x":10.5, "y":1 }, 51 {"matrix": [1, 10], "x": 10.5, "y": 1},
52 { "x":11.5, "y":1 }, 52 {"matrix": [1, 11], "x": 11.5, "y": 1},
53 { "x":12.5, "y":1 }, 53 {"matrix": [1, 12], "x": 12.5, "y": 1},
54 { "x":13.5, "y":1, "w":1.5 }, 54 {"matrix": [1, 13], "x": 13.5, "y": 1, "w": 1.5},
55 { "x":15, "y":1 }, 55 {"matrix": [1, 14], "x": 15, "y": 1},
56 56
57 { "x":0, "y":2, "w":1.75 }, 57 {"matrix": [2, 0], "x": 0, "y": 2, "w": 1.75},
58 { "x":1.75, "y":2 }, 58 {"matrix": [2, 1], "x": 1.75, "y": 2},
59 { "x":2.75, "y":2 }, 59 {"matrix": [2, 2], "x": 2.75, "y": 2},
60 { "x":3.75, "y":2 }, 60 {"matrix": [2, 3], "x": 3.75, "y": 2},
61 { "x":4.75, "y":2 }, 61 {"matrix": [2, 4], "x": 4.75, "y": 2},
62 { "x":5.75, "y":2 }, 62 {"matrix": [2, 5], "x": 5.75, "y": 2},
63 { "x":6.75, "y":2 }, 63 {"matrix": [2, 6], "x": 6.75, "y": 2},
64 { "x":7.75, "y":2 }, 64 {"matrix": [2, 7], "x": 7.75, "y": 2},
65 { "x":8.75, "y":2 }, 65 {"matrix": [2, 8], "x": 8.75, "y": 2},
66 { "x":9.75, "y":2 }, 66 {"matrix": [2, 9], "x": 9.75, "y": 2},
67 { "x":10.75, "y":2 }, 67 {"matrix": [2, 10], "x": 10.75, "y": 2},
68 { "x":11.75, "y":2 }, 68 {"matrix": [2, 11], "x": 11.75, "y": 2},
69 { "x":12.75, "y":2, "w":2.25 }, 69 {"matrix": [2, 13], "x": 12.75, "y": 2, "w": 2.25},
70 { "x":15, "y":2 }, 70 {"matrix": [2, 14], "x": 15, "y": 2},
71 71
72 { "x":0, "y":3, "w":2.25 }, 72 {"matrix": [3, 0], "x": 0, "y": 3, "w": 2.25},
73 { "x":2.25, "y":3 }, 73 {"matrix": [3, 1], "x": 2.25, "y": 3},
74 { "x":3.25, "y":3 }, 74 {"matrix": [3, 2], "x": 3.25, "y": 3},
75 { "x":4.25, "y":3 }, 75 {"matrix": [3, 3], "x": 4.25, "y": 3},
76 { "x":5.25, "y":3 }, 76 {"matrix": [3, 4], "x": 5.25, "y": 3},
77 { "x":6.25, "y":3 }, 77 {"matrix": [3, 5], "x": 6.25, "y": 3},
78 { "x":7.25, "y":3 }, 78 {"matrix": [3, 6], "x": 7.25, "y": 3},
79 { "x":8.25, "y":3 }, 79 {"matrix": [3, 7], "x": 8.25, "y": 3},
80 { "x":9.25, "y":3 }, 80 {"matrix": [3, 8], "x": 9.25, "y": 3},
81 { "x":10.25, "y":3 }, 81 {"matrix": [3, 9], "x": 10.25, "y": 3},
82 { "x":11.25, "y":3 }, 82 {"matrix": [3, 10], "x": 11.25, "y": 3},
83 { "x":12.25, "y":3, "w":1.75 }, 83 {"matrix": [3, 12], "x": 12.25, "y": 3, "w": 1.75},
84 { "x":14, "y":3 }, 84 {"matrix": [3, 13], "x": 14, "y": 3},
85 { "x":15, "y":3 }, 85 {"matrix": [3, 14], "x": 15, "y": 3},
86 86
87 { "x":0, "y":4, "w":1.25 }, 87 {"matrix": [4, 0], "x": 0, "y": 4, "w": 1.25},
88 { "x":1.25, "y":4, "w":1.25 }, 88 {"matrix": [4, 1], "x": 1.25, "y": 4, "w": 1.25},
89 { "x":2.5, "y":4, "w":1.25 }, 89 {"matrix": [4, 2], "x": 2.5, "y": 4, "w": 1.25},
90 { "x":3.75, "y":4, "w":6.25 }, 90 {"matrix": [4, 3], "x": 3.75, "y": 4, "w": 6.25},
91 { "x":10, "y":4, "w":1.25 }, 91 {"matrix": [4, 9], "x": 10, "y": 4, "w": 1.25},
92 { "x":11.25, "y":4, "w":1.25 }, 92 {"matrix": [4, 10], "x": 11.25, "y": 4, "w": 1.25},
93 { "x":13, "y":4 }, 93
94 { "x":14, "y":4 }, 94 {"matrix": [4, 12], "x": 13, "y": 4},
95 { "x":15, "y":4 } 95 {"matrix": [4, 13], "x": 14, "y": 4},
96 {"matrix": [4, 14], "x": 15, "y": 4}
96 ] 97 ]
97 } 98 }
98 } 99 }
diff --git a/keyboards/buildakb/potato65s/potato65s.h b/keyboards/buildakb/potato65s/potato65s.h
deleted file mode 100644
index 739a01af22..0000000000
--- a/keyboards/buildakb/potato65s/potato65s.h
+++ /dev/null
@@ -1,33 +0,0 @@
1/* Copyright 2021 Maelkk
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 LAYOUT_all( \
22 K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K212, K014, \
23 K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, \
24 K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, K214, \
25 K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K312, K313, K314, \
26 K400, K401, K402, K403, K409, K410, K412, K413, K414 \
27) { \
28 { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K012, K013, K014 }, \
29 { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114 }, \
30 { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214 }, \
31 { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, KC_NO, K312, K313, K314 }, \
32 { K400, K401, K402, K403, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, K409, K410, KC_NO, K412, K413, K414 } \
33}