aboutsummaryrefslogtreecommitdiff
path: root/keyboards/adkb96
diff options
context:
space:
mode:
authorkit-bto <42862131+kit-bto@users.noreply.github.com>2019-04-26 15:11:21 +0900
committerDrashna Jaelre <drashna@live.com>2019-04-25 23:11:21 -0700
commit4322c7177168c6622a891bfb14ad4c969e3f8be9 (patch)
tree9214e9b262338fc229c5c9a172cf06d9edf79cd3 /keyboards/adkb96
parent9c98fef4f6d35d9e07865b119550f6e7e9e6610d (diff)
downloadqmk_firmware-4322c7177168c6622a891bfb14ad4c969e3f8be9.tar.gz
qmk_firmware-4322c7177168c6622a891bfb14ad4c969e3f8be9.zip
[Keyboard] Add a new keyboard ADKB96 (#5685)
* New Keyboard ADKB96 http://bit-trade-one.co.jp/selfmadekb/adkb96/ * New Keyboard ADKB96 http://bit-trade-one.co.jp/selfmadekb/adkb96/ * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Update Readme.md * Rename Readme.md to readme.md * Update keyboards/adkb96/adkb96.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update readme.md * Update readme.md * Update keyboards/adkb96/adkb96.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/adkb96.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/config.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/config.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/config.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keymap.c * Update keyboards/adkb96/rev1/config.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/rev1/config.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update config.h * Update keyboards/adkb96/rev1/config.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/rev1/rev1.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/rev1/rev1.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/rev1/rev1.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update rules.mk * Delete rules.mk * Update rules.mk * Update keyboards/adkb96/rules.mk Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/rules.mk Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/rev1/config.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update config.h * Update rules.mk * Update config.h * Delete i2c.c * Delete i2c.h * Delete matrix.c * Delete serial.c * Delete serial.h * Delete split_util.c * Delete split_util.h * Update keymap.c * Update keymap.c * Update keymap.c * Update keymap.c * Update rev1.c * Update keyboards/adkb96/rev1/config.h Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update keyboards/adkb96/rules.mk Co-Authored-By: kit-bto <42862131+kit-bto@users.noreply.github.com> * Update rev1.h
Diffstat (limited to 'keyboards/adkb96')
-rw-r--r--keyboards/adkb96/adkb96.c19
-rw-r--r--keyboards/adkb96/adkb96.h28
-rw-r--r--keyboards/adkb96/config.h22
-rw-r--r--keyboards/adkb96/info.json494
-rw-r--r--keyboards/adkb96/keymaps/default/config.h34
-rw-r--r--keyboards/adkb96/keymaps/default/keymap.c15
-rw-r--r--keyboards/adkb96/readme.md17
-rw-r--r--keyboards/adkb96/rev1/config.h78
-rw-r--r--keyboards/adkb96/rev1/rev1.c15
-rw-r--r--keyboards/adkb96/rev1/rev1.h44
-rw-r--r--keyboards/adkb96/rules.mk78
11 files changed, 844 insertions, 0 deletions
diff --git a/keyboards/adkb96/adkb96.c b/keyboards/adkb96/adkb96.c
new file mode 100644
index 000000000..9a1c85a2c
--- /dev/null
+++ b/keyboards/adkb96/adkb96.c
@@ -0,0 +1,19 @@
1#include "adkb96.h"
2
3#ifdef SWAP_HANDS_ENABLE
4__attribute__ ((weak))
5const keypos_t hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
6 {{0, 6}, {1, 6}, {2, 6}, {3, 6}, {4, 6}, {5, 6}, {6, 6}, {7, 6}},
7 {{0, 7}, {1, 7}, {2, 7}, {3, 7}, {4, 7}, {5, 7}, {6, 7}, {7, 7}},
8 {{0, 8}, {1, 8}, {2, 8}, {3, 8}, {4, 8}, {5, 8}, {6, 8}, {7, 8}},
9 {{0, 9}, {1, 9}, {2, 9}, {3, 9}, {4, 9}, {5, 9}, {6, 9}, {7, 9}},
10 {{0,10}, {1,10}, {2,10}, {3,10}, {4,10}, {5,10}, {6,10}, {7,10}},
11 {{0,11}, {1,11}, {2,11}, {3,11}, {4,11}, {5,11}, {6,11}, {7,11}},
12 {{0, 0}, {1, 0}, {2, 0}, {3, 0}, {4, 0}, {5, 0}, {6, 0}, {7, 0}},
13 {{0, 1}, {1, 1}, {2, 1}, {3, 1}, {4, 1}, {5, 1}, {6, 1}, {7, 1}},
14 {{0, 2}, {1, 2}, {2, 2}, {3, 2}, {4, 2}, {5, 2}, {6, 2}, {7, 2}},
15 {{0, 3}, {1, 3}, {2, 3}, {3, 3}, {4, 3}, {5, 3}, {6, 3}, {7, 3}},
16 {{0, 4}, {1, 4}, {2, 4}, {3, 4}, {4, 4}, {5, 4}, {6, 4}, {7, 4}},
17 {{0, 5}, {1, 5}, {2, 5}, {3, 5}, {4, 5}, {5, 5}, {6, 5}, {7, 5}}
18};
19#endif
diff --git a/keyboards/adkb96/adkb96.h b/keyboards/adkb96/adkb96.h
new file mode 100644
index 000000000..4b2877500
--- /dev/null
+++ b/keyboards/adkb96/adkb96.h
@@ -0,0 +1,28 @@
1#pragma once
2
3#include "quantum.h"
4
5#ifdef KEYBOARD_adkb96_rev1
6 #include "rev1.h"
7#endif
8
9
10// Used to create a keymap using only KC_ prefixed keys
11#define LAYOUT_kc_ortho_6x16( \
12 L00, L01, L02, L03, L04, L05, L06, L07, R00, R01, R02, R03, R04, R05, R06, R07, \
13 L10, L11, L12, L13, L14, L15, L16, L17, R10, R11, R12, R13, R14, R15, R16, R17, \
14 L20, L21, L22, L23, L24, L25, L26, L27, R20, R21, R22, R23, R24, R25, R26, R27, \
15 L30, L31, L32, L33, L34, L35, L36, L37, R30, R31, R32, R33, R34, R35, R36, R37, \
16 L40, L41, L42, L43, L44, L45, L46, L47, R40, R41, R42, R43, R44, R45, R46, R47, \
17 L50, L51, L52, L53, L54, L55, L56, L57, R50, R51, R52, R53, R54, R55, R56, R57 \
18 ) \
19 LAYOUT( \
20 KC_##L00, KC_##L01, KC_##L02, KC_##L03, KC_##L04, KC_##L05, KC_##L06, KC_##L07, KC_##R00, KC_##R01, KC_##R02, KC_##R03, KC_##R04, KC_##R05, KC_##R06, KC_##R07, \
21 KC_##L10, KC_##L11, KC_##L12, KC_##L13, KC_##L14, KC_##L15, KC_##L16, KC_##L17, KC_##R10, KC_##R11, KC_##R12, KC_##R13, KC_##R14, KC_##R15, KC_##R16, KC_##R17, \
22 KC_##L20, KC_##L21, KC_##L22, KC_##L23, KC_##L24, KC_##L25, KC_##L26, KC_##L27, KC_##R20, KC_##R21, KC_##R22, KC_##R23, KC_##R24, KC_##R25, KC_##R26, KC_##R27, \
23 KC_##L30, KC_##L31, KC_##L32, KC_##L33, KC_##L34, KC_##L35, KC_##L36, KC_##L37, KC_##R30, KC_##R31, KC_##R32, KC_##R33, KC_##R34, KC_##R35, KC_##R36, KC_##R37, \
24 KC_##L40, KC_##L41, KC_##L42, KC_##L43, KC_##L44, KC_##L45, KC_##L46, KC_##L47, KC_##R40, KC_##R41, KC_##R42, KC_##R43, KC_##R44, KC_##R45, KC_##R46, KC_##R47, \
25 KC_##L50, KC_##L51, KC_##L52, KC_##L53, KC_##L54, KC_##L55, KC_##L56, KC_##L57, KC_##R50, KC_##R51, KC_##R52, KC_##R53, KC_##R54, KC_##R55, KC_##R56 ,KC_##R57 \
26 )
27
28#define LAYOUT_kc LAYOUT_kc_ortho_6x16
diff --git a/keyboards/adkb96/config.h b/keyboards/adkb96/config.h
new file mode 100644
index 000000000..93fd2261b
--- /dev/null
+++ b/keyboards/adkb96/config.h
@@ -0,0 +1,22 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2015 Jack Humbert
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include "config_common.h"
22
diff --git a/keyboards/adkb96/info.json b/keyboards/adkb96/info.json
new file mode 100644
index 000000000..3b914d56b
--- /dev/null
+++ b/keyboards/adkb96/info.json
@@ -0,0 +1,494 @@
1{
2 "keyboard_name": "adkb96",
3 "url": "",
4 "maintainer": "qmk",
5 "width": 16,
6 "height": 6,
7 "layouts": {
8 "LAYOUT_ortho_6x16": {
9 "key_count": 96,
10 "layout": [
11 {
12 "label": "L00",
13 "x": 0,
14 "y": 0
15 },
16 {
17 "label": "L01",
18 "x": 1,
19 "y": 0
20 },
21 {
22 "label": "L02",
23 "x": 2,
24 "y": 0
25 },
26 {
27 "label": "L03",
28 "x": 3,
29 "y": 0
30 },
31 {
32 "label": "L04",
33 "x": 4,
34 "y": 0
35 },
36 {
37 "label": "L05",
38 "x": 5,
39 "y": 0
40 },
41 {
42 "label": "L06",
43 "x": 6,
44 "y": 0
45 },
46 {
47 "label": "L07",
48 "x": 7,
49 "y": 0
50 },
51 {
52 "label": "R00",
53 "x": 8,
54 "y": 0
55 },
56 {
57 "label": "R01",
58 "x": 9,
59 "y": 0
60 },
61 {
62 "label": "R02",
63 "x": 10,
64 "y": 0
65 },
66 {
67 "label": "R03",
68 "x": 11,
69 "y": 0
70 },
71 {
72 "label": "R04",
73 "x": 12,
74 "y": 0
75 },
76 {
77 "label": "R05",
78 "x": 13,
79 "y": 0
80 },
81 {
82 "label": "R06",
83 "x": 14,
84 "y": 0
85 },
86 {
87 "label": "R07",
88 "x": 15,
89 "y": 0
90 },
91 {
92 "label": "L10",
93 "x": 0,
94 "y": 1
95 },
96 {
97 "label": "L11",
98 "x": 1,
99 "y": 1
100 },
101 {
102 "label": "L12",
103 "x": 2,
104 "y": 1
105 },
106 {
107 "label": "L13",
108 "x": 3,
109 "y": 1
110 },
111 {
112 "label": "L14",
113 "x": 4,
114 "y": 1
115 },
116 {
117 "label": "L15",
118 "x": 5,
119 "y": 1
120 },
121 {
122 "label": "L16",
123 "x": 6,
124 "y": 1
125 },
126 {
127 "label": "L17",
128 "x": 7,
129 "y": 1
130 },
131 {
132 "label": "R10",
133 "x": 8,
134 "y": 1
135 },
136 {
137 "label": "R11",
138 "x": 9,
139 "y": 1
140 },
141 {
142 "label": "R12",
143 "x": 10,
144 "y": 1
145 },
146 {
147 "label": "R13",
148 "x": 11,
149 "y": 1
150 },
151 {
152 "label": "R14",
153 "x": 12,
154 "y": 1
155 },
156 {
157 "label": "R15",
158 "x": 13,
159 "y": 1
160 },
161 {
162 "label": "R16",
163 "x": 14,
164 "y": 1
165 },
166 {
167 "label": "R17",
168 "x": 15,
169 "y": 1
170 },
171 {
172 "label": "L20",
173 "x": 0,
174 "y": 2
175 },
176 {
177 "label": "L21",
178 "x": 1,
179 "y": 2
180 },
181 {
182 "label": "L22",
183 "x": 2,
184 "y": 2
185 },
186 {
187 "label": "L23",
188 "x": 3,
189 "y": 2
190 },
191 {
192 "label": "L24",
193 "x": 4,
194 "y": 2
195 },
196 {
197 "label": "L25",
198 "x": 5,
199 "y": 2
200 },
201 {
202 "label": "L26",
203 "x": 6,
204 "y": 2
205 },
206 {
207 "label": "L27",
208 "x": 7,
209 "y": 2
210 },
211 {
212 "label": "R20",
213 "x": 8,
214 "y": 2
215 },
216 {
217 "label": "R21",
218 "x": 9,
219 "y": 2
220 },
221 {
222 "label": "R22",
223 "x": 10,
224 "y": 2
225 },
226 {
227 "label": "R23",
228 "x": 11,
229 "y": 2
230 },
231 {
232 "label": "R24",
233 "x": 12,
234 "y": 2
235 },
236 {
237 "label": "R25",
238 "x": 13,
239 "y": 2
240 },
241 {
242 "label": "R26",
243 "x": 14,
244 "y": 2
245 },
246 {
247 "label": "R27",
248 "x": 15,
249 "y": 2
250 },
251 {
252 "label": "L30",
253 "x": 0,
254 "y": 3
255 },
256 {
257 "label": "L31",
258 "x": 1,
259 "y": 3
260 },
261 {
262 "label": "L32",
263 "x": 2,
264 "y": 3
265 },
266 {
267 "label": "L33",
268 "x": 3,
269 "y": 3
270 },
271 {
272 "label": "L34",
273 "x": 4,
274 "y": 3
275 },
276 {
277 "label": "L35",
278 "x": 5,
279 "y": 3
280 },
281 {
282 "label": "L36",
283 "x": 6,
284 "y": 3
285 },
286 {
287 "label": "L37",
288 "x": 7,
289 "y": 3
290 },
291 {
292 "label": "R30",
293 "x": 8,
294 "y": 3
295 },
296 {
297 "label": "R31",
298 "x": 9,
299 "y": 3
300 },
301 {
302 "label": "R32",
303 "x": 10,
304 "y": 3
305 },
306 {
307 "label": "R33",
308 "x": 11,
309 "y": 3
310 },
311 {
312 "label": "R34",
313 "x": 12,
314 "y": 3
315 },
316 {
317 "label": "R35",
318 "x": 13,
319 "y": 3
320 },
321 {
322 "label": "R36",
323 "x": 14,
324 "y": 3
325 },
326 {
327 "label": "R37",
328 "x": 15,
329 "y": 3
330 },
331 {
332 "label": "L40",
333 "x": 0,
334 "y": 4
335 },
336 {
337 "label": "L41",
338 "x": 1,
339 "y": 4
340 },
341 {
342 "label": "L42",
343 "x": 2,
344 "y": 4
345 },
346 {
347 "label": "L43",
348 "x": 3,
349 "y": 4
350 },
351 {
352 "label": "L44",
353 "x": 4,
354 "y": 4
355 },
356 {
357 "label": "L45",
358 "x": 5,
359 "y": 4
360 },
361 {
362 "label": "L46",
363 "x": 6,
364 "y": 4
365 },
366 {
367 "label": "L47",
368 "x": 7,
369 "y": 4
370 },
371 {
372 "label": "R40",
373 "x": 8,
374 "y": 4
375 },
376 {
377 "label": "R41",
378 "x": 9,
379 "y": 4
380 },
381 {
382 "label": "R42",
383 "x": 10,
384 "y": 4
385 },
386 {
387 "label": "R43",
388 "x": 11,
389 "y": 4
390 },
391 {
392 "label": "R44",
393 "x": 12,
394 "y": 4
395 },
396 {
397 "label": "R45",
398 "x": 13,
399 "y": 4
400 },
401 {
402 "label": "R46",
403 "x": 14,
404 "y": 4
405 },
406 {
407 "label": "R47",
408 "x": 15,
409 "y": 4
410 },
411 {
412 "label": "L50",
413 "x": 0,
414 "y": 5
415 },
416 {
417 "label": "L51",
418 "x": 1,
419 "y": 5
420 },
421 {
422 "label": "L52",
423 "x": 2,
424 "y": 5
425 },
426 {
427 "label": "L53",
428 "x": 3,
429 "y": 5
430 },
431 {
432 "label": "L54",
433 "x": 4,
434 "y": 5
435 },
436 {
437 "label": "L55",
438 "x": 5,
439 "y": 5
440 },
441 {
442 "label": "L56",
443 "x": 6,
444 "y": 5
445 },
446 {
447 "label": "L57",
448 "x": 7,
449 "y": 5
450 },
451 {
452 "label": "R50",
453 "x": 8,
454 "y": 5
455 },
456 {
457 "label": "R51",
458 "x": 9,
459 "y": 5
460 },
461 {
462 "label": "R52",
463 "x": 10,
464 "y": 5
465 },
466 {
467 "label": "R53",
468 "x": 11,
469 "y": 5
470 },
471 {
472 "label": "R54",
473 "x": 12,
474 "y": 5
475 },
476 {
477 "label": "R55",
478 "x": 13,
479 "y": 5
480 },
481 {
482 "label": "R56",
483 "x": 14,
484 "y": 5
485 },
486 {
487 "label": "R57",
488 "x": 15,
489 "y": 5
490 }
491 ]
492 }
493 }
494} \ No newline at end of file
diff --git a/keyboards/adkb96/keymaps/default/config.h b/keyboards/adkb96/keymaps/default/config.h
new file mode 100644
index 000000000..bef279a6d
--- /dev/null
+++ b/keyboards/adkb96/keymaps/default/config.h
@@ -0,0 +1,34 @@
1/*
2This is the c configuration file for the keymap
3
4Copyright 2012 Jun Wako <wakojun@gmail.com>
5Copyright 2015 Jack Humbert
6
7This program is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 2 of the License, or
10(at your option) any later version.
11
12This program is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23/* Use I2C or Serial, not both */
24
25#define USE_SERIAL
26//#define USE_I2C
27
28/* Select hand configuration */
29
30#define MASTER_LEFT
31// #define MASTER_RIGHT
32// #define EE_HANDS
33
34#define FORCE_NKRO
diff --git a/keyboards/adkb96/keymaps/default/keymap.c b/keyboards/adkb96/keymaps/default/keymap.c
new file mode 100644
index 000000000..c8198ab33
--- /dev/null
+++ b/keyboards/adkb96/keymaps/default/keymap.c
@@ -0,0 +1,15 @@
1#include QMK_KEYBOARD_H
2
3extern keymap_config_t keymap_config;
4
5const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
6
7 [0] = LAYOUT(
8 KC_ESC, XXXXXXX,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_INS, KC_DELT,
9 KC_ZKHK,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_JYEN,KC_BSPC,KC_BSPC,
10 KC_TAB, 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_ENT, KC_ENT,
11 KC_CAPS,KC_CAPS,KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN,KC_QUOT,KC_BSLS,KC_ENT, KC_ENT,
12 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_RO, KC_UP, KC_RSFT,KC_RSFT,
13 KC_LCTL,KC_LALT,KC_LGUI,KC_MHEN,KC_SPC, KC_SPC, KC_SPC, KC_SPC, KC_HENK,KC_KANA,KC_RALT,KC_RCTL,KC_LEFT,KC_DOWN,KC_RGHT,XXXXXXX
14 )
15};
diff --git a/keyboards/adkb96/readme.md b/keyboards/adkb96/readme.md
new file mode 100644
index 000000000..fa5187966
--- /dev/null
+++ b/keyboards/adkb96/readme.md
@@ -0,0 +1,17 @@
1# ADKB96
2
3![ADKB96](http://btoshop.jp/wp-content/uploads/sites/3/2019/04/ADKB96_ALL.png)
4
5A 16x6 ortholinear keyboard kit made and sold by Bit Trade One Ltd. [More info on Web](http://bit-trade-one.co.jp/selfmadekb/adkb96/)
6
7Keyboard Maintainer: [Bit Trade One Ltd.](http://bit-trade-one.co.jp/)
8Hardware Supported: ADKB96 PCB, Pro Micro
9Hardware Availability: [PCB & case Data](https://github.com/bit-trade-one/ADKB96-hardware), [BTOS Shop](http://btoshop.jp/2019/04/11/4562469772424/)
10
11Make example for this keyboard (after setting up your build environment):
12
13```sh
14 make adkb96/rev1:default
15```
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/adkb96/rev1/config.h b/keyboards/adkb96/rev1/config.h
new file mode 100644
index 000000000..8bdacb4cb
--- /dev/null
+++ b/keyboards/adkb96/rev1/config.h
@@ -0,0 +1,78 @@
1/*
2Copyright 2012 Jun Wako <wakojun@gmail.com>
3Copyright 2015 Jack Humbert
4
5This program is free software: you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19/* USB Device descriptor parameter */
20#define VENDOR_ID 0x00a5
21#define PRODUCT_ID 0xad96
22#define DEVICE_VER 0x0001
23#define MANUFACTURER Bit Trade One
24#define PRODUCT ADKB96
25#define DESCRIPTION
26
27/* key matrix size */
28// Rows are doubled-up
29#define MATRIX_ROWS 12
30#define MATRIX_COLS 8
31
32// wiring of each half
33#define MATRIX_ROW_PINS { D4, C6, D7, E6, B4, B5 }
34#define MATRIX_COL_PINS { B6, B2, B3, B1, F7, F6, F5, F4 }
35
36#define SOFT_SERIAL_PIN D0
37
38/* define tapping term */
39#define TAPPING_TERM 100
40
41/* define if matrix has ghost */
42//#define MATRIX_HAS_GHOST
43
44/* number of backlight levels */
45// #define BACKLIGHT_LEVELS 3
46
47/* Set 0 if debouncing isn't needed */
48#define DEBOUNCING_DELAY 5
49
50/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
51#define LOCKING_SUPPORT_ENABLE
52/* Locking resynchronize hack */
53#define LOCKING_RESYNC_ENABLE
54
55/* ws2812 RGB LED */
56/*
57#define RGB_DI_PIN D3
58
59#define RGBLED_NUM 12 // Number of LEDs
60*/
61/*
62 * Feature disable options
63 * These options are also useful to firmware size reduction.
64 */
65
66/* disable debug print */
67// #define NO_DEBUG
68
69/* disable print */
70// #define NO_PRINT
71
72/* disable action features */
73//#define NO_ACTION_LAYER
74//#define NO_ACTION_TAPPING
75//#define NO_ACTION_ONESHOT
76//#define NO_ACTION_MACRO
77//#define NO_ACTION_FUNCTION
78
diff --git a/keyboards/adkb96/rev1/rev1.c b/keyboards/adkb96/rev1/rev1.c
new file mode 100644
index 000000000..872a7e08f
--- /dev/null
+++ b/keyboards/adkb96/rev1/rev1.c
@@ -0,0 +1,15 @@
1#include "adkb96.h"
2
3void matrix_init_kb(void) {
4
5 // // green led on
6 // DDRD |= (1<<5);
7 // PORTD &= ~(1<<5);
8
9 // // orange led on
10 // DDRB |= (1<<0);
11 // PORTB &= ~(1<<0);
12
13 matrix_init_user();
14};
15
diff --git a/keyboards/adkb96/rev1/rev1.h b/keyboards/adkb96/rev1/rev1.h
new file mode 100644
index 000000000..0ec70c5d5
--- /dev/null
+++ b/keyboards/adkb96/rev1/rev1.h
@@ -0,0 +1,44 @@
1#pragma once
2
3#include "adkb96.h"
4
5//void promicro_bootloader_jmp(bool program);
6
7#ifdef USE_I2C
8#include <stddef.h>
9#ifdef __AVR__
10 #include <avr/io.h>
11 #include <avr/interrupt.h>
12#endif
13#endif
14
15//void promicro_bootloader_jmp(bool program);
16
17
18// Keymap with right side flipped
19// (TRRS jack on both halves are to the right)
20#define LAYOUT_ortho_6x16( \
21 L00, L01, L02, L03, L04, L05, L06, L07, R00, R01, R02, R03, R04, R05, R06, R07, \
22 L10, L11, L12, L13, L14, L15, L16, L17, R10, R11, R12, R13, R14, R15, R16, R17, \
23 L20, L21, L22, L23, L24, L25, L26, L27, R20, R21, R22, R23, R24, R25, R26, R27, \
24 L30, L31, L32, L33, L34, L35, L36, L37, R30, R31, R32, R33, R34, R35, R36, R37, \
25 L40, L41, L42, L43, L44, L45, L46, L47, R40, R41, R42, R43, R44, R45, R46, R47, \
26 L50, L51, L52, L53, L54, L55, L56, L57, R50, R51, R52, R53, R54, R55, R56, R57 \
27 ) \
28 { \
29 { L00, L01, L02, L03, L04, L05, L06, L07 }, \
30 { L10, L11, L12, L13, L14, L15, L16, L17 }, \
31 { L20, L21, L22, L23, L24, L25, L26, L27 }, \
32 { L30, L31, L32, L33, L34, L35, L36, L37 }, \
33 { L40, L41, L42, L43, L44, L45, L46, L47 }, \
34 { L50, L51, L52, L53, L54, L55, L56, L57 }, \
35 { R00, R01, R02, R03, R04, R05, R06, R07 }, \
36 { R10, R11, R12, R13, R14, R15, R16, R17 }, \
37 { R20, R21, R22, R23, R24, R25, R26, R27 }, \
38 { R30, R31, R32, R33, R34, R35, R36, R37 }, \
39 { R40, R41, R42, R43, R44, R45, R46, R47 }, \
40 { R50, R51, R52, R53, R54, R55, R56, R57 } \
41 }
42
43#define LAYOUT LAYOUT_ortho_6x16
44
diff --git a/keyboards/adkb96/rules.mk b/keyboards/adkb96/rules.mk
new file mode 100644
index 000000000..04986eb67
--- /dev/null
+++ b/keyboards/adkb96/rules.mk
@@ -0,0 +1,78 @@
1# MCU name
2#MCU = at90usb1287
3MCU = atmega32u4
4
5# Processor frequency.
6# This will define a symbol, F_CPU, in all source code files equal to the
7# processor frequency in Hz. You can then use this symbol in your source code to
8# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
9# automatically to create a 32-bit value in your source code.
10#
11# This will be an integer division of F_USB below, as it is sourced by
12# F_USB after it has run through any CPU prescalers. Note that this value
13# does not *change* the processor frequency - it should merely be updated to
14# reflect the processor speed set externally so that the code can use accurate
15# software delays.
16F_CPU = 16000000
17
18#
19# LUFA specific
20#
21# Target architecture (see library "Board Types" documentation).
22ARCH = AVR8
23
24# Input clock frequency.
25# This will define a symbol, F_USB, in all source code files equal to the
26# input clock frequency (before any prescaling is performed) in Hz. This value may
27# differ from F_CPU if prescaling is used on the latter, and is required as the
28# raw input clock is fed directly to the PLL sections of the AVR for high speed
29# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30# at the end, this will be done automatically to create a 32-bit value in your
31# source code.
32#
33# If no clock division is performed on the input clock inside the AVR (via the
34# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35F_USB = $(F_CPU)
36
37# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40 # Bootloader selection
41 # Teensy halfkay
42 # Pro Micro caterina
43 # Atmel DFU atmel-dfu
44 # LUFA DFU lufa-dfu
45 # QMK DFU qmk-dfu
46 # atmega32a bootloadHID
47BOOTLOADER = caterina
48
49# Boot Section Size in *bytes*
50# Teensy halfKay 512
51# Teensy++ halfKay 1024
52# Atmel DFU loader 4096
53# LUFA bootloader 4096
54# USBaspLoader 2048
55# OPT_DEFS += -DBOOTLOADER_SIZE=4096
56
57# Build Options
58# change to "no" to disable the options, or define them in the Makefile in
59# the appropriate keymap folder that will get included automatically
60#
61BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000)
62MOUSEKEY_ENABLE = no # Mouse keys(+4700)
63EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
64CONSOLE_ENABLE = no # Console for debug(+400)
65COMMAND_ENABLE = yes # Commands for debug and configuration
66NKRO_ENABLE = yes # Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
67BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
68MIDI_ENABLE = no # MIDI controls
69AUDIO_ENABLE = no # Audio output on port C6
70UNICODE_ENABLE = no # Unicode
71BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
72RGBLIGHT_ENABLE = no # Enable WS2812 RGB underlight.
73# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
74SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
75
76SPLIT_KEYBOARD = yes
77
78DEFAULT_FOLDER = adkb96/rev1