aboutsummaryrefslogtreecommitdiff
path: root/keyboards/moon
diff options
context:
space:
mode:
authorMathias Andersson <wraul@dbox.se>2019-05-28 19:57:17 +0200
committerDrashna Jaelre <drashna@live.com>2019-05-28 10:57:17 -0700
commit7a7e3848c75536463fd5fea44620c3eb8085cc91 (patch)
tree8287d6f7111177f7641d6ac8e5ee4b24d8feccb5 /keyboards/moon
parentb0532c433edbe9419048882c1f14e0b54cd4e2b0 (diff)
downloadqmk_firmware-7a7e3848c75536463fd5fea44620c3eb8085cc91.tar.gz
qmk_firmware-7a7e3848c75536463fd5fea44620c3eb8085cc91.zip
[Keyboard] Add keyboard Moon (#5976)
Diffstat (limited to 'keyboards/moon')
-rw-r--r--keyboards/moon/config.h44
-rw-r--r--keyboards/moon/info.json467
-rw-r--r--keyboards/moon/keymaps/default/config.h3
-rw-r--r--keyboards/moon/keymaps/default/keymap.c13
-rw-r--r--keyboards/moon/keymaps/default/readme.md1
-rw-r--r--keyboards/moon/keymaps/default_tkl_ansi/config.h3
-rw-r--r--keyboards/moon/keymaps/default_tkl_ansi/keymap.c13
-rw-r--r--keyboards/moon/keymaps/default_tkl_ansi/readme.md1
-rw-r--r--keyboards/moon/keymaps/default_tkl_ansi_wkl/config.h3
-rw-r--r--keyboards/moon/keymaps/default_tkl_ansi_wkl/keymap.c13
-rw-r--r--keyboards/moon/keymaps/default_tkl_ansi_wkl/readme.md1
-rw-r--r--keyboards/moon/keymaps/default_tkl_iso/config.h3
-rw-r--r--keyboards/moon/keymaps/default_tkl_iso/keymap.c13
-rw-r--r--keyboards/moon/keymaps/default_tkl_iso/readme.md1
-rw-r--r--keyboards/moon/keymaps/default_tkl_iso_wkl/config.h3
-rw-r--r--keyboards/moon/keymaps/default_tkl_iso_wkl/keymap.c13
-rw-r--r--keyboards/moon/keymaps/default_tkl_iso_wkl/readme.md1
-rw-r--r--keyboards/moon/matrix.c218
-rw-r--r--keyboards/moon/moon.c69
-rw-r--r--keyboards/moon/moon.h121
-rw-r--r--keyboards/moon/pca9555.c78
-rw-r--r--keyboards/moon/pca9555.h55
-rw-r--r--keyboards/moon/readme.md17
-rw-r--r--keyboards/moon/rules.mk77
24 files changed, 1231 insertions, 0 deletions
diff --git a/keyboards/moon/config.h b/keyboards/moon/config.h
new file mode 100644
index 000000000..a02cfdba1
--- /dev/null
+++ b/keyboards/moon/config.h
@@ -0,0 +1,44 @@
1/*
2Copyright 2019 Mathias Andersson <wraul@dbox.se>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0xFEED
24#define PRODUCT_ID 0xFCB8
25#define DEVICE_VER 0x0001
26#define MANUFACTURER EVE
27#define PRODUCT Moon
28#define DESCRIPTION A tenkeyless keyboard with astonishing curves
29
30/* key matrix size */
31#define MATRIX_ROWS 8
32#define MATRIX_COLS 11
33
34/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
35#define DEBOUNCE 5
36
37/* Backlight */
38#define BACKLIGHT_PIN C6
39#define BACKLIGHT_LEVELS 3
40
41/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
42#define LOCKING_SUPPORT_ENABLE
43/* Locking resynchronize hack */
44#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/moon/info.json b/keyboards/moon/info.json
new file mode 100644
index 000000000..d7182ee36
--- /dev/null
+++ b/keyboards/moon/info.json
@@ -0,0 +1,467 @@
1{
2 "keyboard_name": "Moon",
3 "url": "https://geekhack.org/index.php?topic=90379.0",
4 "maintainer": "qmk",
5 "width": 18.25,
6 "height": 6.5,
7 "layouts": {
8 "LAYOUT_all": {
9 "key_count": 88,
10 "layout": [
11 {"label":"Esc", "x":0, "y":0},
12 {"label":"F1", "x":2, "y":0},
13 {"label":"F2", "x":3, "y":0},
14 {"label":"F3", "x":4, "y":0},
15 {"label":"F4", "x":5, "y":0},
16 {"label":"F5", "x":6.5, "y":0},
17 {"label":"F6", "x":7.5, "y":0},
18 {"label":"F7", "x":8.5, "y":0},
19 {"label":"F8", "x":9.5, "y":0},
20 {"label":"F9", "x":11, "y":0},
21 {"label":"F10", "x":12, "y":0},
22 {"label":"F11", "x":13, "y":0},
23 {"label":"F12", "x":14, "y":0},
24 {"label":"PrtSc", "x":15.25, "y":0},
25 {"label":"Scroll Lock", "x":16.25, "y":0},
26 {"label":"Pause", "x":17.25, "y":0},
27 {"label":"~", "x":0, "y":1.5},
28 {"label":"!", "x":1, "y":1.5},
29 {"label":"@", "x":2, "y":1.5},
30 {"label":"#", "x":3, "y":1.5},
31 {"label":"$", "x":4, "y":1.5},
32 {"label":"%", "x":5, "y":1.5},
33 {"label":"^", "x":6, "y":1.5},
34 {"label":"&", "x":7, "y":1.5},
35 {"label":"*", "x":8, "y":1.5},
36 {"label":"(", "x":9, "y":1.5},
37 {"label":")", "x":10, "y":1.5},
38 {"label":"_", "x":11, "y":1.5},
39 {"label":"+", "x":12, "y":1.5},
40 {"label":"Backspace", "x":13, "y":1.5, "w":2},
41 {"label":"Insert", "x":15.25, "y":1.5},
42 {"label":"Home", "x":16.25, "y":1.5},
43 {"label":"PgUp", "x":17.25, "y":1.5},
44 {"label":"Tab", "x":0, "y":2.5, "w":1.5},
45 {"label":"Q", "x":1.5, "y":2.5},
46 {"label":"W", "x":2.5, "y":2.5},
47 {"label":"E", "x":3.5, "y":2.5},
48 {"label":"R", "x":4.5, "y":2.5},
49 {"label":"T", "x":5.5, "y":2.5},
50 {"label":"Y", "x":6.5, "y":2.5},
51 {"label":"U", "x":7.5, "y":2.5},
52 {"label":"I", "x":8.5, "y":2.5},
53 {"label":"O", "x":9.5, "y":2.5},
54 {"label":"P", "x":10.5, "y":2.5},
55 {"label":"{", "x":11.5, "y":2.5},
56 {"label":"}", "x":12.5, "y":2.5},
57 {"label":"|", "x":13.5, "y":2.5, "w":1.5},
58 {"label":"Delete", "x":15.25, "y":2.5},
59 {"label":"End", "x":16.25, "y":2.5},
60 {"label":"PgDn", "x":17.25, "y":2.5},
61 {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
62 {"label":"A", "x":1.75, "y":3.5},
63 {"label":"S", "x":2.75, "y":3.5},
64 {"label":"D", "x":3.75, "y":3.5},
65 {"label":"F", "x":4.75, "y":3.5},
66 {"label":"G", "x":5.75, "y":3.5},
67 {"label":"H", "x":6.75, "y":3.5},
68 {"label":"J", "x":7.75, "y":3.5},
69 {"label":"K", "x":8.75, "y":3.5},
70 {"label":"L", "x":9.75, "y":3.5},
71 {"label":":", "x":10.75, "y":3.5},
72 {"label":"\"", "x":11.75, "y":3.5},
73 {"label":"Enter", "x":12.75, "y":3.5, "w":2.25},
74 {"label":"Shift", "x":0, "y":4.5, "w":1.25},
75 {"label":"|", "x":1.25, "y":4.5},
76 {"label":"Z", "x":2.25, "y":4.5},
77 {"label":"X", "x":3.25, "y":4.5},
78 {"label":"C", "x":4.25, "y":4.5},
79 {"label":"V", "x":5.25, "y":4.5},
80 {"label":"B", "x":6.25, "y":4.5},
81 {"label":"N", "x":7.25, "y":4.5},
82 {"label":"M", "x":8.25, "y":4.5},
83 {"label":"<", "x":9.25, "y":4.5},
84 {"label":">", "x":10.25, "y":4.5},
85 {"label":"?", "x":11.25, "y":4.5},
86 {"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
87 {"label":"Up", "x":16.25, "y":4.5},
88 {"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
89 {"label":"Win", "x":1.25, "y":5.5, "w":1.25},
90 {"label":"Alt", "x":2.5, "y":5.5, "w":1.25},
91 {"label":"Space", "x":3.75, "y":5.5, "w":6.25},
92 {"label":"Alt", "x":10, "y":5.5, "w":1.25},
93 {"label":"Win", "x":11.25, "y":5.5, "w":1.25},
94 {"label":"Menu", "x":12.5, "y":5.5, "w":1.25},
95 {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25},
96 {"label":"Left", "x":15.25, "y":5.5},
97 {"label":"Down", "x":16.25, "y":5.5},
98 {"label":"Right", "x":17.25, "y":5.5}
99 ]
100 },
101 "LAYOUT_tkl_ansi": {
102 "key_count": 87,
103 "layout": [
104 {"label":"Esc", "x":0, "y":0},
105 {"label":"F1", "x":2, "y":0},
106 {"label":"F2", "x":3, "y":0},
107 {"label":"F3", "x":4, "y":0},
108 {"label":"F4", "x":5, "y":0},
109 {"label":"F5", "x":6.5, "y":0},
110 {"label":"F6", "x":7.5, "y":0},
111 {"label":"F7", "x":8.5, "y":0},
112 {"label":"F8", "x":9.5, "y":0},
113 {"label":"F9", "x":11, "y":0},
114 {"label":"F10", "x":12, "y":0},
115 {"label":"F11", "x":13, "y":0},
116 {"label":"F12", "x":14, "y":0},
117 {"label":"PrtSc", "x":15.25, "y":0},
118 {"label":"Scroll Lock", "x":16.25, "y":0},
119 {"label":"Pause", "x":17.25, "y":0},
120 {"label":"~", "x":0, "y":1.5},
121 {"label":"!", "x":1, "y":1.5},
122 {"label":"@", "x":2, "y":1.5},
123 {"label":"#", "x":3, "y":1.5},
124 {"label":"$", "x":4, "y":1.5},
125 {"label":"%", "x":5, "y":1.5},
126 {"label":"^", "x":6, "y":1.5},
127 {"label":"&", "x":7, "y":1.5},
128 {"label":"*", "x":8, "y":1.5},
129 {"label":"(", "x":9, "y":1.5},
130 {"label":")", "x":10, "y":1.5},
131 {"label":"_", "x":11, "y":1.5},
132 {"label":"+", "x":12, "y":1.5},
133 {"label":"Backspace", "x":13, "y":1.5, "w":2},
134 {"label":"Insert", "x":15.25, "y":1.5},
135 {"label":"Home", "x":16.25, "y":1.5},
136 {"label":"PgUp", "x":17.25, "y":1.5},
137 {"label":"Tab", "x":0, "y":2.5, "w":1.5},
138 {"label":"Q", "x":1.5, "y":2.5},
139 {"label":"W", "x":2.5, "y":2.5},
140 {"label":"E", "x":3.5, "y":2.5},
141 {"label":"R", "x":4.5, "y":2.5},
142 {"label":"T", "x":5.5, "y":2.5},
143 {"label":"Y", "x":6.5, "y":2.5},
144 {"label":"U", "x":7.5, "y":2.5},
145 {"label":"I", "x":8.5, "y":2.5},
146 {"label":"O", "x":9.5, "y":2.5},
147 {"label":"P", "x":10.5, "y":2.5},
148 {"label":"{", "x":11.5, "y":2.5},
149 {"label":"}", "x":12.5, "y":2.5},
150 {"label":"|", "x":13.5, "y":2.5, "w":1.5},
151 {"label":"Delete", "x":15.25, "y":2.5},
152 {"label":"End", "x":16.25, "y":2.5},
153 {"label":"PgDn", "x":17.25, "y":2.5},
154 {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
155 {"label":"A", "x":1.75, "y":3.5},
156 {"label":"S", "x":2.75, "y":3.5},
157 {"label":"D", "x":3.75, "y":3.5},
158 {"label":"F", "x":4.75, "y":3.5},
159 {"label":"G", "x":5.75, "y":3.5},
160 {"label":"H", "x":6.75, "y":3.5},
161 {"label":"J", "x":7.75, "y":3.5},
162 {"label":"K", "x":8.75, "y":3.5},
163 {"label":"L", "x":9.75, "y":3.5},
164 {"label":":", "x":10.75, "y":3.5},
165 {"label":"\"", "x":11.75, "y":3.5},
166 {"label":"Enter", "x":12.75, "y":3.5, "w":2.25},
167 {"label":"Shift", "x":0, "y":4.5, "w":2.25},
168 {"label":"Z", "x":2.25, "y":4.5},
169 {"label":"X", "x":3.25, "y":4.5},
170 {"label":"C", "x":4.25, "y":4.5},
171 {"label":"V", "x":5.25, "y":4.5},
172 {"label":"B", "x":6.25, "y":4.5},
173 {"label":"N", "x":7.25, "y":4.5},
174 {"label":"M", "x":8.25, "y":4.5},
175 {"label":"<", "x":9.25, "y":4.5},
176 {"label":">", "x":10.25, "y":4.5},
177 {"label":"?", "x":11.25, "y":4.5},
178 {"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
179 {"label":"Up", "x":16.25, "y":4.5},
180 {"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
181 {"label":"Win", "x":1.25, "y":5.5, "w":1.25},
182 {"label":"Alt", "x":2.5, "y":5.5, "w":1.25},
183 {"label":"Space", "x":3.75, "y":5.5, "w":6.25},
184 {"label":"Alt", "x":10, "y":5.5, "w":1.25},
185 {"label":"Win", "x":11.25, "y":5.5, "w":1.25},
186 {"label":"Menu", "x":12.5, "y":5.5, "w":1.25},
187 {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25},
188 {"label":"Left", "x":15.25, "y":5.5},
189 {"label":"Down", "x":16.25, "y":5.5},
190 {"label":"Right", "x":17.25, "y":5.5}
191 ]
192 },
193 "LAYOUT_tkl_ansi_wkl": {
194 "key_count": 84,
195 "layout": [
196 {"label":"Esc", "x":0, "y":0},
197 {"label":"F1", "x":2, "y":0},
198 {"label":"F2", "x":3, "y":0},
199 {"label":"F3", "x":4, "y":0},
200 {"label":"F4", "x":5, "y":0},
201 {"label":"F5", "x":6.5, "y":0},
202 {"label":"F6", "x":7.5, "y":0},
203 {"label":"F7", "x":8.5, "y":0},
204 {"label":"F8", "x":9.5, "y":0},
205 {"label":"F9", "x":11, "y":0},
206 {"label":"F10", "x":12, "y":0},
207 {"label":"F11", "x":13, "y":0},
208 {"label":"F12", "x":14, "y":0},
209 {"label":"PrtSc", "x":15.25, "y":0},
210 {"label":"Scroll Lock", "x":16.25, "y":0},
211 {"label":"Pause", "x":17.25, "y":0},
212 {"label":"~", "x":0, "y":1.5},
213 {"label":"!", "x":1, "y":1.5},
214 {"label":"@", "x":2, "y":1.5},
215 {"label":"#", "x":3, "y":1.5},
216 {"label":"$", "x":4, "y":1.5},
217 {"label":"%", "x":5, "y":1.5},
218 {"label":"^", "x":6, "y":1.5},
219 {"label":"&", "x":7, "y":1.5},
220 {"label":"*", "x":8, "y":1.5},
221 {"label":"(", "x":9, "y":1.5},
222 {"label":")", "x":10, "y":1.5},
223 {"label":"_", "x":11, "y":1.5},
224 {"label":"+", "x":12, "y":1.5},
225 {"label":"Backspace", "x":13, "y":1.5, "w":2},
226 {"label":"Insert", "x":15.25, "y":1.5},
227 {"label":"Home", "x":16.25, "y":1.5},
228 {"label":"PgUp", "x":17.25, "y":1.5},
229 {"label":"Tab", "x":0, "y":2.5, "w":1.5},
230 {"label":"Q", "x":1.5, "y":2.5},
231 {"label":"W", "x":2.5, "y":2.5},
232 {"label":"E", "x":3.5, "y":2.5},
233 {"label":"R", "x":4.5, "y":2.5},
234 {"label":"T", "x":5.5, "y":2.5},
235 {"label":"Y", "x":6.5, "y":2.5},
236 {"label":"U", "x":7.5, "y":2.5},
237 {"label":"I", "x":8.5, "y":2.5},
238 {"label":"O", "x":9.5, "y":2.5},
239 {"label":"P", "x":10.5, "y":2.5},
240 {"label":"{", "x":11.5, "y":2.5},
241 {"label":"}", "x":12.5, "y":2.5},
242 {"label":"|", "x":13.5, "y":2.5, "w":1.5},
243 {"label":"Delete", "x":15.25, "y":2.5},
244 {"label":"End", "x":16.25, "y":2.5},
245 {"label":"PgDn", "x":17.25, "y":2.5},
246 {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
247 {"label":"A", "x":1.75, "y":3.5},
248 {"label":"S", "x":2.75, "y":3.5},
249 {"label":"D", "x":3.75, "y":3.5},
250 {"label":"F", "x":4.75, "y":3.5},
251 {"label":"G", "x":5.75, "y":3.5},
252 {"label":"H", "x":6.75, "y":3.5},
253 {"label":"J", "x":7.75, "y":3.5},
254 {"label":"K", "x":8.75, "y":3.5},
255 {"label":"L", "x":9.75, "y":3.5},
256 {"label":":", "x":10.75, "y":3.5},
257 {"label":"\"", "x":11.75, "y":3.5},
258 {"label":"Enter", "x":12.75, "y":3.5, "w":2.25},
259 {"label":"Shift", "x":0, "y":4.5, "w":2.25},
260 {"label":"Z", "x":2.25, "y":4.5},
261 {"label":"X", "x":3.25, "y":4.5},
262 {"label":"C", "x":4.25, "y":4.5},
263 {"label":"V", "x":5.25, "y":4.5},
264 {"label":"B", "x":6.25, "y":4.5},
265 {"label":"N", "x":7.25, "y":4.5},
266 {"label":"M", "x":8.25, "y":4.5},
267 {"label":"<", "x":9.25, "y":4.5},
268 {"label":">", "x":10.25, "y":4.5},
269 {"label":"?", "x":11.25, "y":4.5},
270 {"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
271 {"label":"Up", "x":16.25, "y":4.5},
272 {"label":"Ctrl", "x":0, "y":5.5, "w":1.5},
273 {"label":"Alt", "x":2.5, "y":5.5, "w":1.5},
274 {"label":"Space", "x":4, "y":5.5, "w":7},
275 {"label":"Alt", "x":11, "y":5.5, "w":1.5},
276 {"label":"Ctrl", "x":13.5, "y":5.5, "w":1.5},
277 {"label":"Left", "x":15.25, "y":5.5},
278 {"label":"Down", "x":16.25, "y":5.5},
279 {"label":"Right", "x":17.25, "y":5.5}
280 ]
281 },
282 "LAYOUT_tkl_iso": {
283 "key_count": 88,
284 "layout": [
285 {"label":"Esc", "x":0, "y":0},
286 {"label":"F1", "x":2, "y":0},
287 {"label":"F2", "x":3, "y":0},
288 {"label":"F3", "x":4, "y":0},
289 {"label":"F4", "x":5, "y":0},
290 {"label":"F5", "x":6.5, "y":0},
291 {"label":"F6", "x":7.5, "y":0},
292 {"label":"F7", "x":8.5, "y":0},
293 {"label":"F8", "x":9.5, "y":0},
294 {"label":"F9", "x":11, "y":0},
295 {"label":"F10", "x":12, "y":0},
296 {"label":"F11", "x":13, "y":0},
297 {"label":"F12", "x":14, "y":0},
298 {"label":"PrtSc", "x":15.25, "y":0},
299 {"label":"Scroll Lock", "x":16.25, "y":0},
300 {"label":"Pause", "x":17.25, "y":0},
301 {"label":"\u00ac", "x":0, "y":1.5},
302 {"label":"!", "x":1, "y":1.5},
303 {"label":"\"", "x":2, "y":1.5},
304 {"label":"\u00a3", "x":3, "y":1.5},
305 {"label":"$", "x":4, "y":1.5},
306 {"label":"%", "x":5, "y":1.5},
307 {"label":"^", "x":6, "y":1.5},
308 {"label":"&", "x":7, "y":1.5},
309 {"label":"*", "x":8, "y":1.5},
310 {"label":"(", "x":9, "y":1.5},
311 {"label":")", "x":10, "y":1.5},
312 {"label":"_", "x":11, "y":1.5},
313 {"label":"+", "x":12, "y":1.5},
314 {"label":"Backspace", "x":13, "y":1.5, "w":2},
315 {"label":"Insert", "x":15.25, "y":1.5},
316 {"label":"Home", "x":16.25, "y":1.5},
317 {"label":"PgUp", "x":17.25, "y":1.5},
318 {"label":"Tab", "x":0, "y":2.5, "w":1.5},
319 {"label":"Q", "x":1.5, "y":2.5},
320 {"label":"W", "x":2.5, "y":2.5},
321 {"label":"E", "x":3.5, "y":2.5},
322 {"label":"R", "x":4.5, "y":2.5},
323 {"label":"T", "x":5.5, "y":2.5},
324 {"label":"Y", "x":6.5, "y":2.5},
325 {"label":"U", "x":7.5, "y":2.5},
326 {"label":"I", "x":8.5, "y":2.5},
327 {"label":"O", "x":9.5, "y":2.5},
328 {"label":"P", "x":10.5, "y":2.5},
329 {"label":"{", "x":11.5, "y":2.5},
330 {"label":"}", "x":12.5, "y":2.5},
331 {"label":"Delete", "x":15.25, "y":2.5},
332 {"label":"End", "x":16.25, "y":2.5},
333 {"label":"PgDn", "x":17.25, "y":2.5},
334 {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
335 {"label":"A", "x":1.75, "y":3.5},
336 {"label":"S", "x":2.75, "y":3.5},
337 {"label":"D", "x":3.75, "y":3.5},
338 {"label":"F", "x":4.75, "y":3.5},
339 {"label":"G", "x":5.75, "y":3.5},
340 {"label":"H", "x":6.75, "y":3.5},
341 {"label":"J", "x":7.75, "y":3.5},
342 {"label":"K", "x":8.75, "y":3.5},
343 {"label":"L", "x":9.75, "y":3.5},
344 {"label":":", "x":10.75, "y":3.5},
345 {"label":"@", "x":11.75, "y":3.5},
346 {"label":"~", "x":12.75, "y":3.5},
347 {"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2},
348 {"label":"Shift", "x":0, "y":4.5, "w":1.25},
349 {"label":"|", "x":1.25, "y":4.5},
350 {"label":"Z", "x":2.25, "y":4.5},
351 {"label":"X", "x":3.25, "y":4.5},
352 {"label":"C", "x":4.25, "y":4.5},
353 {"label":"V", "x":5.25, "y":4.5},
354 {"label":"B", "x":6.25, "y":4.5},
355 {"label":"N", "x":7.25, "y":4.5},
356 {"label":"M", "x":8.25, "y":4.5},
357 {"label":"<", "x":9.25, "y":4.5},
358 {"label":">", "x":10.25, "y":4.5},
359 {"label":"?", "x":11.25, "y":4.5},
360 {"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
361 {"label":"Up", "x":16.25, "y":4.5},
362 {"label":"Ctrl", "x":0, "y":5.5, "w":1.25},
363 {"label":"Win", "x":1.25, "y":5.5, "w":1.25},
364 {"label":"Alt", "x":2.5, "y":5.5, "w":1.25},
365 {"label":"Space", "x":3.75, "y":5.5, "w":6.25},
366 {"label":"AltGr", "x":10, "y":5.5, "w":1.25},
367 {"label":"Win", "x":11.25, "y":5.5, "w":1.25},
368 {"label":"Menu", "x":12.5, "y":5.5, "w":1.25},
369 {"label":"Ctrl", "x":13.75, "y":5.5, "w":1.25},
370 {"label":"Left", "x":15.25, "y":5.5},
371 {"label":"Down", "x":16.25, "y":5.5},
372 {"label":"Right", "x":17.25, "y":5.5}
373 ]
374 },
375 "LAYOUT_tkl_iso_wkl": {
376 "key_count": 85,
377 "layout": [
378 {"label":"Esc", "x":0, "y":0},
379 {"label":"F1", "x":2, "y":0},
380 {"label":"F2", "x":3, "y":0},
381 {"label":"F3", "x":4, "y":0},
382 {"label":"F4", "x":5, "y":0},
383 {"label":"F5", "x":6.5, "y":0},
384 {"label":"F6", "x":7.5, "y":0},
385 {"label":"F7", "x":8.5, "y":0},
386 {"label":"F8", "x":9.5, "y":0},
387 {"label":"F9", "x":11, "y":0},
388 {"label":"F10", "x":12, "y":0},
389 {"label":"F11", "x":13, "y":0},
390 {"label":"F12", "x":14, "y":0},
391 {"label":"PrtSc", "x":15.25, "y":0},
392 {"label":"Scroll Lock", "x":16.25, "y":0},
393 {"label":"Pause", "x":17.25, "y":0},
394 {"label":"\u00ac", "x":0, "y":1.5},
395 {"label":"!", "x":1, "y":1.5},
396 {"label":"\"", "x":2, "y":1.5},
397 {"label":"\u00a3", "x":3, "y":1.5},
398 {"label":"$", "x":4, "y":1.5},
399 {"label":"%", "x":5, "y":1.5},
400 {"label":"^", "x":6, "y":1.5},
401 {"label":"&", "x":7, "y":1.5},
402 {"label":"*", "x":8, "y":1.5},
403 {"label":"(", "x":9, "y":1.5},
404 {"label":")", "x":10, "y":1.5},
405 {"label":"_", "x":11, "y":1.5},
406 {"label":"+", "x":12, "y":1.5},
407 {"label":"Backspace", "x":13, "y":1.5, "w":2},
408 {"label":"Insert", "x":15.25, "y":1.5},
409 {"label":"Home", "x":16.25, "y":1.5},
410 {"label":"PgUp", "x":17.25, "y":1.5},
411 {"label":"Tab", "x":0, "y":2.5, "w":1.5},
412 {"label":"Q", "x":1.5, "y":2.5},
413 {"label":"W", "x":2.5, "y":2.5},
414 {"label":"E", "x":3.5, "y":2.5},
415 {"label":"R", "x":4.5, "y":2.5},
416 {"label":"T", "x":5.5, "y":2.5},
417 {"label":"Y", "x":6.5, "y":2.5},
418 {"label":"U", "x":7.5, "y":2.5},
419 {"label":"I", "x":8.5, "y":2.5},
420 {"label":"O", "x":9.5, "y":2.5},
421 {"label":"P", "x":10.5, "y":2.5},
422 {"label":"{", "x":11.5, "y":2.5},
423 {"label":"}", "x":12.5, "y":2.5},
424 {"label":"Delete", "x":15.25, "y":2.5},
425 {"label":"End", "x":16.25, "y":2.5},
426 {"label":"PgDn", "x":17.25, "y":2.5},
427 {"label":"Caps Lock", "x":0, "y":3.5, "w":1.75},
428 {"label":"A", "x":1.75, "y":3.5},
429 {"label":"S", "x":2.75, "y":3.5},
430 {"label":"D", "x":3.75, "y":3.5},
431 {"label":"F", "x":4.75, "y":3.5},
432 {"label":"G", "x":5.75, "y":3.5},
433 {"label":"H", "x":6.75, "y":3.5},
434 {"label":"J", "x":7.75, "y":3.5},
435 {"label":"K", "x":8.75, "y":3.5},
436 {"label":"L", "x":9.75, "y":3.5},
437 {"label":":", "x":10.75, "y":3.5},
438 {"label":"@", "x":11.75, "y":3.5},
439 {"label":"~", "x":12.75, "y":3.5},
440 {"label":"Enter", "x":13.75, "y":2.5, "w":1.25, "h":2},
441 {"label":"Shift", "x":0, "y":4.5, "w":1.25},
442 {"label":"|", "x":1.25, "y":4.5},
443 {"label":"Z", "x":2.25, "y":4.5},
444 {"label":"X", "x":3.25, "y":4.5},
445 {"label":"C", "x":4.25, "y":4.5},
446 {"label":"V", "x":5.25, "y":4.5},
447 {"label":"B", "x":6.25, "y":4.5},
448 {"label":"N", "x":7.25, "y":4.5},
449 {"label":"M", "x":8.25, "y":4.5},
450 {"label":"<", "x":9.25, "y":4.5},
451 {"label":">", "x":10.25, "y":4.5},
452 {"label":"?", "x":11.25, "y":4.5},
453 {"label":"Shift", "x":12.25, "y":4.5, "w":2.75},
454 {"label":"Up", "x":16.25, "y":4.5},
455 {"label":"Ctrl", "x":0, "y":5.5, "w":1.5},
456 {"label":"Alt", "x":2.5, "y":5.5, "w":1.5},
457 {"label":"Space", "x":4, "y":5.5, "w":7},
458 {"label":"AltGr", "x":11, "y":5.5, "w":1.5},
459 {"label":"Ctrl", "x":13.5, "y":5.5, "w":1.5},
460 {"label":"Left", "x":15.25, "y":5.5},
461 {"label":"Down", "x":16.25, "y":5.5},
462 {"label":"Right", "x":17.25, "y":5.5}
463 ]
464 }
465 }
466}
467
diff --git a/keyboards/moon/keymaps/default/config.h b/keyboards/moon/keymaps/default/config.h
new file mode 100644
index 000000000..271f48d00
--- /dev/null
+++ b/keyboards/moon/keymaps/default/config.h
@@ -0,0 +1,3 @@
1#pragma once
2
3// place overrides here
diff --git a/keyboards/moon/keymaps/default/keymap.c b/keyboards/moon/keymaps/default/keymap.c
new file mode 100644
index 000000000..7ab5a25f3
--- /dev/null
+++ b/keyboards/moon/keymaps/default/keymap.c
@@ -0,0 +1,13 @@
1#include QMK_KEYBOARD_H
2
3// clang-format off
4const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
5 [0] = LAYOUT_all(
6 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_SLCK, KC_PAUS,
7 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_INS , KC_HOME, KC_PGUP,
8 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_DEL , KC_END, KC_PGDN,
9 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,
10 KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
11 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT)
12};
13// clang-format on
diff --git a/keyboards/moon/keymaps/default/readme.md b/keyboards/moon/keymaps/default/readme.md
new file mode 100644
index 000000000..3a1a93782
--- /dev/null
+++ b/keyboards/moon/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for the Moon
diff --git a/keyboards/moon/keymaps/default_tkl_ansi/config.h b/keyboards/moon/keymaps/default_tkl_ansi/config.h
new file mode 100644
index 000000000..271f48d00
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_ansi/config.h
@@ -0,0 +1,3 @@
1#pragma once
2
3// place overrides here
diff --git a/keyboards/moon/keymaps/default_tkl_ansi/keymap.c b/keyboards/moon/keymaps/default_tkl_ansi/keymap.c
new file mode 100644
index 000000000..2eb006f6a
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_ansi/keymap.c
@@ -0,0 +1,13 @@
1#include QMK_KEYBOARD_H
2
3// clang-format off
4const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
5 [0] = LAYOUT_tkl_ansi(
6 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_SLCK, KC_PAUS,
7 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_INS , KC_HOME, KC_PGUP,
8 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_DEL , KC_END, KC_PGDN,
9 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,
10 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,
11 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT)
12};
13// clang-format on
diff --git a/keyboards/moon/keymaps/default_tkl_ansi/readme.md b/keyboards/moon/keymaps/default_tkl_ansi/readme.md
new file mode 100644
index 000000000..bf1e2ac77
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_ansi/readme.md
@@ -0,0 +1 @@
# The default ANSI keymap for the Moon
diff --git a/keyboards/moon/keymaps/default_tkl_ansi_wkl/config.h b/keyboards/moon/keymaps/default_tkl_ansi_wkl/config.h
new file mode 100644
index 000000000..271f48d00
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_ansi_wkl/config.h
@@ -0,0 +1,3 @@
1#pragma once
2
3// place overrides here
diff --git a/keyboards/moon/keymaps/default_tkl_ansi_wkl/keymap.c b/keyboards/moon/keymaps/default_tkl_ansi_wkl/keymap.c
new file mode 100644
index 000000000..ce3bcd713
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_ansi_wkl/keymap.c
@@ -0,0 +1,13 @@
1#include QMK_KEYBOARD_H
2
3// clang-format off
4const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
5 [0] = LAYOUT_tkl_ansi_wkl(
6 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_SLCK, KC_PAUS,
7 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_INS , KC_HOME, KC_PGUP,
8 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_DEL , KC_END, KC_PGDN,
9 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,
10 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,
11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT)
12};
13// clang-format on
diff --git a/keyboards/moon/keymaps/default_tkl_ansi_wkl/readme.md b/keyboards/moon/keymaps/default_tkl_ansi_wkl/readme.md
new file mode 100644
index 000000000..f284c1b3c
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_ansi_wkl/readme.md
@@ -0,0 +1 @@
# The default winkeyless ANSI keymap for the Moon
diff --git a/keyboards/moon/keymaps/default_tkl_iso/config.h b/keyboards/moon/keymaps/default_tkl_iso/config.h
new file mode 100644
index 000000000..271f48d00
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_iso/config.h
@@ -0,0 +1,3 @@
1#pragma once
2
3// place overrides here
diff --git a/keyboards/moon/keymaps/default_tkl_iso/keymap.c b/keyboards/moon/keymaps/default_tkl_iso/keymap.c
new file mode 100644
index 000000000..868f68b1a
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_iso/keymap.c
@@ -0,0 +1,13 @@
1#include QMK_KEYBOARD_H
2
3// clang-format off
4const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
5 [0] = LAYOUT_tkl_iso(
6 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_SLCK, KC_PAUS,
7 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_INS , KC_HOME, KC_PGUP,
8 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_DEL , KC_END, KC_PGDN,
9 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,
10 KC_LSFT, KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
11 KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RGUI, KC_APP, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT)
12};
13// clang-format on
diff --git a/keyboards/moon/keymaps/default_tkl_iso/readme.md b/keyboards/moon/keymaps/default_tkl_iso/readme.md
new file mode 100644
index 000000000..9dd1e2c25
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_iso/readme.md
@@ -0,0 +1 @@
# The default ISO keymap for the Moon
diff --git a/keyboards/moon/keymaps/default_tkl_iso_wkl/config.h b/keyboards/moon/keymaps/default_tkl_iso_wkl/config.h
new file mode 100644
index 000000000..271f48d00
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_iso_wkl/config.h
@@ -0,0 +1,3 @@
1#pragma once
2
3// place overrides here
diff --git a/keyboards/moon/keymaps/default_tkl_iso_wkl/keymap.c b/keyboards/moon/keymaps/default_tkl_iso_wkl/keymap.c
new file mode 100644
index 000000000..6e1e1d570
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_iso_wkl/keymap.c
@@ -0,0 +1,13 @@
1#include QMK_KEYBOARD_H
2
3// clang-format off
4const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
5 [0] = LAYOUT_tkl_iso_wkl(
6 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_SLCK, KC_PAUS,
7 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_INS , KC_HOME, KC_PGUP,
8 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_DEL , KC_END, KC_PGDN,
9 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,
10 KC_LSFT, KC_BSLS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_UP,
11 KC_LCTL, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT)
12};
13// clang-format on
diff --git a/keyboards/moon/keymaps/default_tkl_iso_wkl/readme.md b/keyboards/moon/keymaps/default_tkl_iso_wkl/readme.md
new file mode 100644
index 000000000..fabba452b
--- /dev/null
+++ b/keyboards/moon/keymaps/default_tkl_iso_wkl/readme.md
@@ -0,0 +1 @@
# The default winkeyless ISO keymap for the Moon
diff --git a/keyboards/moon/matrix.c b/keyboards/moon/matrix.c
new file mode 100644
index 000000000..c74c70f89
--- /dev/null
+++ b/keyboards/moon/matrix.c
@@ -0,0 +1,218 @@
1/*
2Copyright 2012-2019 Jun Wako, Jack Humbert, Yiancar, Mathias Andersson <wraul@dbox.se>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17#include <stdint.h>
18#include <stdbool.h>
19#include "wait.h"
20#include "print.h"
21#include "debug.h"
22#include "util.h"
23#include "matrix.h"
24#include "debounce.h"
25#include "quantum.h"
26#include "pca9555.h"
27
28/*
29 * IC1 (PCA9555) IC2 (PCA9555)
30 * ,----------. ,----------.
31 * SDA --| SDA P00 |-- P1 SDA --| SDA P00 |-- P17
32 * SCL --| SCL P01 |-- P2 SCL --| SCL P01 |-- P18
33 * INT --| INT P02 |-- P3 INT --| INT P02 |-- P19
34 * | P03 |-- P4 | P03 |-- P20
35 * GND --| A0 P04 |-- P5 VCC --| A0 P04 |-- P21
36 * SJ1 --| A1 P05 |-- P6 SJ1 --| A1 P05 |-- P22
37 * GND --| A2 P06 |-- P7 GND --| A2 P06 |-- P23
38 * | P07 |-- P8 | P07 |-- P24
39 * | | | |
40 * | P10 |-- P9 | P10 |-- P25
41 * | P11 |-- P10 | P11 |-- P26
42 * | P12 |-- P11 | P12 |-- P27
43 * | P13 |-- P12 | P13 |-- P28
44 * | P14 |-- P13 | P14 |-- P29
45 * | P15 |-- P14 | P15 |-- P30
46 * | P16 |-- P15 | P16 |-- P31
47 * | P17 |-- P16 | P17 |-- P32
48 * `----------' `----------'
49 */
50
51/*
52 * | Row | Pin | | Col | Pin |
53 * | --- | --- | | --- | --- |
54 * | 0 | P1 | | 0 | P25 |
55 * | 1 | P2 | | 1 | P26 |
56 * | 2 | P3 | | 2 | P27 |
57 * | 3 | P4 | | 3 | P28 |
58 * | 4 | P5 | | 4 | P29 |
59 * | 5 | P6 | | 5 | P30 |
60 * | 6 | P7 | | 6 | P20 |
61 * | 7 | P8 | | 7 | P21 |
62 * | 8 | P22 |
63 * | 9 | P23 |
64 * | A | P24 |
65 */
66
67// PCA9555 slave addresses
68#define IC1 0x20
69#define IC2 0x21
70
71// PCA9555 column pin masks
72#define PORT0_COLS_MASK 0b11111000
73#define PORT1_COLS_MASK 0b00111111
74#define COLS_MASK 0b0000011111111111
75
76#if (MATRIX_COLS <= 8)
77# define print_matrix_header() print("\nr/c 01234567\n")
78# define print_matrix_row(row) print_bin_reverse8(matrix_get_row(row))
79# define matrix_bitpop(i) bitpop(matrix[i])
80# define ROW_SHIFTER ((uint8_t)1)
81#elif (MATRIX_COLS <= 16)
82# define print_matrix_header() print("\nr/c 0123456789ABCDEF\n")
83# define print_matrix_row(row) print_bin_reverse16(matrix_get_row(row))
84# define matrix_bitpop(i) bitpop16(matrix[i])
85# define ROW_SHIFTER ((uint16_t)1)
86#elif (MATRIX_COLS <= 32)
87# define print_matrix_header() print("\nr/c 0123456789ABCDEF0123456789ABCDEF\n")
88# define print_matrix_row(row) print_bin_reverse32(matrix_get_row(row))
89# define matrix_bitpop(i) bitpop32(matrix[i])
90# define ROW_SHIFTER ((uint32_t)1)
91#endif
92
93/* matrix state(1:on, 0:off) */
94static matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values
95static matrix_row_t matrix[MATRIX_ROWS]; // debounced values
96
97__attribute__((weak)) void matrix_init_quantum(void) { matrix_init_kb(); }
98
99__attribute__((weak)) void matrix_scan_quantum(void) { matrix_scan_kb(); }
100
101__attribute__((weak)) void matrix_init_kb(void) { matrix_init_user(); }
102
103__attribute__((weak)) void matrix_scan_kb(void) { matrix_scan_user(); }
104
105__attribute__((weak)) void matrix_init_user(void) {}
106
107__attribute__((weak)) void matrix_scan_user(void) {}
108
109inline uint8_t matrix_rows(void) { return MATRIX_ROWS; }
110
111inline uint8_t matrix_cols(void) { return MATRIX_COLS; }
112
113inline bool matrix_is_on(uint8_t row, uint8_t col) { return (matrix[row] & ((matrix_row_t)1 << col)); }
114
115inline matrix_row_t matrix_get_row(uint8_t row) { return matrix[row]; }
116
117void matrix_print(void) {
118 print_matrix_header();
119
120 for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
121 phex(row);
122 print(": ");
123 print_matrix_row(row);
124 print("\n");
125 }
126}
127
128uint8_t matrix_key_count(void) {
129 uint8_t count = 0;
130 for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
131 count += matrix_bitpop(i);
132 }
133 return count;
134}
135
136static void init_i2c(void) {
137 pca9555_init(IC1);
138 pca9555_init(IC2);
139}
140
141static void init_pins(void) {
142 // init cols - IC2 port0 & IC2 port1 input
143 pca9555_set_config(IC2, PCA9555_PORT0, ALL_INPUT);
144 pca9555_set_config(IC2, PCA9555_PORT1, ALL_INPUT);
145
146 // init rows - IC1 port0 output
147 pca9555_set_config(IC1, PCA9555_PORT0, ALL_OUTPUT);
148 pca9555_set_output(IC1, PCA9555_PORT0, ALL_HIGH);
149}
150
151static void select_row(uint8_t row) {
152 // All rows are on the same IC and port
153 uint8_t mask = 1 << row;
154
155 // set active row low : 0
156 // set other rows hi-Z : 1
157 pca9555_set_output(IC1, PCA9555_PORT0, ALL_HIGH & (~mask));
158}
159
160static uint16_t read_cols(void) {
161 uint16_t state_1 = pca9555_readPins(IC2, PCA9555_PORT0);
162 uint16_t state_2 = pca9555_readPins(IC2, PCA9555_PORT1);
163
164 uint16_t state = ((state_1 & PORT0_COLS_MASK) << 3) | ((state_2 & PORT1_COLS_MASK));
165
166 // A low pin indicates an active column
167 return (~state) & COLS_MASK;
168}
169
170static bool read_cols_on_row(matrix_row_t current_matrix[], uint8_t current_row) {
171 // Store last value of row prior to reading
172 matrix_row_t last_row_value = current_matrix[current_row];
173
174 // Clear data in matrix row
175 current_matrix[current_row] = 0;
176
177 // Select row and wait for row selecton to stabilize
178 select_row(current_row);
179 wait_us(30);
180
181 current_matrix[current_row] |= read_cols();
182
183 // No need to unselect as `select_row` sets all the pins.
184
185 return (last_row_value != current_matrix[current_row]);
186}
187
188void matrix_init(void) {
189 // initialize i2c
190 init_i2c();
191
192 // initialize key pins
193 init_pins();
194
195 // initialize matrix state: all keys off
196 for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
197 raw_matrix[i] = 0;
198 matrix[i] = 0;
199 }
200
201 debounce_init(MATRIX_ROWS);
202
203 matrix_init_quantum();
204}
205
206uint8_t matrix_scan(void) {
207 bool changed = false;
208
209 for (uint8_t current_row = 0; current_row < MATRIX_ROWS; current_row++) {
210 changed |= read_cols_on_row(raw_matrix, current_row);
211 }
212
213 debounce(raw_matrix, matrix, MATRIX_ROWS, changed);
214
215 matrix_scan_quantum();
216
217 return (uint8_t)changed;
218}
diff --git a/keyboards/moon/moon.c b/keyboards/moon/moon.c
new file mode 100644
index 000000000..c218bf5ef
--- /dev/null
+++ b/keyboards/moon/moon.c
@@ -0,0 +1,69 @@
1/* Copyright 2019 Mathias Andersson <wraul@dbox.se>
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 "moon.h"
17
18#define CAPS_PIN B5
19#define SCROLL_PIN B6
20
21// Optional override functions below.
22// You can leave any or all of these undefined.
23// These are only required if you want to perform custom actions.
24
25void matrix_init_kb(void) {
26 // put your keyboard start-up code here
27 // runs once when the firmware starts up
28
29 setPinOutput(CAPS_PIN);
30 setPinOutput(SCROLL_PIN);
31
32 matrix_init_user();
33}
34
35/*
36
37void matrix_scan_kb(void) {
38 // put your looping keyboard code here
39 // runs every cycle (a lot)
40
41 matrix_scan_user();
42}
43
44bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
45 // put your per-action keyboard code here
46 // runs for every action, just before processing by the firmware
47
48 return process_record_user(keycode, record);
49}
50
51*/
52
53void led_set_kb(uint8_t usb_led) {
54 // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here
55
56 if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) {
57 writePinHigh(CAPS_PIN);
58 } else {
59 writePinLow(CAPS_PIN);
60 }
61
62 if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) {
63 writePinHigh(SCROLL_PIN);
64 } else {
65 writePinLow(SCROLL_PIN);
66 }
67
68 led_set_user(usb_led);
69}
diff --git a/keyboards/moon/moon.h b/keyboards/moon/moon.h
new file mode 100644
index 000000000..8599aded1
--- /dev/null
+++ b/keyboards/moon/moon.h
@@ -0,0 +1,121 @@
1/* Copyright 2019 Mathias Andersson <wraul@dbox.se>
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
20/* This a shortcut to help you visually see your layout.
21 *
22 * The first section contains all of the arguments representing the physical
23 * layout of the board and position of the keys.
24 *
25 * The second converts the arguments into a two-dimensional array which
26 * represents the switch matrix.
27 */
28#define LAYOUT_all( \
29 k06, k07, k08, k09, k0A, k00, k01, k02, k03, k04, k05, k66, k67, k68, k69, k6A, \
30 k16, k17, k18, k19, k1A, k10, k11, k12, k13, k14, k15, k60, k61, k62, k63, k64, k65, \
31 k26, k27, k28, k29, k2A, k20, k21, k22, k23, k24, k25, k76, k77, k78, k79, k7A, k70, \
32 k36, k37, k38, k39, k3A, k30, k31, k32, k33, k34, k35, k71, k72, \
33 k46, k47, k48, k49, k4A, k40, k41, k42, k43, k44, k45, k73, k75, k74, \
34 k56, k57, k58, k59, k5A, k50, k51, k52, k53, k54, k55 \
35) \
36{ \
37 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A }, \
38 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A }, \
39 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A }, \
40 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A }, \
41 { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4A }, \
42 { k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k5A }, \
43 { k60, k61, k62, k63, k64, k65, k66, k67, k68, k69, k6A }, \
44 { k70, k71, k72, k73, k74, k75, k76, k77, k78, k79, k7A }, \
45}
46
47#define LAYOUT_tkl_ansi( \
48 k06, k07, k08, k09, k0A, k00, k01, k02, k03, k04, k05, k66, k67, k68, k69, k6A, \
49 k16, k17, k18, k19, k1A, k10, k11, k12, k13, k14, k15, k60, k61, k62, k63, k64, k65, \
50 k26, k27, k28, k29, k2A, k20, k21, k22, k23, k24, k25, k76, k77, k78, k79, k7A, k70, \
51 k36, k37, k38, k39, k3A, k30, k31, k32, k33, k34, k35, k71, k72, \
52 k46, k48, k49, k4A, k40, k41, k42, k43, k44, k45, k73, k75, k74, \
53 k56, k57, k58, k59, k5A, k50, k51, k52, k53, k54, k55 \
54) \
55{ \
56 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A }, \
57 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A }, \
58 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A }, \
59 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A }, \
60 { k40, k41, k42, k43, k44, k45, k46, KC_NO, k48, k49, k4A }, \
61 { k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k5A }, \
62 { k60, k61, k62, k63, k64, k65, k66, k67, k68, k69, k6A }, \
63 { k70, k71, k72, k73, k74, k75, k76, k77, k78, k79, k7A }, \
64}
65
66#define LAYOUT_tkl_ansi_wkl( \
67 k06, k07, k08, k09, k0A, k00, k01, k02, k03, k04, k05, k66, k67, k68, k69, k6A, \
68 k16, k17, k18, k19, k1A, k10, k11, k12, k13, k14, k15, k60, k61, k62, k63, k64, k65, \
69 k26, k27, k28, k29, k2A, k20, k21, k22, k23, k24, k25, k76, k77, k78, k79, k7A, k70, \
70 k36, k37, k38, k39, k3A, k30, k31, k32, k33, k34, k35, k71, k72, \
71 k46, k48, k49, k4A, k40, k41, k42, k43, k44, k45, k73, k75, k74, \
72 k56, k58, k59, k50, k52, k53, k54, k55 \
73) \
74{ \
75 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A }, \
76 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A }, \
77 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A }, \
78 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A }, \
79 { k40, k41, k42, k43, k44, k45, k46, KC_NO, k48, k49, k4A }, \
80 { k50, KC_NO, k52, k53, k54, k55, k56, KC_NO, k58, k59, KC_NO }, \
81 { k60, k61, k62, k63, k64, k65, k66, k67, k68, k69, k6A }, \
82 { k70, k71, k72, k73, k74, k75, k76, k77, k78, k79, k7A }, \
83}
84
85#define LAYOUT_tkl_iso( \
86 k06, k07, k08, k09, k0A, k00, k01, k02, k03, k04, k05, k66, k67, k68, k69, k6A, \
87 k16, k17, k18, k19, k1A, k10, k11, k12, k13, k14, k15, k60, k61, k62, k63, k64, k65, \
88 k26, k27, k28, k29, k2A, k20, k21, k22, k23, k24, k25, k76, k77, k79, k7A, k70, \
89 k36, k37, k38, k39, k3A, k30, k31, k32, k33, k34, k35, k71, k78, k72, \
90 k46, k47, k48, k49, k4A, k40, k41, k42, k43, k44, k45, k73, k75, k74, \
91 k56, k57, k58, k59, k5A, k50, k51, k52, k53, k54, k55 \
92) \
93{ \
94 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A }, \
95 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A }, \
96 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A }, \
97 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A }, \
98 { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4A }, \
99 { k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k5A }, \
100 { k60, k61, k62, k63, k64, k65, k66, k67, k68, k69, k6A }, \
101 { k70, k71, k72, k73, k74, k75, k76, k77, k78, k79, k7A }, \
102}
103
104#define LAYOUT_tkl_iso_wkl( \
105 k06, k07, k08, k09, k0A, k00, k01, k02, k03, k04, k05, k66, k67, k68, k69, k6A, \
106 k16, k17, k18, k19, k1A, k10, k11, k12, k13, k14, k15, k60, k61, k62, k63, k64, k65, \
107 k26, k27, k28, k29, k2A, k20, k21, k22, k23, k24, k25, k76, k77, k79, k7A, k70, \
108 k36, k37, k38, k39, k3A, k30, k31, k32, k33, k34, k35, k71, k78, k72, \
109 k46, k47, k48, k49, k4A, k40, k41, k42, k43, k44, k45, k73, k75, k74, \
110 k56, k58, k59, k50, k52, k53, k54, k55 \
111) \
112{ \
113 { k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0A }, \
114 { k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1A }, \
115 { k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2A }, \
116 { k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3A }, \
117 { k40, k41, k42, k43, k44, k45, k46, k47, k48, k49, k4A }, \
118 { k50, KC_NO, k52, k53, k54, k55, k56, KC_NO, k58, k59, KC_NO }, \
119 { k60, k61, k62, k63, k64, k65, k66, k67, k68, k69, k6A }, \
120 { k70, k71, k72, k73, k74, k75, k76, k77, k78, k79, k7A }, \
121}
diff --git a/keyboards/moon/pca9555.c b/keyboards/moon/pca9555.c
new file mode 100644
index 000000000..b0e542d8d
--- /dev/null
+++ b/keyboards/moon/pca9555.c
@@ -0,0 +1,78 @@
1/* Copyright 2019
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 "i2c_master.h"
17#include "pca9555.h"
18
19#include "debug.h"
20
21#define SLAVE_TO_ADDR(n) (n << 1)
22#define TIMEOUT 100
23
24enum {
25 CMD_INPUT_0 = 0,
26 CMD_INPUT_1,
27 CMD_OUTPUT_0,
28 CMD_OUTPUT_1,
29 CMD_INVERSION_0,
30 CMD_INVERSION_1,
31 CMD_CONFIG_0,
32 CMD_CONFIG_1,
33};
34
35void pca9555_init(uint8_t slave_addr) {
36 static uint8_t s_init = 0;
37 if (!s_init) {
38 i2c_init();
39
40 s_init = 1;
41 }
42
43 // TODO: could check device connected
44 // i2c_start(SLAVE_TO_ADDR(slave) | I2C_WRITE);
45 // i2c_stop();
46}
47
48void pca9555_set_config(uint8_t slave_addr, uint8_t port, uint8_t conf) {
49 uint8_t addr = SLAVE_TO_ADDR(slave_addr);
50 uint8_t cmd = port ? CMD_CONFIG_1 : CMD_CONFIG_0;
51
52 i2c_status_t ret = i2c_writeReg(addr, cmd, &conf, sizeof(conf), TIMEOUT);
53 if (ret != I2C_STATUS_SUCCESS) {
54 print("pca9555_set_config::FAILED\n");
55 }
56}
57
58void pca9555_set_output(uint8_t slave_addr, uint8_t port, uint8_t conf) {
59 uint8_t addr = SLAVE_TO_ADDR(slave_addr);
60 uint8_t cmd = port ? CMD_OUTPUT_1 : CMD_OUTPUT_0;
61
62 i2c_status_t ret = i2c_writeReg(addr, cmd, &conf, sizeof(conf), TIMEOUT);
63 if (ret != I2C_STATUS_SUCCESS) {
64 print("pca9555_set_output::FAILED\n");
65 }
66}
67
68uint8_t pca9555_readPins(uint8_t slave_addr, uint8_t port) {
69 uint8_t addr = SLAVE_TO_ADDR(slave_addr);
70 uint8_t cmd = port ? CMD_INPUT_1 : CMD_INPUT_0;
71
72 uint8_t data = 0;
73 i2c_status_t ret = i2c_readReg(addr, cmd, &data, sizeof(data), TIMEOUT);
74 if (ret != I2C_STATUS_SUCCESS) {
75 print("pca9555_readPins::FAILED\n");
76 }
77 return data;
78}
diff --git a/keyboards/moon/pca9555.h b/keyboards/moon/pca9555.h
new file mode 100644
index 000000000..ebb97e2f3
--- /dev/null
+++ b/keyboards/moon/pca9555.h
@@ -0,0 +1,55 @@
1/* Copyright 2019
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/*
19 PCA9555
20 ,----------.
21 SDA --| SDA P00 |-- P00
22 SCL --| SCL P01 |-- P01
23 INT --| INT P02 |-- P02
24 | P03 |-- P03
25 A0 --| A0 P04 |-- P04
26 A1 --| A1 P05 |-- P05
27 A2 --| A2 P06 |-- P06
28 | P07 |-- P07
29 | |
30 | P10 |-- P10
31 | P11 |-- P11
32 | P12 |-- P12
33 | P13 |-- P13
34 | P14 |-- P14
35 | P15 |-- P15
36 | P16 |-- P16
37 | P17 |-- P17
38 `----------'
39*/
40
41#define PCA9555_PORT0 0
42#define PCA9555_PORT1 1
43
44#define ALL_OUTPUT 0
45#define ALL_INPUT 0xFF
46#define ALL_LOW 0
47#define ALL_HIGH 0xFF
48
49void pca9555_init(uint8_t slave_addr);
50
51void pca9555_set_config(uint8_t slave_addr, uint8_t port, uint8_t conf);
52
53void pca9555_set_output(uint8_t slave_addr, uint8_t port, uint8_t conf);
54
55uint8_t pca9555_readPins(uint8_t slave_addr, uint8_t port);
diff --git a/keyboards/moon/readme.md b/keyboards/moon/readme.md
new file mode 100644
index 000000000..6ba38826e
--- /dev/null
+++ b/keyboards/moon/readme.md
@@ -0,0 +1,17 @@
1# Moon
2
3![moon](https://i.imgur.com/hQeOBMs.jpg)
4
5A tenkeyless keyboard with astonishing curves. Designed and manufactured by EVE.
6
7The PCB uses the [Kimera core](https://github.com/kairyu/kimera) controller.
8
9Keyboard Maintainer: [Mathias Andersson](https://github.com/wraul)
10Hardware Supported: Moon (only the initial black PCB with Kimera core).
11Hardware Availability: https://geekhack.org/index.php?topic=90379.0
12
13Make example for this keyboard (after setting up your build environment):
14
15 make moon:default
16
17See 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/moon/rules.mk b/keyboards/moon/rules.mk
new file mode 100644
index 000000000..699fc3395
--- /dev/null
+++ b/keyboards/moon/rules.mk
@@ -0,0 +1,77 @@
1# Project specific files
2SRC += i2c_master.c pca9555.c matrix.c
3
4# MCU name
5MCU = atmega32u4
6
7# Processor frequency.
8# This will define a symbol, F_CPU, in all source code files equal to the
9# processor frequency in Hz. You can then use this symbol in your source code to
10# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
11# automatically to create a 32-bit value in your source code.
12#
13# This will be an integer division of F_USB below, as it is sourced by
14# F_USB after it has run through any CPU prescalers. Note that this value
15# does not *change* the processor frequency - it should merely be updated to
16# reflect the processor speed set externally so that the code can use accurate
17# software delays.
18F_CPU = 16000000
19
20
21#
22# LUFA specific
23#
24# Target architecture (see library "Board Types" documentation).
25ARCH = AVR8
26
27# Input clock frequency.
28# This will define a symbol, F_USB, in all source code files equal to the
29# input clock frequency (before any prescaling is performed) in Hz. This value may
30# differ from F_CPU if prescaling is used on the latter, and is required as the
31# raw input clock is fed directly to the PLL sections of the AVR for high speed
32# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
33# at the end, this will be done automatically to create a 32-bit value in your
34# source code.
35#
36# If no clock division is performed on the input clock inside the AVR (via the
37# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
38F_USB = $(F_CPU)
39
40# Interrupt driven control endpoint task(+60)
41OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
42
43
44# Bootloader selection
45# Teensy halfkay
46# Pro Micro caterina
47# Atmel DFU atmel-dfu
48# LUFA DFU lufa-dfu
49# QMK DFU qmk-dfu
50# atmega32a bootloadHID
51BOOTLOADER = atmel-dfu
52
53
54# Supported layouts
55LAYOUTS = tkl_ansi tkl_iso
56
57# Build Options
58# change yes to no to disable
59#
60BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
61MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
62EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
63CONSOLE_ENABLE = yes # Console for debug(+400)
64COMMAND_ENABLE = yes # Commands for debug and configuration
65# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
66SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
67# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
68NKRO_ENABLE = yes # USB Nkey Rollover
69BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality on B7 by default
70RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
71MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
72UNICODE_ENABLE = no # Unicode
73BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
74AUDIO_ENABLE = no # Audio output on port C6
75FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
76HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
77CUSTOM_MATRIX = yes