diff options
author | katawajojo <katawajojo@users.noreply.github.com> | 2020-11-03 16:39:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-04 11:39:12 +1100 |
commit | d46fa2274cac7d1dad2e6c684d3fabf729efaa2e (patch) | |
tree | 9d75f628675683f6f20a49bf057025bc4845151d | |
parent | e024147ce5871a39a13ce5485c7afed03eabff5c (diff) | |
download | qmk_firmware-d46fa2274cac7d1dad2e6c684d3fabf729efaa2e.tar.gz qmk_firmware-d46fa2274cac7d1dad2e6c684d3fabf729efaa2e.zip |
Adds support for XD84 Pro (#9750)
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: katawajojo <vibri@localhost>
Co-authored-by: katawajojo <katawajojo@vibri.local>
-rw-r--r-- | keyboards/xd84pro/config.h | 75 | ||||
-rw-r--r-- | keyboards/xd84pro/dev.md | 28 | ||||
-rw-r--r-- | keyboards/xd84pro/info.json | 277 | ||||
-rw-r--r-- | keyboards/xd84pro/keymaps/default/keymap.c | 52 | ||||
-rw-r--r-- | keyboards/xd84pro/keymaps/default_iso/keymap.c | 54 | ||||
-rw-r--r-- | keyboards/xd84pro/keymaps/via/keymap.c | 84 | ||||
-rw-r--r-- | keyboards/xd84pro/keymaps/via/readme.md | 1 | ||||
-rw-r--r-- | keyboards/xd84pro/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/xd84pro/readme.md | 24 | ||||
-rw-r--r-- | keyboards/xd84pro/rules.mk | 24 | ||||
-rw-r--r-- | keyboards/xd84pro/xd84pro.c | 30 | ||||
-rw-r--r-- | keyboards/xd84pro/xd84pro.h | 75 |
12 files changed, 726 insertions, 0 deletions
diff --git a/keyboards/xd84pro/config.h b/keyboards/xd84pro/config.h new file mode 100644 index 000000000..7fd4496fe --- /dev/null +++ b/keyboards/xd84pro/config.h | |||
@@ -0,0 +1,75 @@ | |||
1 | /* Copyright 2020 | ||
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 "config_common.h" | ||
20 | |||
21 | /* USB Device descriptor parameter */ | ||
22 | #define VENDOR_ID 0x7844 // "xD" | ||
23 | #define PRODUCT_ID 0x8450 // 84 "P" | ||
24 | #define DEVICE_VER 0x0001 | ||
25 | #define MANUFACTURER KPrepublic | ||
26 | #define PRODUCT XD84 Pro | ||
27 | |||
28 | /* key matrix size */ | ||
29 | #define MATRIX_ROWS 6 | ||
30 | #define MATRIX_COLS 15 | ||
31 | |||
32 | #define MATRIX_ROW_PINS { F4, D0, D1, D2, D3, D5 } | ||
33 | #define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3, F7 } | ||
34 | #define UNUSED_PINS { B0, E2 } | ||
35 | |||
36 | #define DIODE_DIRECTION COL2ROW | ||
37 | |||
38 | #define RGB_DI_PIN F6 | ||
39 | #ifdef RGB_DI_PIN | ||
40 | #define RGBLED_NUM 12 | ||
41 | // #define RGBLIGHT_HUE_STEP 8 | ||
42 | // #define RGBLIGHT_SAT_STEP 8 | ||
43 | // #define RGBLIGHT_VAL_STEP 8 | ||
44 | // #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
45 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
46 | // /*== all animations enable ==*/ | ||
47 | #define RGBLIGHT_ANIMATIONS | ||
48 | // /*== or choose animations ==*/ | ||
49 | // #define RGBLIGHT_EFFECT_BREATHING | ||
50 | // #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
51 | // #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
52 | // #define RGBLIGHT_EFFECT_SNAKE | ||
53 | // #define RGBLIGHT_EFFECT_KNIGHT | ||
54 | // #define RGBLIGHT_EFFECT_CHRISTMAS | ||
55 | // #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
56 | // #define RGBLIGHT_EFFECT_RGB_TEST | ||
57 | // #define RGBLIGHT_EFFECT_ALTERNATING | ||
58 | #endif | ||
59 | |||
60 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
61 | #define DEBOUNCE 5 | ||
62 | |||
63 | /* number of backlight levels */ | ||
64 | #define BACKLIGHT_PIN F5 | ||
65 | #define BACKLIGHT_LEVELS 10 | ||
66 | #define BACKLIGHT_ON_STATE 0 | ||
67 | // #define BACKLIGHT_BREATHING | ||
68 | |||
69 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
70 | #define LOCKING_SUPPORT_ENABLE | ||
71 | /* Locking resynchronize hack */ | ||
72 | #define LOCKING_RESYNC_ENABLE | ||
73 | |||
74 | #define NO_ACTION_MACRO | ||
75 | #define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/xd84pro/dev.md b/keyboards/xd84pro/dev.md new file mode 100644 index 000000000..6e7f4449e --- /dev/null +++ b/keyboards/xd84pro/dev.md | |||
@@ -0,0 +1,28 @@ | |||
1 | # XD84 Pro | ||
2 | |||
3 | Development docs covering the following: | ||
4 | - ATmega32u4 | ||
5 | - RGB | ||
6 | - Backlight | ||
7 | - Light Through Cat | ||
8 | |||
9 | ### Bootloader | ||
10 | Default bootloader is `atmel-dfu`. | ||
11 | Reboot to bootloader via bridging 2 contacts points in the icsp header. | ||
12 | Flash using regular dfu methods. | ||
13 | |||
14 | # RGB | ||
15 | - PIN F6 | ||
16 | - Number of RGB LED: 12 | ||
17 | |||
18 | # Backlight | ||
19 | - PIN F5 | ||
20 | |||
21 | # Light Through Cat | ||
22 | - PIN F5 | ||
23 | |||
24 | # Caps Lock LED/Indicator | ||
25 | - PIN B2 | ||
26 | |||
27 | ## Return to stock firmware | ||
28 | The original TMK firmware is available at [xd.tkg.io](https://xd.tkg.io). | ||
diff --git a/keyboards/xd84pro/info.json b/keyboards/xd84pro/info.json new file mode 100644 index 000000000..807f73181 --- /dev/null +++ b/keyboards/xd84pro/info.json | |||
@@ -0,0 +1,277 @@ | |||
1 | { | ||
2 | "keyboard_name": "XD84 Pro", | ||
3 | "url": "", | ||
4 | "maintainer": "qmk", | ||
5 | "width": 16, | ||
6 | "height": 6, | ||
7 | "layouts": { | ||
8 | "LAYOUT_all": { | ||
9 | "layout": [ | ||
10 | {"label":"Esc", "x":0, "y":0}, | ||
11 | {"label":"F1", "x":1, "y":0}, | ||
12 | {"label":"F2", "x":2, "y":0}, | ||
13 | {"label":"F3", "x":3, "y":0}, | ||
14 | {"label":"F4", "x":4, "y":0}, | ||
15 | {"label":"F5", "x":5, "y":0}, | ||
16 | {"label":"F6", "x":6, "y":0}, | ||
17 | {"label":"F7", "x":7, "y":0}, | ||
18 | {"label":"F8", "x":8, "y":0}, | ||
19 | {"label":"F9", "x":9, "y":0}, | ||
20 | {"label":"F10", "x":10, "y":0}, | ||
21 | {"label":"F11", "x":11, "y":0}, | ||
22 | {"label":"F12", "x":12, "y":0}, | ||
23 | {"label":"PrtSc", "x":13, "y":0}, | ||
24 | {"label":"Pause", "x":14, "y":0}, | ||
25 | {"label":"Delete", "x":15, "y":0}, | ||
26 | {"label":"~", "x":0, "y":1}, | ||
27 | {"label":"1", "x":1, "y":1}, | ||
28 | {"label":"2", "x":2, "y":1}, | ||
29 | {"label":"3", "x":3, "y":1}, | ||
30 | {"label":"4", "x":4, "y":1}, | ||
31 | {"label":"5", "x":5, "y":1}, | ||
32 | {"label":"6", "x":6, "y":1}, | ||
33 | {"label":"7", "x":7, "y":1}, | ||
34 | {"label":"8", "x":8, "y":1}, | ||
35 | {"label":"9", "x":9, "y":1}, | ||
36 | {"label":"0", "x":10, "y":1}, | ||
37 | {"label":"_", "x":11, "y":1}, | ||
38 | {"label":"+", "x":12, "y":1}, | ||
39 | {"label":"Backspace", "x":13, "y":1}, | ||
40 | {"label":"Backspace", "x":14, "y":1}, | ||
41 | {"label":"Home", "x":15, "y":1}, | ||
42 | {"label":"Tab", "x":0, "y":2, "w":1.5}, | ||
43 | {"label":"Q", "x":1.5, "y":2}, | ||
44 | {"label":"W", "x":2.5, "y":2}, | ||
45 | {"label":"E", "x":3.5, "y":2}, | ||
46 | {"label":"R", "x":4.5, "y":2}, | ||
47 | {"label":"T", "x":5.5, "y":2}, | ||
48 | {"label":"Y", "x":6.5, "y":2}, | ||
49 | {"label":"U", "x":7.5, "y":2}, | ||
50 | {"label":"I", "x":8.5, "y":2}, | ||
51 | {"label":"O", "x":9.5, "y":2}, | ||
52 | {"label":"P", "x":10.5, "y":2}, | ||
53 | {"label":"{", "x":11.5, "y":2}, | ||
54 | {"label":"}", "x":12.5, "y":2}, | ||
55 | {"label":"|", "x":13.5, "y":2, "w":1.5}, | ||
56 | {"label":"Page Up", "x":15, "y":2}, | ||
57 | {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, | ||
58 | {"label":"A", "x":1.75, "y":3}, | ||
59 | {"label":"S", "x":2.75, "y":3}, | ||
60 | {"label":"D", "x":3.75, "y":3}, | ||
61 | {"label":"F", "x":4.75, "y":3}, | ||
62 | {"label":"G", "x":5.75, "y":3}, | ||
63 | {"label":"H", "x":6.75, "y":3}, | ||
64 | {"label":"J", "x":7.75, "y":3}, | ||
65 | {"label":"K", "x":8.75, "y":3}, | ||
66 | {"label":"L", "x":9.75, "y":3}, | ||
67 | {"label":":", "x":10.75, "y":3}, | ||
68 | {"label":"\"", "x":11.75, "y":3}, | ||
69 | {"label":"\\", "x":12.75, "y":3}, | ||
70 | {"label":"Enter", "x":13.75, "y":3, "w":1.25}, | ||
71 | {"label":"Page Down", "x":15, "y":3}, | ||
72 | {"label":"Shift", "x":0, "y":4, "w":1.25}, | ||
73 | {"label":"Shift", "x":1.25, "y":4}, | ||
74 | {"label":"Z", "x":2.25, "y":4}, | ||
75 | {"label":"X", "x":3.25, "y":4}, | ||
76 | {"label":"C", "x":4.25, "y":4}, | ||
77 | {"label":"V", "x":5.25, "y":4}, | ||
78 | {"label":"B", "x":6.25, "y":4}, | ||
79 | {"label":"N", "x":7.25, "y":4}, | ||
80 | {"label":"M", "x":8.25, "y":4}, | ||
81 | {"label":"<", "x":9.25, "y":4}, | ||
82 | {"label":">", "x":10.25, "y":4}, | ||
83 | {"label":"?", "x":11.25, "y":4}, | ||
84 | {"label":"Shift", "x":12.25, "y":4, "w":1.75}, | ||
85 | {"label":"Up", "x":14, "y":4}, | ||
86 | {"label":"End", "x":15, "y":4}, | ||
87 | {"label":"Ctrl", "x":0, "y":5, "w":1.25}, | ||
88 | {"label":"Win", "x":1.25, "y":5, "w":1.25}, | ||
89 | {"label":"Alt", "x":2.5, "y":5, "w":1.25}, | ||
90 | {"label":"Space", "x":3.75, "y":5, "w":6.25}, | ||
91 | {"label":"Alt", "x":10, "y":5}, | ||
92 | {"label":"Fn", "x":11, "y":5}, | ||
93 | {"label":"Ctrl", "x":12, "y":5}, | ||
94 | {"label":"Left", "x":13, "y":5}, | ||
95 | {"label":"Down", "x":14, "y":5}, | ||
96 | {"label":"Right", "x":15, "y":5} | ||
97 | ] | ||
98 | }, | ||
99 | "LAYOUT_75_ansi": { | ||
100 | "layout": [ | ||
101 | {"label":"Esc", "x":0, "y":0}, | ||
102 | {"label":"F1", "x":1, "y":0}, | ||
103 | {"label":"F2", "x":2, "y":0}, | ||
104 | {"label":"F3", "x":3, "y":0}, | ||
105 | {"label":"F4", "x":4, "y":0}, | ||
106 | {"label":"F5", "x":5, "y":0}, | ||
107 | {"label":"F6", "x":6, "y":0}, | ||
108 | {"label":"F7", "x":7, "y":0}, | ||
109 | {"label":"F8", "x":8, "y":0}, | ||
110 | {"label":"F9", "x":9, "y":0}, | ||
111 | {"label":"F10", "x":10, "y":0}, | ||
112 | {"label":"F11", "x":11, "y":0}, | ||
113 | {"label":"F12", "x":12, "y":0}, | ||
114 | {"label":"PrtSc", "x":13, "y":0}, | ||
115 | {"label":"Pause", "x":14, "y":0}, | ||
116 | {"label":"Delete", "x":15, "y":0}, | ||
117 | {"label":"~", "x":0, "y":1}, | ||
118 | {"label":"1", "x":1, "y":1}, | ||
119 | {"label":"2", "x":2, "y":1}, | ||
120 | {"label":"3", "x":3, "y":1}, | ||
121 | {"label":"4", "x":4, "y":1}, | ||
122 | {"label":"5", "x":5, "y":1}, | ||
123 | {"label":"6", "x":6, "y":1}, | ||
124 | {"label":"7", "x":7, "y":1}, | ||
125 | {"label":"8", "x":8, "y":1}, | ||
126 | {"label":"9", "x":9, "y":1}, | ||
127 | {"label":"0", "x":10, "y":1}, | ||
128 | {"label":"_", "x":11, "y":1}, | ||
129 | {"label":"+", "x":12, "y":1}, | ||
130 | {"label":"Backspace", "x":13, "y":1, "w":2}, | ||
131 | {"label":"Home", "x":15, "y":1}, | ||
132 | {"label":"Tab", "x":0, "y":2, "w":1.5}, | ||
133 | {"label":"Q", "x":1.5, "y":2}, | ||
134 | {"label":"W", "x":2.5, "y":2}, | ||
135 | {"label":"E", "x":3.5, "y":2}, | ||
136 | {"label":"R", "x":4.5, "y":2}, | ||
137 | {"label":"T", "x":5.5, "y":2}, | ||
138 | {"label":"Y", "x":6.5, "y":2}, | ||
139 | {"label":"U", "x":7.5, "y":2}, | ||
140 | {"label":"I", "x":8.5, "y":2}, | ||
141 | {"label":"O", "x":9.5, "y":2}, | ||
142 | {"label":"P", "x":10.5, "y":2}, | ||
143 | {"label":"{", "x":11.5, "y":2}, | ||
144 | {"label":"}", "x":12.5, "y":2}, | ||
145 | {"label":"|", "x":13.5, "y":2, "w":1.5}, | ||
146 | {"label":"Page Up", "x":15, "y":2}, | ||
147 | {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, | ||
148 | {"label":"A", "x":1.75, "y":3}, | ||
149 | {"label":"S", "x":2.75, "y":3}, | ||
150 | {"label":"D", "x":3.75, "y":3}, | ||
151 | {"label":"F", "x":4.75, "y":3}, | ||
152 | {"label":"G", "x":5.75, "y":3}, | ||
153 | {"label":"H", "x":6.75, "y":3}, | ||
154 | {"label":"J", "x":7.75, "y":3}, | ||
155 | {"label":"K", "x":8.75, "y":3}, | ||
156 | {"label":"L", "x":9.75, "y":3}, | ||
157 | {"label":":", "x":10.75, "y":3}, | ||
158 | {"label":"\"", "x":11.75, "y":3}, | ||
159 | {"label":"Enter", "x":12.75, "y":3, "w":2.25}, | ||
160 | {"label":"Page Down", "x":15, "y":3}, | ||
161 | {"label":"Shift", "x":0, "y":4, "w":2.25}, | ||
162 | {"label":"Z", "x":2.25, "y":4}, | ||
163 | {"label":"X", "x":3.25, "y":4}, | ||
164 | {"label":"C", "x":4.25, "y":4}, | ||
165 | {"label":"V", "x":5.25, "y":4}, | ||
166 | {"label":"B", "x":6.25, "y":4}, | ||
167 | {"label":"N", "x":7.25, "y":4}, | ||
168 | {"label":"M", "x":8.25, "y":4}, | ||
169 | {"label":"<", "x":9.25, "y":4}, | ||
170 | {"label":">", "x":10.25, "y":4}, | ||
171 | {"label":"?", "x":11.25, "y":4}, | ||
172 | {"label":"Shift", "x":12.25, "y":4, "w":1.75}, | ||
173 | {"label":"Up", "x":14, "y":4}, | ||
174 | {"label":"End", "x":15, "y":4}, | ||
175 | {"label":"Ctrl", "x":0, "y":5, "w":1.25}, | ||
176 | {"label":"Win", "x":1.25, "y":5, "w":1.25}, | ||
177 | {"label":"Alt", "x":2.5, "y":5, "w":1.25}, | ||
178 | {"label":"Space", "x":3.75, "y":5, "w":6.25}, | ||
179 | {"label":"Alt", "x":10, "y":5}, | ||
180 | {"label":"Fn", "x":11, "y":5}, | ||
181 | {"label":"Ctrl", "x":12, "y":5}, | ||
182 | {"label":"Left", "x":13, "y":5}, | ||
183 | {"label":"Down", "x":14, "y":5}, | ||
184 | {"label":"Right", "x":15, "y":5} | ||
185 | ] | ||
186 | }, | ||
187 | "LAYOUT_75_iso": { | ||
188 | "layout": [ | ||
189 | {"label":"Esc", "x":0, "y":0}, | ||
190 | {"label":"F1", "x":1, "y":0}, | ||
191 | {"label":"F2", "x":2, "y":0}, | ||
192 | {"label":"F3", "x":3, "y":0}, | ||
193 | {"label":"F4", "x":4, "y":0}, | ||
194 | {"label":"F5", "x":5, "y":0}, | ||
195 | {"label":"F6", "x":6, "y":0}, | ||
196 | {"label":"F7", "x":7, "y":0}, | ||
197 | {"label":"F8", "x":8, "y":0}, | ||
198 | {"label":"F9", "x":9, "y":0}, | ||
199 | {"label":"F10", "x":10, "y":0}, | ||
200 | {"label":"F11", "x":11, "y":0}, | ||
201 | {"label":"F12", "x":12, "y":0}, | ||
202 | {"label":"PrtSc", "x":13, "y":0}, | ||
203 | {"label":"Pause", "x":14, "y":0}, | ||
204 | {"label":"Delete", "x":15, "y":0}, | ||
205 | {"label":"~", "x":0, "y":1}, | ||
206 | {"label":"1", "x":1, "y":1}, | ||
207 | {"label":"2", "x":2, "y":1}, | ||
208 | {"label":"3", "x":3, "y":1}, | ||
209 | {"label":"4", "x":4, "y":1}, | ||
210 | {"label":"5", "x":5, "y":1}, | ||
211 | {"label":"6", "x":6, "y":1}, | ||
212 | {"label":"7", "x":7, "y":1}, | ||
213 | {"label":"8", "x":8, "y":1}, | ||
214 | {"label":"9", "x":9, "y":1}, | ||
215 | {"label":"0", "x":10, "y":1}, | ||
216 | {"label":"_", "x":11, "y":1}, | ||
217 | {"label":"+", "x":12, "y":1}, | ||
218 | {"label":"Backspace", "x":13, "y":1, "w":2}, | ||
219 | {"label":"Home", "x":15, "y":1}, | ||
220 | {"label":"Tab", "x":0, "y":2, "w":1.5}, | ||
221 | {"label":"Q", "x":1.5, "y":2}, | ||
222 | {"label":"W", "x":2.5, "y":2}, | ||
223 | {"label":"E", "x":3.5, "y":2}, | ||
224 | {"label":"R", "x":4.5, "y":2}, | ||
225 | {"label":"T", "x":5.5, "y":2}, | ||
226 | {"label":"Y", "x":6.5, "y":2}, | ||
227 | {"label":"U", "x":7.5, "y":2}, | ||
228 | {"label":"I", "x":8.5, "y":2}, | ||
229 | {"label":"O", "x":9.5, "y":2}, | ||
230 | {"label":"P", "x":10.5, "y":2}, | ||
231 | {"label":"{", "x":11.5, "y":2}, | ||
232 | {"label":"}", "x":12.5, "y":2}, | ||
233 | {"label":"Page Up", "x":15, "y":2}, | ||
234 | {"label":"Caps Lock", "x":0, "y":3, "w":1.75}, | ||
235 | {"label":"A", "x":1.75, "y":3}, | ||
236 | {"label":"S", "x":2.75, "y":3}, | ||
237 | {"label":"D", "x":3.75, "y":3}, | ||
238 | {"label":"F", "x":4.75, "y":3}, | ||
239 | {"label":"G", "x":5.75, "y":3}, | ||
240 | {"label":"H", "x":6.75, "y":3}, | ||
241 | {"label":"J", "x":7.75, "y":3}, | ||
242 | {"label":"K", "x":8.75, "y":3}, | ||
243 | {"label":"L", "x":9.75, "y":3}, | ||
244 | {"label":":", "x":10.75, "y":3}, | ||
245 | {"label":"@", "x":11.75, "y":3}, | ||
246 | {"label":"~", "x":12.75, "y":3}, | ||
247 | {"label":"Enter", "x":13.75, "y":2, "w":1.25, "h":2}, | ||
248 | {"label":"Page Down", "x":15, "y":3}, | ||
249 | {"label":"Shift", "x":0, "y":4, "w":1.25}, | ||
250 | {"label":"|", "x":1.25, "y":4}, | ||
251 | {"label":"Z", "x":2.25, "y":4}, | ||
252 | {"label":"X", "x":3.25, "y":4}, | ||
253 | {"label":"C", "x":4.25, "y":4}, | ||
254 | {"label":"V", "x":5.25, "y":4}, | ||
255 | {"label":"B", "x":6.25, "y":4}, | ||
256 | {"label":"N", "x":7.25, "y":4}, | ||
257 | {"label":"M", "x":8.25, "y":4}, | ||
258 | {"label":"<", "x":9.25, "y":4}, | ||
259 | {"label":">", "x":10.25, "y":4}, | ||
260 | {"label":"?", "x":11.25, "y":4}, | ||
261 | {"label":"Shift", "x":12.25, "y":4, "w":1.75}, | ||
262 | {"label":"Up", "x":14, "y":4}, | ||
263 | {"label":"End", "x":15, "y":4}, | ||
264 | {"label":"Ctrl", "x":0, "y":5, "w":1.25}, | ||
265 | {"label":"Win", "x":1.25, "y":5, "w":1.25}, | ||
266 | {"label":"Alt", "x":2.5, "y":5, "w":1.25}, | ||
267 | {"label":"Space", "x":3.75, "y":5, "w":6.25}, | ||
268 | {"label":"Alt", "x":10, "y":5}, | ||
269 | {"label":"Fn", "x":11, "y":5}, | ||
270 | {"label":"Ctrl", "x":12, "y":5}, | ||
271 | {"label":"Left", "x":13, "y":5}, | ||
272 | {"label":"Down", "x":14, "y":5}, | ||
273 | {"label":"Right", "x":15, "y":5} | ||
274 | ] | ||
275 | } | ||
276 | } | ||
277 | } | ||
diff --git a/keyboards/xd84pro/keymaps/default/keymap.c b/keyboards/xd84pro/keymaps/default/keymap.c new file mode 100644 index 000000000..5229b7462 --- /dev/null +++ b/keyboards/xd84pro/keymaps/default/keymap.c | |||
@@ -0,0 +1,52 @@ | |||
1 | /* Copyright 2020 katawajojo | ||
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 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | |||
21 | [0] = LAYOUT_75_ansi( | ||
22 | /* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */ | ||
23 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_SLCK, KC_PAUS, KC_DEL, | ||
24 | /* ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┴─────────┼─────────┤ */ | ||
25 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, | ||
26 | /* ├─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */ | ||
27 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, | ||
28 | /* ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──────────────├─────────┤ */ | ||
29 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, | ||
30 | /* ├─────────────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───────────┬─────────┼─────────┤ */ | ||
31 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
32 | /* ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */ | ||
33 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
34 | /* └───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */ | ||
35 | ), | ||
36 | |||
37 | [1] = LAYOUT_75_ansi( | ||
38 | /* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */ | ||
39 | _______, BL_TOGG, BL_STEP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
40 | /* ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┴─────────┼─────────┤ */ | ||
41 | _______, RGB_TOG, RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
42 | /* ├─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */ | ||
43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
44 | /* ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──────────────├─────────┤ */ | ||
45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
46 | /* ├─────────────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───────────┬─────────┼─────────┤ */ | ||
47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
48 | /* ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */ | ||
49 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
50 | /* └───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */ | ||
51 | ) | ||
52 | }; \ No newline at end of file | ||
diff --git a/keyboards/xd84pro/keymaps/default_iso/keymap.c b/keyboards/xd84pro/keymaps/default_iso/keymap.c new file mode 100644 index 000000000..c27c16960 --- /dev/null +++ b/keyboards/xd84pro/keymaps/default_iso/keymap.c | |||
@@ -0,0 +1,54 @@ | |||
1 | /* Copyright 2020 katawajojo | ||
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 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | #define L1_RGUI LM(1, MOD_RGUI) | ||
20 | |||
21 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
22 | |||
23 | [0] = LAYOUT_75_iso( | ||
24 | /* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */ | ||
25 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_PSCR, KC_PAUS, KC_DEL, | ||
26 | /* ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┴─────────┼─────────┤ */ | ||
27 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_HOME, | ||
28 | /* ├─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */ | ||
29 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_PGUP, | ||
30 | /* ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬ ├─────────┤ */ | ||
31 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_NUHS, KC_ENT, KC_PGDN, | ||
32 | /* ├───────────┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴─────────┴─┬─────────┼─────────┤ */ | ||
33 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
34 | /* ├───────────┼─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */ | ||
35 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, L1_RGUI, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
36 | /* └───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */ | ||
37 | ), | ||
38 | |||
39 | [1] = LAYOUT_75_iso( | ||
40 | /* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */ | ||
41 | _______, BL_TOGG, BL_STEP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
42 | /* ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┴─────────┼─────────┤ */ | ||
43 | _______, RGB_TOG, RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
44 | /* ├─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */ | ||
45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
46 | /* ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬ ├─────────┤ */ | ||
47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
48 | /* ├───────────┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴─────────┴─┬─────────┼─────────┤ */ | ||
49 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
50 | /* ├───────────┼─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */ | ||
51 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
52 | /* └───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */ | ||
53 | ) | ||
54 | }; | ||
diff --git a/keyboards/xd84pro/keymaps/via/keymap.c b/keyboards/xd84pro/keymaps/via/keymap.c new file mode 100644 index 000000000..214fff6f6 --- /dev/null +++ b/keyboards/xd84pro/keymaps/via/keymap.c | |||
@@ -0,0 +1,84 @@ | |||
1 | /* Copyright 2020 katawajojo | ||
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 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | |||
21 | [0] = LAYOUT_all( | ||
22 | /* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */ | ||
23 | KC_ESC, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_SLCK, KC_PAUS, KC_DEL, | ||
24 | /* ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┴─────────┼─────────┤ */ | ||
25 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, KC_BSPC, KC_HOME, | ||
26 | /* ├─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */ | ||
27 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, | ||
28 | /* ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴────┬─────────├─────────┤ */ | ||
29 | KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_BSLS, KC_ENT, KC_PGDN, | ||
30 | /* ├─────────────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───────────┼─────────┼─────────┤ */ | ||
31 | KC_LSFT, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP, KC_END, | ||
32 | /* ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */ | ||
33 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
34 | /* └───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */ | ||
35 | ), | ||
36 | |||
37 | [1] = LAYOUT_all( | ||
38 | /* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */ | ||
39 | _______, BL_TOGG, BL_STEP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET, | ||
40 | /* ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┴─────────┼─────────┤ */ | ||
41 | _______, RGB_TOG, RGB_MOD, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
42 | /* ├─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */ | ||
43 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
44 | /* ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──────────────├─────────┤ */ | ||
45 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
46 | /* ├─────────────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───────────┬─────────┼─────────┤ */ | ||
47 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
48 | /* ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */ | ||
49 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
50 | /* └───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */ | ||
51 | ), | ||
52 | |||
53 | [2] = LAYOUT_all( | ||
54 | /* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */ | ||
55 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
56 | /* ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┴─────────┼─────────┤ */ | ||
57 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
58 | /* ├─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */ | ||
59 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
60 | /* ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──────────────├─────────┤ */ | ||
61 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
62 | /* ├─────────────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───────────┬─────────┼─────────┤ */ | ||
63 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
64 | /* ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */ | ||
65 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
66 | /* └───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */ | ||
67 | ), | ||
68 | |||
69 | [3] = LAYOUT_all( | ||
70 | /* ┌─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┬─────────┐ */ | ||
71 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
72 | /* ├─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┼─────────┴─────────┼─────────┤ */ | ||
73 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
74 | /* ├─────────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬────┴────┬──────────────┼─────────┤ */ | ||
75 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
76 | /* ├──────────────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──┬──────┴──────────────├─────────┤ */ | ||
77 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
78 | /* ├─────────────────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───┬─────┴───────────┬─────────┼─────────┤ */ | ||
79 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
80 | /* ├───────────┬─────────┴─┬───────┴───┬─────┴─────────┴─────────┴─────────┴─────────┴─────────┴───────┬─┴───────┬─┴───────┬─┴───────┬─────────┼─────────┼─────────┤ */ | ||
81 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
82 | /* └───────────┴───────────┴───────────┴───────────────────────────────────────────────────────────────┴─────────┴─────────┴─────────┴─────────┴─────────┴─────────┘ */ | ||
83 | ), | ||
84 | }; | ||
diff --git a/keyboards/xd84pro/keymaps/via/readme.md b/keyboards/xd84pro/keymaps/via/readme.md new file mode 100644 index 000000000..27cb965eb --- /dev/null +++ b/keyboards/xd84pro/keymaps/via/readme.md | |||
@@ -0,0 +1 @@ | |||
# The VIA default layout | |||
diff --git a/keyboards/xd84pro/keymaps/via/rules.mk b/keyboards/xd84pro/keymaps/via/rules.mk new file mode 100644 index 000000000..43061db1d --- /dev/null +++ b/keyboards/xd84pro/keymaps/via/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | LTO_ENABLE = yes \ No newline at end of file | ||
diff --git a/keyboards/xd84pro/readme.md b/keyboards/xd84pro/readme.md new file mode 100644 index 000000000..76e83c6c5 --- /dev/null +++ b/keyboards/xd84pro/readme.md | |||
@@ -0,0 +1,24 @@ | |||
1 | # XD84 Pro | ||
2 | |||
3 |  | ||
4 | |||
5 | Keyboard with 84 Keys, RGB LED Underglow, and USB-C Connection | ||
6 | - Designed by Xiudi | ||
7 | - Up to 87 keys | ||
8 | - iso and ansi support | ||
9 | |||
10 | The silkscreen printing on the PCB refers to this as the "XD84 v2.0". | ||
11 | |||
12 | * Keyboard Maintainer: QMK Community | ||
13 | * Hardware Supported: XD84 Pro | ||
14 | * Hardware Availability: [KPrepublic](https://kprepublic.com/products/xd84pro-xd84-pro-custom-mechanical-keyboard-kit-75-supports-tkg-tools-support-underglow-rgb-pcb-programmed-gh84-kle-type-c) | ||
15 | |||
16 | Make example for this keyboard (after setting up your build environment): | ||
17 | |||
18 | make xd84pro:default | ||
19 | |||
20 | Flashing example for this keyboard: | ||
21 | |||
22 | make xd84pro:default:flash | ||
23 | |||
24 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/xd84pro/rules.mk b/keyboards/xd84pro/rules.mk new file mode 100644 index 000000000..1c94b3a76 --- /dev/null +++ b/keyboards/xd84pro/rules.mk | |||
@@ -0,0 +1,24 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = atmel-dfu | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
11 | MOUSEKEY_ENABLE = no # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
16 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
17 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
18 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
19 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality | ||
20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
22 | AUDIO_ENABLE = no # Audio output | ||
23 | |||
24 | LAYOUTS = 75_ansi 75_iso | ||
diff --git a/keyboards/xd84pro/xd84pro.c b/keyboards/xd84pro/xd84pro.c new file mode 100644 index 000000000..cba8a57f2 --- /dev/null +++ b/keyboards/xd84pro/xd84pro.c | |||
@@ -0,0 +1,30 @@ | |||
1 | /* Copyright 2020 | ||
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 | #include "xd84pro.h" | ||
17 | |||
18 | void keyboard_pre_init_kb(void) { | ||
19 | led_init_ports(); | ||
20 | keyboard_pre_init_user(); | ||
21 | } | ||
22 | void led_init_ports(void) { | ||
23 | setPinOutput(B2); | ||
24 | } | ||
25 | bool led_update_kb(led_t led_state) { | ||
26 | if (led_update_user(led_state)) { | ||
27 | writePin(B2, !led_state.caps_lock); | ||
28 | } | ||
29 | return false; | ||
30 | } \ No newline at end of file | ||
diff --git a/keyboards/xd84pro/xd84pro.h b/keyboards/xd84pro/xd84pro.h new file mode 100644 index 000000000..eda75eac6 --- /dev/null +++ b/keyboards/xd84pro/xd84pro.h | |||
@@ -0,0 +1,75 @@ | |||
1 | /* Copyright 2020 | ||
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 | #pragma once | ||
17 | |||
18 | #include "quantum.h" | ||
19 | #define ____ KC_NO | ||
20 | |||
21 | /* This a shortcut to help you visually see your layout. | ||
22 | * | ||
23 | * The first section contains all of the arguments representing the physical | ||
24 | * layout of the board and position of the keys. | ||
25 | * | ||
26 | * The second converts the arguments into a two-dimensional array which | ||
27 | * represents the switch matrix. | ||
28 | */ | ||
29 | #define LAYOUT_all( \ | ||
30 | K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \ | ||
31 | K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K215, K216, \ | ||
32 | K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K316, \ | ||
33 | K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K416, \ | ||
34 | K501, K502, K503, K504, K505, K506, K507, K508, K509, K510, K511, K512, K513, K515, K516, \ | ||
35 | K601, K602, K603, K607, K611, K612, K613, K614, K615, K616 \ | ||
36 | ) { \ | ||
37 | { K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K116 }, \ | ||
38 | { K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K216 }, \ | ||
39 | { K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K316 }, \ | ||
40 | { K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K413, K414, K416 }, \ | ||
41 | { K501, K502, K503, K504, K505, K506, K507, K508, K509, K510, K511, K512, K513, K515, K516 }, \ | ||
42 | { K601, K602, K603, ____, ____, K607, K115, ____, K613, K215, K611, K612, K614, K615, K616 } \ | ||
43 | } | ||
44 | |||
45 | #define LAYOUT_75_ansi( \ | ||
46 | K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \ | ||
47 | K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K216, \ | ||
48 | K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K316, \ | ||
49 | K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K414, K416, \ | ||
50 | K501, K503, K504, K505, K506, K507, K508, K509, K510, K511, K512, K513, K515, K516, \ | ||
51 | K601, K602, K603, K607, K611, K612, K613, K614, K615, K616 \ | ||
52 | ) { \ | ||
53 | { K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K116 }, \ | ||
54 | { K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K216 }, \ | ||
55 | { K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K314, K316 }, \ | ||
56 | { K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, ____, K414, K416 }, \ | ||
57 | { K501, ____, K503, K504, K505, K506, K507, K508, K509, K510, K511, K512, K513, K515, K516 }, \ | ||
58 | { K601, K602, K603, ____, ____, K607, K115, ____, K613, ____, K611, K612, K614, K615, K616 } \ | ||
59 | } | ||
60 | |||
61 | #define LAYOUT_75_iso( \ | ||
62 | K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K115, K116, \ | ||
63 | K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K216, \ | ||
64 | K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, K316, \ | ||
65 | K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K414, K415, K416, \ | ||
66 | K501, K502, K503, K504, K505, K506, K507, K508, K509, K510, K511, K512, K513, K515, K516, \ | ||
67 | K601, K602, K603, K607, K611, K612, K613, K614, K615, K616 \ | ||
68 | ) { \ | ||
69 | { K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K112, K113, K114, K116 }, \ | ||
70 | { K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K212, K213, K214, K216 }, \ | ||
71 | { K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K312, K313, ____, K316 }, \ | ||
72 | { K401, K402, K403, K404, K405, K406, K407, K408, K409, K410, K411, K412, K414, K415, K416 }, \ | ||
73 | { K501, K502, K503, K504, K505, K506, K507, K508, K509, K510, K511, K512, K513, K515, K516 }, \ | ||
74 | { K601, K602, K603, ____, ____, K607, K115, ____, K613, ____, K611, K612, K614, K615, K616 } \ | ||
75 | } | ||