aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/wuque/serneity65/config.h50
-rw-r--r--keyboards/wuque/serneity65/info.json389
-rw-r--r--keyboards/wuque/serneity65/keymaps/65_ansi/keymap.c34
-rw-r--r--keyboards/wuque/serneity65/keymaps/65_ansi/readme.md1
-rw-r--r--keyboards/wuque/serneity65/keymaps/65_split_bs/keymap.c35
-rw-r--r--keyboards/wuque/serneity65/keymaps/65_split_bs/readme.md1
-rw-r--r--keyboards/wuque/serneity65/keymaps/65_split_lshift/keymap.c34
-rw-r--r--keyboards/wuque/serneity65/keymaps/65_split_lshift/readme.md1
-rw-r--r--keyboards/wuque/serneity65/keymaps/65_split_space/keymap.c34
-rw-r--r--keyboards/wuque/serneity65/keymaps/65_split_space/readme.md1
-rw-r--r--keyboards/wuque/serneity65/keymaps/default/keymap.c34
-rw-r--r--keyboards/wuque/serneity65/keymaps/default/readme.md1
-rw-r--r--keyboards/wuque/serneity65/keymaps/via/keymap.c48
-rw-r--r--keyboards/wuque/serneity65/keymaps/via/readme.md1
-rw-r--r--keyboards/wuque/serneity65/keymaps/via/rules.mk2
-rw-r--r--keyboards/wuque/serneity65/readme.md24
-rw-r--r--keyboards/wuque/serneity65/rules.mk25
-rw-r--r--keyboards/wuque/serneity65/serneity65.c71
-rw-r--r--keyboards/wuque/serneity65/serneity65.h159
19 files changed, 945 insertions, 0 deletions
diff --git a/keyboards/wuque/serneity65/config.h b/keyboards/wuque/serneity65/config.h
new file mode 100644
index 000000000..e13aa8950
--- /dev/null
+++ b/keyboards/wuque/serneity65/config.h
@@ -0,0 +1,50 @@
1/* Copyright 2021 wuque
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 0x906B
23#define PRODUCT_ID 0x0003
24#define DEVICE_VER 0x0001
25#define MANUFACTURER wuque
26#define PRODUCT serneity65
27
28/* key matrix size */
29#define MATRIX_ROWS 5
30#define MATRIX_COLS 15
31
32#define MATRIX_ROW_PINS { B0, F0, B1, D2, D3 }
33#define MATRIX_COL_PINS { B6, B5, D5, D4, D6, B4, D7, F1, F4, F5, F6, F7, C7, E6, B7 }
34
35#define DIODE_DIRECTION COL2ROW
36
37/* Set 0 if debouncing isn't needed */
38#define DEBOUNCE 5
39
40/* Enable encoder */
41#define ENCODERS_PAD_A { B2 }
42#define ENCODERS_PAD_B { B3 }
43
44#define ENCODERS 1
45// Note: array is { col, row )
46#define ENCODERS_CW_KEY { { 3, 4 } }
47#define ENCODERS_CCW_KEY { { 5, 4 } }
48
49#define LED_CAPS_LOCK_PIN C6
50#define LED_PIN_ON_STATE 0
diff --git a/keyboards/wuque/serneity65/info.json b/keyboards/wuque/serneity65/info.json
new file mode 100644
index 000000000..546c290aa
--- /dev/null
+++ b/keyboards/wuque/serneity65/info.json
@@ -0,0 +1,389 @@
1{
2 "keyboard_name": "serneity65",
3 "url": "https://wuque.com/",
4 "maintainer": "qmk",
5 "width": 15.5,
6 "height": 5,
7 "layouts": {
8 "LAYOUT_all": {
9 "layout": [
10 { "label": "Esc", "x": 0, "y": 0 },
11 { "label": "1", "x": 1, "y": 0 },
12 { "label": "2", "x": 2, "y": 0 },
13 { "label": "3", "x": 3, "y": 0 },
14 { "label": "4", "x": 4, "y": 0 },
15 { "label": "5", "x": 5, "y": 0 },
16 { "label": "6", "x": 6, "y": 0 },
17 { "label": "7", "x": 7, "y": 0 },
18 { "label": "8", "x": 8, "y": 0 },
19 { "label": "9", "x": 9, "y": 0 },
20 { "label": "0", "x": 10, "y": 0 },
21 { "label": "-", "x": 11, "y": 0 },
22 { "label": "=", "x": 12, "y": 0 },
23 { "label": "Backspace", "x": 13, "y": 0 },
24 { "label": "Encode", "x": 15.5, "y": 0 },
25
26 { "label": "Tab", "x": 0, "y": 1, "w": 1.5 },
27 { "label": "Q", "x": 1.5, "y": 1 },
28 { "label": "W", "x": 2.5, "y": 1 },
29 { "label": "E", "x": 3.5, "y": 1 },
30 { "label": "R", "x": 4.5, "y": 1 },
31 { "label": "T", "x": 5.5, "y": 1 },
32 { "label": "Y", "x": 6.5, "y": 1 },
33 { "label": "U", "x": 7.5, "y": 1 },
34 { "label": "I", "x": 8.5, "y": 1 },
35 { "label": "O", "x": 9.5, "y": 1 },
36 { "label": "P", "x": 10.5, "y": 1 },
37 { "label": "[", "x": 11.5, "y": 1 },
38 { "label": "]", "x": 12.5, "y": 1 },
39 { "label": "\\", "x": 13.5, "y": 1, "w": 1.5 },
40
41 { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 },
42 { "label": "A", "x": 1.75, "y": 2 },
43 { "label": "S", "x": 2.75, "y": 2 },
44 { "label": "D", "x": 3.75, "y": 2 },
45 { "label": "F", "x": 4.75, "y": 2 },
46 { "label": "G", "x": 5.75, "y": 2 },
47 { "label": "H", "x": 6.75, "y": 2 },
48 { "label": "J", "x": 7.75, "y": 2 },
49 { "label": "K", "x": 8.75, "y": 2 },
50 { "label": "L", "x": 9.75, "y": 2 },
51 { "label": ";", "x": 10.75, "y": 2 },
52 { "label": "'", "x": 11.75, "y": 2 },
53 { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 },
54 { "label": "Backspace", "x": 14, "y": 0 },
55 { "label": "PageUp", "x": 15, "y": 2 },
56
57 { "label": "Shift1", "x": 0, "y": 3, "w": 1.25 },
58 { "label": "Shift2", "x": 1.25, "y": 3 },
59 { "label": "Z", "x": 2.25, "y": 3 },
60 { "label": "X", "x": 3.25, "y": 3 },
61 { "label": "C", "x": 4.25, "y": 3 },
62 { "label": "V", "x": 5.25, "y": 3 },
63 { "label": "B", "x": 6.25, "y": 3 },
64 { "label": "N", "x": 7.25, "y": 3 },
65 { "label": "M", "x": 8.25, "y": 3 },
66 { "label": ",", "x": 9.25, "y": 3 },
67 { "label": ".", "x": 10.25, "y": 3 },
68 { "label": "/", "x": 11.25, "y": 3 },
69 { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 },
70 { "label": "\u2191", "x": 14, "y": 3 },
71 { "label": "End", "x": 15, "y": 3 },
72
73 { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 },
74 { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 },
75 { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 },
76 { "label": "Lrotate", "x": 15, "y": 0, "w": 0.5 },
77 { "label": "Rrotate", "x": 16.5, "y": 0, "w": 0.5 },
78 { "x": 3.75, "y": 4, "w": 2.25 },
79 { "x": 6, "y": 4, "w": 1.25 },
80 { "x": 7.25, "y": 4, "w": 2.75 },
81 { "label": "Alt", "x": 10, "y": 4, "w": 1.25 },
82 { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 },
83 { "label": "\u2190", "x": 13, "y": 4 },
84 { "label": "\u2193", "x": 14, "y": 4 },
85 { "label": "\u2192", "x": 15, "y": 4 }
86 ]
87 },
88 "LAYOUT_65_ansi": {
89 "layout": [
90 { "label": "Esc", "x": 0, "y": 0 },
91 { "label": "1", "x": 1, "y": 0 },
92 { "label": "2", "x": 2, "y": 0 },
93 { "label": "3", "x": 3, "y": 0 },
94 { "label": "4", "x": 4, "y": 0 },
95 { "label": "5", "x": 5, "y": 0 },
96 { "label": "6", "x": 6, "y": 0 },
97 { "label": "7", "x": 7, "y": 0 },
98 { "label": "8", "x": 8, "y": 0 },
99 { "label": "9", "x": 9, "y": 0 },
100 { "label": "0", "x": 10, "y": 0 },
101 { "label": "-", "x": 11, "y": 0 },
102 { "label": "=", "x": 12, "y": 0 },
103 { "label": "Backspace", "x": 13, "y": 0, "w": 2 },
104 { "label": "Encode", "x": 15.5, "y": 0 },
105
106 { "label": "Tab", "x": 0, "y": 1, "w": 1.5 },
107 { "label": "Q", "x": 1.5, "y": 1 },
108 { "label": "W", "x": 2.5, "y": 1 },
109 { "label": "E", "x": 3.5, "y": 1 },
110 { "label": "R", "x": 4.5, "y": 1 },
111 { "label": "T", "x": 5.5, "y": 1 },
112 { "label": "Y", "x": 6.5, "y": 1 },
113 { "label": "U", "x": 7.5, "y": 1 },
114 { "label": "I", "x": 8.5, "y": 1 },
115 { "label": "O", "x": 9.5, "y": 1 },
116 { "label": "P", "x": 10.5, "y": 1 },
117 { "label": "[", "x": 11.5, "y": 1 },
118 { "label": "]", "x": 12.5, "y": 1 },
119 { "label": "\\", "x": 13.5, "y": 1, "w": 1.5 },
120
121 { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 },
122 { "label": "A", "x": 1.75, "y": 2 },
123 { "label": "S", "x": 2.75, "y": 2 },
124 { "label": "D", "x": 3.75, "y": 2 },
125 { "label": "F", "x": 4.75, "y": 2 },
126 { "label": "G", "x": 5.75, "y": 2 },
127 { "label": "H", "x": 6.75, "y": 2 },
128 { "label": "J", "x": 7.75, "y": 2 },
129 { "label": "K", "x": 8.75, "y": 2 },
130 { "label": "L", "x": 9.75, "y": 2 },
131 { "label": ";", "x": 10.75, "y": 2 },
132 { "label": "'", "x": 11.75, "y": 2 },
133 { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 },
134 { "label": "PageUp", "x": 15, "y": 2 },
135
136 { "label": "Shift", "x": 0, "y": 3, "w": 2.25 },
137 { "label": "Z", "x": 2.25, "y": 3 },
138 { "label": "X", "x": 3.25, "y": 3 },
139 { "label": "C", "x": 4.25, "y": 3 },
140 { "label": "V", "x": 5.25, "y": 3 },
141 { "label": "B", "x": 6.25, "y": 3 },
142 { "label": "N", "x": 7.25, "y": 3 },
143 { "label": "M", "x": 8.25, "y": 3 },
144 { "label": ",", "x": 9.25, "y": 3 },
145 { "label": ".", "x": 10.25, "y": 3 },
146 { "label": "/", "x": 11.25, "y": 3 },
147 { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 },
148 { "label": "\u2191", "x": 14, "y": 3 },
149 { "label": "End", "x": 15, "y": 3 },
150
151 { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 },
152 { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 },
153 { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 },
154 { "x": 3.75, "y": 4, "w": 6.25 },
155 { "label": "Alt", "x": 10, "y": 4, "w": 1.25 },
156 { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 },
157 { "label": "\u2190", "x": 13, "y": 4 },
158 { "label": "\u2193", "x": 14, "y": 4 },
159 { "label": "\u2192", "x": 15, "y": 4 }
160 ]
161 },
162 "LAYOUT_65_ansi_split_bs": {
163 "layout": [
164 { "label": "Esc", "x": 0, "y": 0 },
165 { "label": "1", "x": 1, "y": 0 },
166 { "label": "2", "x": 2, "y": 0 },
167 { "label": "3", "x": 3, "y": 0 },
168 { "label": "4", "x": 4, "y": 0 },
169 { "label": "5", "x": 5, "y": 0 },
170 { "label": "6", "x": 6, "y": 0 },
171 { "label": "7", "x": 7, "y": 0 },
172 { "label": "8", "x": 8, "y": 0 },
173 { "label": "9", "x": 9, "y": 0 },
174 { "label": "0", "x": 10, "y": 0 },
175 { "label": "-", "x": 11, "y": 0 },
176 { "label": "=", "x": 12, "y": 0 },
177 { "label": "Backspace", "x": 13, "y": 0 },
178 { "label": "Encode", "x": 15.5, "y": 0 },
179
180 { "label": "Tab", "x": 0, "y": 1, "w": 1.5 },
181 { "label": "Q", "x": 1.5, "y": 1 },
182 { "label": "W", "x": 2.5, "y": 1 },
183 { "label": "E", "x": 3.5, "y": 1 },
184 { "label": "R", "x": 4.5, "y": 1 },
185 { "label": "T", "x": 5.5, "y": 1 },
186 { "label": "Y", "x": 6.5, "y": 1 },
187 { "label": "U", "x": 7.5, "y": 1 },
188 { "label": "I", "x": 8.5, "y": 1 },
189 { "label": "O", "x": 9.5, "y": 1 },
190 { "label": "P", "x": 10.5, "y": 1 },
191 { "label": "[", "x": 11.5, "y": 1 },
192 { "label": "]", "x": 12.5, "y": 1 },
193 { "label": "\\", "x": 13.5, "y": 1, "w": 1.5 },
194
195 { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 },
196 { "label": "A", "x": 1.75, "y": 2 },
197 { "label": "S", "x": 2.75, "y": 2 },
198 { "label": "D", "x": 3.75, "y": 2 },
199 { "label": "F", "x": 4.75, "y": 2 },
200 { "label": "G", "x": 5.75, "y": 2 },
201 { "label": "H", "x": 6.75, "y": 2 },
202 { "label": "J", "x": 7.75, "y": 2 },
203 { "label": "K", "x": 8.75, "y": 2 },
204 { "label": "L", "x": 9.75, "y": 2 },
205 { "label": ";", "x": 10.75, "y": 2 },
206 { "label": "'", "x": 11.75, "y": 2 },
207 { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 },
208 { "label": "Backspace", "x": 14, "y": 0 },
209 { "label": "PageUp", "x": 15, "y": 2 },
210
211 { "label": "Shift", "x": 0, "y": 3, "w": 2.25 },
212 { "label": "Z", "x": 2.25, "y": 3 },
213 { "label": "X", "x": 3.25, "y": 3 },
214 { "label": "C", "x": 4.25, "y": 3 },
215 { "label": "V", "x": 5.25, "y": 3 },
216 { "label": "B", "x": 6.25, "y": 3 },
217 { "label": "N", "x": 7.25, "y": 3 },
218 { "label": "M", "x": 8.25, "y": 3 },
219 { "label": ",", "x": 9.25, "y": 3 },
220 { "label": ".", "x": 10.25, "y": 3 },
221 { "label": "/", "x": 11.25, "y": 3 },
222 { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 },
223 { "label": "\u2191", "x": 14, "y": 3 },
224 { "label": "End", "x": 15, "y": 3 },
225
226 { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 },
227 { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 },
228 { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 },
229 { "x": 3.75, "y": 4, "w": 6.25 },
230 { "label": "Alt", "x": 10, "y": 4, "w": 1.25 },
231 { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 },
232 { "label": "\u2190", "x": 13, "y": 4 },
233 { "label": "\u2193", "x": 14, "y": 4 },
234 { "label": "\u2192", "x": 15, "y": 4 }
235 ]
236 },
237 "LAYOUT_65_ansi_split_lshift": {
238 "layout": [
239 { "label": "Esc", "x": 0, "y": 0 },
240 { "label": "1", "x": 1, "y": 0 },
241 { "label": "2", "x": 2, "y": 0 },
242 { "label": "3", "x": 3, "y": 0 },
243 { "label": "4", "x": 4, "y": 0 },
244 { "label": "5", "x": 5, "y": 0 },
245 { "label": "6", "x": 6, "y": 0 },
246 { "label": "7", "x": 7, "y": 0 },
247 { "label": "8", "x": 8, "y": 0 },
248 { "label": "9", "x": 9, "y": 0 },
249 { "label": "0", "x": 10, "y": 0 },
250 { "label": "-", "x": 11, "y": 0 },
251 { "label": "=", "x": 12, "y": 0 },
252 { "label": "Backspace", "x": 13, "y": 0, "w": 2 },
253 { "label": "Encode", "x": 15.5, "y": 0 },
254
255 { "label": "Tab", "x": 0, "y": 1, "w": 1.5 },
256 { "label": "Q", "x": 1.5, "y": 1 },
257 { "label": "W", "x": 2.5, "y": 1 },
258 { "label": "E", "x": 3.5, "y": 1 },
259 { "label": "R", "x": 4.5, "y": 1 },
260 { "label": "T", "x": 5.5, "y": 1 },
261 { "label": "Y", "x": 6.5, "y": 1 },
262 { "label": "U", "x": 7.5, "y": 1 },
263 { "label": "I", "x": 8.5, "y": 1 },
264 { "label": "O", "x": 9.5, "y": 1 },
265 { "label": "P", "x": 10.5, "y": 1 },
266 { "label": "[", "x": 11.5, "y": 1 },
267 { "label": "]", "x": 12.5, "y": 1 },
268 { "label": "\\", "x": 13.5, "y": 1, "w": 1.5 },
269
270 { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 },
271 { "label": "A", "x": 1.75, "y": 2 },
272 { "label": "S", "x": 2.75, "y": 2 },
273 { "label": "D", "x": 3.75, "y": 2 },
274 { "label": "F", "x": 4.75, "y": 2 },
275 { "label": "G", "x": 5.75, "y": 2 },
276 { "label": "H", "x": 6.75, "y": 2 },
277 { "label": "J", "x": 7.75, "y": 2 },
278 { "label": "K", "x": 8.75, "y": 2 },
279 { "label": "L", "x": 9.75, "y": 2 },
280 { "label": ";", "x": 10.75, "y": 2 },
281 { "label": "'", "x": 11.75, "y": 2 },
282 { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 },
283 { "label": "PageUp", "x": 15, "y": 2 },
284
285 { "label": "Shift1", "x": 0, "y": 3, "w": 1.25 },
286 { "label": "Shift2", "x": 1.25, "y": 3 },
287 { "label": "Z", "x": 2.25, "y": 3 },
288 { "label": "X", "x": 3.25, "y": 3 },
289 { "label": "C", "x": 4.25, "y": 3 },
290 { "label": "V", "x": 5.25, "y": 3 },
291 { "label": "B", "x": 6.25, "y": 3 },
292 { "label": "N", "x": 7.25, "y": 3 },
293 { "label": "M", "x": 8.25, "y": 3 },
294 { "label": ",", "x": 9.25, "y": 3 },
295 { "label": ".", "x": 10.25, "y": 3 },
296 { "label": "/", "x": 11.25, "y": 3 },
297 { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 },
298 { "label": "\u2191", "x": 14, "y": 3 },
299 { "label": "End", "x": 15, "y": 3 },
300
301 { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 },
302 { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 },
303 { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 },
304 { "x": 3.75, "y": 4, "w": 6.25 },
305 { "label": "Alt", "x": 10, "y": 4, "w": 1.25 },
306 { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 },
307 { "label": "\u2190", "x": 13, "y": 4 },
308 { "label": "\u2193", "x": 14, "y": 4 },
309 { "label": "\u2192", "x": 15, "y": 4 }
310 ]
311 },
312 "LAYOUT_65_split_space": {
313 "layout": [
314 { "label": "Esc", "x": 0, "y": 0 },
315 { "label": "1", "x": 1, "y": 0 },
316 { "label": "2", "x": 2, "y": 0 },
317 { "label": "3", "x": 3, "y": 0 },
318 { "label": "4", "x": 4, "y": 0 },
319 { "label": "5", "x": 5, "y": 0 },
320 { "label": "6", "x": 6, "y": 0 },
321 { "label": "7", "x": 7, "y": 0 },
322 { "label": "8", "x": 8, "y": 0 },
323 { "label": "9", "x": 9, "y": 0 },
324 { "label": "0", "x": 10, "y": 0 },
325 { "label": "-", "x": 11, "y": 0 },
326 { "label": "=", "x": 12, "y": 0 },
327 { "label": "Backspace", "x": 13, "y": 0, "w": 2 },
328 { "label": "Encode", "x": 15.5, "y": 0 },
329
330 { "label": "Tab", "x": 0, "y": 1, "w": 1.5 },
331 { "label": "Q", "x": 1.5, "y": 1 },
332 { "label": "W", "x": 2.5, "y": 1 },
333 { "label": "E", "x": 3.5, "y": 1 },
334 { "label": "R", "x": 4.5, "y": 1 },
335 { "label": "T", "x": 5.5, "y": 1 },
336 { "label": "Y", "x": 6.5, "y": 1 },
337 { "label": "U", "x": 7.5, "y": 1 },
338 { "label": "I", "x": 8.5, "y": 1 },
339 { "label": "O", "x": 9.5, "y": 1 },
340 { "label": "P", "x": 10.5, "y": 1 },
341 { "label": "[", "x": 11.5, "y": 1 },
342 { "label": "]", "x": 12.5, "y": 1 },
343 { "label": "\\", "x": 13.5, "y": 1, "w": 1.5 },
344
345 { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 },
346 { "label": "A", "x": 1.75, "y": 2 },
347 { "label": "S", "x": 2.75, "y": 2 },
348 { "label": "D", "x": 3.75, "y": 2 },
349 { "label": "F", "x": 4.75, "y": 2 },
350 { "label": "G", "x": 5.75, "y": 2 },
351 { "label": "H", "x": 6.75, "y": 2 },
352 { "label": "J", "x": 7.75, "y": 2 },
353 { "label": "K", "x": 8.75, "y": 2 },
354 { "label": "L", "x": 9.75, "y": 2 },
355 { "label": ";", "x": 10.75, "y": 2 },
356 { "label": "'", "x": 11.75, "y": 2 },
357 { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 },
358 { "label": "PageUp", "x": 15, "y": 2 },
359
360 { "label": "Shift", "x": 0, "y": 3, "w": 2.25 },
361 { "label": "Z", "x": 2.25, "y": 3 },
362 { "label": "X", "x": 3.25, "y": 3 },
363 { "label": "C", "x": 4.25, "y": 3 },
364 { "label": "V", "x": 5.25, "y": 3 },
365 { "label": "B", "x": 6.25, "y": 3 },
366 { "label": "N", "x": 7.25, "y": 3 },
367 { "label": "M", "x": 8.25, "y": 3 },
368 { "label": ",", "x": 9.25, "y": 3 },
369 { "label": ".", "x": 10.25, "y": 3 },
370 { "label": "/", "x": 11.25, "y": 3 },
371 { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 },
372 { "label": "\u2191", "x": 14, "y": 3 },
373 { "label": "End", "x": 15, "y": 3 },
374
375 { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 },
376 { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 },
377 { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 },
378 { "x": 3.75, "y": 4, "w": 2.25 },
379 { "x": 6, "y": 4, "w": 1.25 },
380 { "x": 7.25, "y": 4, "w": 2.75 },
381 { "label": "Alt", "x": 10, "y": 4, "w": 1.25 },
382 { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 },
383 { "label": "\u2190", "x": 13, "y": 4 },
384 { "label": "\u2193", "x": 14, "y": 4 },
385 { "label": "\u2192", "x": 15, "y": 4 }
386 ]
387 }
388 }
389}
diff --git a/keyboards/wuque/serneity65/keymaps/65_ansi/keymap.c b/keyboards/wuque/serneity65/keymaps/65_ansi/keymap.c
new file mode 100644
index 000000000..3d2393e14
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/65_ansi/keymap.c
@@ -0,0 +1,34 @@
1/* Copyright 2021 wuque
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
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT_65_ansi(
21 KC_ESC, 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_MUTE,
22 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,
23 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_PGUP,
24 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,
25 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
26 ),
27 [1] = LAYOUT_65_ansi(
28 KC_GRV, 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_MPLY,
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______
33 ),
34};
diff --git a/keyboards/wuque/serneity65/keymaps/65_ansi/readme.md b/keyboards/wuque/serneity65/keymaps/65_ansi/readme.md
new file mode 100644
index 000000000..42b2423f5
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/65_ansi/readme.md
@@ -0,0 +1 @@
# The 65_ansi keymap for serneity65
diff --git a/keyboards/wuque/serneity65/keymaps/65_split_bs/keymap.c b/keyboards/wuque/serneity65/keymaps/65_split_bs/keymap.c
new file mode 100644
index 000000000..e20457431
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/65_split_bs/keymap.c
@@ -0,0 +1,35 @@
1/* Copyright 2021 wuque
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
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT_65_ansi_split_bs(
21 KC_ESC, 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_MUTE,
22 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,
23 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_BSPC, KC_PGUP,
24 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,
25 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
26 ),
27 [1] = LAYOUT_65_ansi_split_bs(
28 KC_GRV, 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_MPLY,
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______
33 ),
34
35};
diff --git a/keyboards/wuque/serneity65/keymaps/65_split_bs/readme.md b/keyboards/wuque/serneity65/keymaps/65_split_bs/readme.md
new file mode 100644
index 000000000..121b75811
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/65_split_bs/readme.md
@@ -0,0 +1 @@
# The 65_split_bs keymap for serneity65
diff --git a/keyboards/wuque/serneity65/keymaps/65_split_lshift/keymap.c b/keyboards/wuque/serneity65/keymaps/65_split_lshift/keymap.c
new file mode 100644
index 000000000..ef99b56fc
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/65_split_lshift/keymap.c
@@ -0,0 +1,34 @@
1/* Copyright 2021 wuque
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
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT_65_ansi_split_lshift(
21 KC_ESC, 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_MUTE,
22 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,
23 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_PGUP,
24 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,
25 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
26 ),
27 [1] = LAYOUT_65_ansi_split_lshift(
28 KC_GRV, 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_MPLY,
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______
33 ),
34};
diff --git a/keyboards/wuque/serneity65/keymaps/65_split_lshift/readme.md b/keyboards/wuque/serneity65/keymaps/65_split_lshift/readme.md
new file mode 100644
index 000000000..f5895d138
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/65_split_lshift/readme.md
@@ -0,0 +1 @@
# The 65_split_lshift keymap for serneity65
diff --git a/keyboards/wuque/serneity65/keymaps/65_split_space/keymap.c b/keyboards/wuque/serneity65/keymaps/65_split_space/keymap.c
new file mode 100644
index 000000000..fbbfd244c
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/65_split_space/keymap.c
@@ -0,0 +1,34 @@
1/* Copyright 2021 wuque
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
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT_65_split_space(
21 KC_ESC, 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_MUTE,
22 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,
23 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_PGUP,
24 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,
25 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
26 ),
27 [1] = LAYOUT_65_split_space(
28 KC_GRV, 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_MPLY,
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
32 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
33 ),
34};
diff --git a/keyboards/wuque/serneity65/keymaps/65_split_space/readme.md b/keyboards/wuque/serneity65/keymaps/65_split_space/readme.md
new file mode 100644
index 000000000..2f7650319
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/65_split_space/readme.md
@@ -0,0 +1 @@
# The 65_split_space keymap for serneity65
diff --git a/keyboards/wuque/serneity65/keymaps/default/keymap.c b/keyboards/wuque/serneity65/keymaps/default/keymap.c
new file mode 100644
index 000000000..086919194
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/default/keymap.c
@@ -0,0 +1,34 @@
1/* Copyright 2021 wuque
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
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT_all(
21 KC_ESC, 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_MUTE,
22 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,
23 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_BSPC, KC_PGUP,
24 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,
25 KC_LCTL, KC_LGUI, KC_LALT, KC_VOLD, KC_SPC, KC_VOLU, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
26 ),
27 [1] = LAYOUT_all(
28 KC_GRV, 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_MPLY,
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
32 _______, _______, _______, KC_MPRV, _______, KC_MNXT, _______, _______, _______, _______, _______, _______, _______
33 ),
34};
diff --git a/keyboards/wuque/serneity65/keymaps/default/readme.md b/keyboards/wuque/serneity65/keymaps/default/readme.md
new file mode 100644
index 000000000..83e06cf6e
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for serneity65
diff --git a/keyboards/wuque/serneity65/keymaps/via/keymap.c b/keyboards/wuque/serneity65/keymaps/via/keymap.c
new file mode 100644
index 000000000..235629f5f
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/via/keymap.c
@@ -0,0 +1,48 @@
1/* Copyright 2021 wuque
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
19const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
20 [0] = LAYOUT_all(
21 KC_ESC, 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_MUTE,
22 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,
23 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_BSPC, KC_PGUP,
24 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,
25 KC_LCTL, KC_LGUI, KC_LALT, KC_VOLD, KC_SPC, KC_VOLU, KC_SPC, KC_SPC, KC_RALT, MO(1), KC_LEFT, KC_DOWN, KC_RGHT
26 ),
27 [1] = LAYOUT_all(
28 KC_GRV, 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_MPLY,
29 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
30 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
31 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, RESET,
32 _______, _______, _______, KC_MPRV, _______, KC_MNXT, _______, _______, _______, _______, _______, _______, _______
33 ),
34 [2] = LAYOUT_all(
35 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
36 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
37 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
38 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
39 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
40 ),
41 [3] = LAYOUT_all(
42 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
43 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
44 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
45 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
46 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
47 ),
48};
diff --git a/keyboards/wuque/serneity65/keymaps/via/readme.md b/keyboards/wuque/serneity65/keymaps/via/readme.md
new file mode 100644
index 000000000..87ee7a006
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/via/readme.md
@@ -0,0 +1 @@
# The via keymap for serneity65
diff --git a/keyboards/wuque/serneity65/keymaps/via/rules.mk b/keyboards/wuque/serneity65/keymaps/via/rules.mk
new file mode 100644
index 000000000..43061db1d
--- /dev/null
+++ b/keyboards/wuque/serneity65/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/wuque/serneity65/readme.md b/keyboards/wuque/serneity65/readme.md
new file mode 100644
index 000000000..11d18bacb
--- /dev/null
+++ b/keyboards/wuque/serneity65/readme.md
@@ -0,0 +1,24 @@
1# serneity65
2
3More Info at [serneity65](https://shop.wuquestudio.com/)
4
5* Keyboard Maintainer: [spbgzh](https://github.com/spbgzh)
6* Hardware Supported: zoom65 Standard
7* Hardware Availability: [serneity65](https://shop.wuquestudio.com/)
8
9Make example for this keyboard (after setting up your build environment):
10
11
12 make wuque/serneity65:default
13
14Flashing example for this keyboard:
15
16 make wuque/serneity65:default:flash
17
18To reset the board into bootloader mode, do one of the following:
19
20* Tap the Reset switch mounted on the PCB
21* In the case of the default keymap, use the key combination Fn + End
22* Hold the Esc key while connecting the USB cable (also erases persistent settings)
23
24See 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/wuque/serneity65/rules.mk b/keyboards/wuque/serneity65/rules.mk
new file mode 100644
index 000000000..e32f7215d
--- /dev/null
+++ b/keyboards/wuque/serneity65/rules.mk
@@ -0,0 +1,25 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = yes # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_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
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes # Enable Encoder
24
25LAYOUT = 65_ansi
diff --git a/keyboards/wuque/serneity65/serneity65.c b/keyboards/wuque/serneity65/serneity65.c
new file mode 100644
index 000000000..6a7c64157
--- /dev/null
+++ b/keyboards/wuque/serneity65/serneity65.c
@@ -0,0 +1,71 @@
1/* Copyright 2021 wuque
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 "serneity65.h"
18
19#ifdef VIA_ENABLE
20static uint8_t encoder_state[ENCODERS] = {0};
21static keypos_t encoder_cw[ENCODERS] = ENCODERS_CW_KEY;
22static keypos_t encoder_ccw[ENCODERS] = ENCODERS_CCW_KEY;
23
24void encoder_action_unregister(void)
25{
26 for (int index = 0; index < ENCODERS; ++index)
27 {
28 if (encoder_state[index])
29 {
30 keyevent_t encoder_event = (keyevent_t){
31 .key = encoder_state[index] >> 1 ? encoder_cw[index] : encoder_ccw[index],
32 .pressed = false,
33 .time = (timer_read() | 1)};
34 encoder_state[index] = 0;
35 action_exec(encoder_event);
36 }
37 }
38}
39void encoder_action_register(uint8_t index, bool clockwise)
40{
41 keyevent_t encoder_event = (keyevent_t){
42 .key = clockwise ? encoder_cw[index] : encoder_ccw[index],
43 .pressed = true,
44 .time = (timer_read() | 1)};
45 encoder_state[index] = (clockwise ^ 1) | (clockwise << 1);
46 action_exec(encoder_event);
47}
48
49void matrix_scan_kb(void)
50{
51 encoder_action_unregister();
52 matrix_scan_user();
53}
54
55bool encoder_update_kb(uint8_t index, bool clockwise)
56{
57 encoder_action_register(index, clockwise);
58 return true;
59};
60#else
61bool encoder_update_user(uint8_t index, bool clockwise) {
62 if (index == 0) { /* First encoder */
63 if (clockwise) {
64 tap_code(KC_PGDN);
65 } else {
66 tap_code(KC_PGUP);
67 }
68 }
69 return true;
70}
71#endif
diff --git a/keyboards/wuque/serneity65/serneity65.h b/keyboards/wuque/serneity65/serneity65.h
new file mode 100644
index 000000000..ee7dabd8f
--- /dev/null
+++ b/keyboards/wuque/serneity65/serneity65.h
@@ -0,0 +1,159 @@
1/* Copyright 2021 wuque
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
22/* Standard Arrangement
23 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
24 * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │2d │ ◯
25 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
26 * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │
27 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┐
28 * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2e │
29 * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
30 * │30 │31 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │
31 * ├────┼───┴┬──┴─┬─┴───┴──┬┴───┼───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
32 * │40 │41 │42 │44 │46 │48 │4a │4b │ │4c │4d │4e │
33 * └────┴────┴────┴────────┴────┴──────────┴────┴────┘ └───┴───┴───┘
34 */
35#define LAYOUT_all( \
36 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \
37 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
38 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \
39 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
40 K40, K41, K42, K43, K44, K45, K46, K48, K4A, K4B, K4C, K4D, K4E \
41) { \
42 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
43 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO }, \
44 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \
45 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
46 { K40, K41, K42, K43, K44, K45, K46, KC_NO, K48, KC_NO, K4A, K4B, K4C, K4D, K4E }, \
47}
48
49
50/* LAYOUT_65_ansi
51 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
52 * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │ ◯
53 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
54 * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │
55 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┐
56 * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2e │
57 * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
58 * │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │
59 * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
60 * │40 │41 │42 │46 │4a │4b │ │4c │4d │4e │
61 * └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
62 */
63#define LAYOUT_65_ansi( \
64 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \
65 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
66 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \
67 K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
68 K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E \
69) { \
70 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
71 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO }, \
72 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \
73 { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
74 { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E }, \
75}
76
77
78/* LAYOUT_65_ansi_split_bs
79 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐
80 * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │2d │ ◯
81 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤
82 * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │
83 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┐
84 * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2e │
85 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
86 * │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │
87 * ├────┬───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
88 * │40 │41 │42 │46 │4a │4b │ │4c │4d │4e │
89 * └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
90 */
91#define LAYOUT_65_ansi_split_bs( \
92 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \
93 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
94 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \
95 K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
96 K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E \
97) { \
98 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
99 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO }, \
100 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \
101 { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
102 { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E }, \
103}
104
105
106/* LAYOUT_65_ansi_split_lshift
107 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
108 * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │ ◯
109 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
110 * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │
111 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┐
112 * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2e │
113 * ├────┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
114 * │30 │31 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │
115 * ├────┼───┴┬──┴─┬─┴───┴───┴───┴───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
116 * │40 │41 │42 │46 │4a │4b │ │4c │4d │4e │
117 * └────┴────┴────┴────────────────────────┴────┴────┘ └───┴───┴───┘
118 */
119#define LAYOUT_65_ansi_split_lshift( \
120 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \
121 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
122 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \
123 K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
124 K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E \
125) { \
126 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
127 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO }, \
128 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \
129 { K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
130 { K40, K41, K42, KC_NO, KC_NO, KC_NO, K46, KC_NO, KC_NO, KC_NO, K4A, K4B, K4C, K4D, K4E }, \
131}
132
133
134/* LAYOUT_65_split_space
135 * ┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───────┐
136 * │00 │01 │02 │03 │04 │05 │06 │07 │08 │09 │0a │0b │0c │0d │ ◯
137 * ├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─────┤
138 * │10 │11 │12 │13 │14 │15 │16 │17 │18 │19 │1a │1b │1c │1d │
139 * ├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┼───┐
140 * │20 │21 │22 │23 │24 │25 │26 │27 │28 │29 │2a │2b │2c │2e │
141 * ├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┼───┤
142 * │30 │32 │33 │34 │35 │36 │37 │38 │39 │3a │3b │3c │3d │3e │
143 * ├────┬───┴┬──┴─┬─┴───┴──┬┴───┼───┴───┴──┬┴───┼───┴┬─┬───┼───┼───┤
144 * │40 │41 │42 │44 │46 │48 │4a │4b │ │4c │4d │4e │
145 * └────┴────┴────┴────────┴────┴──────────┴────┴────┘ └───┴───┴───┘
146 */
147#define LAYOUT_65_split_space( \
148 K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \
149 K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
150 K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2E, \
151 K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \
152 K40, K41, K42, K44, K46, K48, K4A, K4B, K4C, K4D, K4E \
153) { \
154 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
155 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, KC_NO }, \
156 { K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, KC_NO, K2E }, \
157 { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
158 { K40, K41, K42, KC_NO, K44, KC_NO, K46, KC_NO, K48, KC_NO, K4A, K4B, K4C, K4D, K4E }, \
159}