diff options
author | Elliot Powell <32494740+e11i0t23@users.noreply.github.com> | 2019-05-28 19:35:19 +0100 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-05-28 11:35:19 -0700 |
commit | a31c2ac03e78078f796df6e6cca08186368a1d72 (patch) | |
tree | 8988c025ec80f6189a0c2f7900f2521a772b0e2a | |
parent | 4d46489a2ac4ff7099e9b7498e34c6201f0b14cb (diff) | |
download | qmk_firmware-a31c2ac03e78078f796df6e6cca08186368a1d72.tar.gz qmk_firmware-a31c2ac03e78078f796df6e6cca08186368a1d72.zip |
[Keyboard] Merge Commissions to repo (#5995)
* Moved commisions to one folder
* Update keyboards/ep/comsn/hs68/config.h
Co-Authored-By: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
* Resolve merge issues
* Fix comiplation issues
21 files changed, 1545 insertions, 0 deletions
diff --git a/keyboards/ep/comsn/hs68/config.h b/keyboards/ep/comsn/hs68/config.h new file mode 100644 index 000000000..db633a250 --- /dev/null +++ b/keyboards/ep/comsn/hs68/config.h | |||
@@ -0,0 +1,59 @@ | |||
1 | /* | ||
2 | Copyright 2019 Elliot Powell | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along 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 0x6868 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Elliot Powell | ||
27 | #define PRODUCT ephs68 | ||
28 | #define DESCRIPTION A Hotswapable keyboard for kayak | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 5 | ||
32 | #define MATRIX_COLS 15 | ||
33 | |||
34 | /* | ||
35 | * Keyboard Matrix Assignments | ||
36 | * | ||
37 | * Change this to how you wired your keyboard | ||
38 | * COLS: AVR pins used for columns, left to right | ||
39 | * ROWS: AVR pins used for rows, top to bottom | ||
40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
42 | * | ||
43 | */ | ||
44 | #define MATRIX_ROW_PINS \ | ||
45 | { B6, B5, B4, D0, F6 } | ||
46 | #define MATRIX_COL_PINS \ | ||
47 | { B0, B1, B3, B2, B7, D3, F1, D5, D6, D7, F4, F5, C7, C6, F0 } | ||
48 | #define UNUSED_PINS | ||
49 | |||
50 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
51 | #define DIODE_DIRECTION COL2ROW | ||
52 | |||
53 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
54 | #define DEBOUNCE 5 | ||
55 | |||
56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
57 | #define LOCKING_SUPPORT_ENABLE | ||
58 | /* Locking resynchronize hack */ | ||
59 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/ep/comsn/hs68/hs68.c b/keyboards/ep/comsn/hs68/hs68.c new file mode 100644 index 000000000..fdde3ad78 --- /dev/null +++ b/keyboards/ep/comsn/hs68/hs68.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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 "hs68.h" | ||
17 | |||
18 | void matrix_init_kb(void) { | ||
19 | // put your keyboard start-up code here | ||
20 | // runs once when the firmware starts up | ||
21 | |||
22 | matrix_init_user(); | ||
23 | } | ||
24 | |||
25 | void matrix_scan_kb(void) { | ||
26 | // put your looping keyboard code here | ||
27 | // runs every cycle (a lot) | ||
28 | |||
29 | matrix_scan_user(); | ||
30 | } | ||
31 | |||
32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
33 | // put your per-action keyboard code here | ||
34 | // runs for every action, just before processing by the firmware | ||
35 | |||
36 | return process_record_user(keycode, record); | ||
37 | } | ||
38 | |||
39 | void led_set_kb(uint8_t usb_led) { | ||
40 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
41 | |||
42 | led_set_user(usb_led); | ||
43 | } | ||
diff --git a/keyboards/ep/comsn/hs68/hs68.h b/keyboards/ep/comsn/hs68/hs68.h new file mode 100644 index 000000000..394208c55 --- /dev/null +++ b/keyboards/ep/comsn/hs68/hs68.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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 xxx KC_NO | ||
29 | |||
30 | #define LAYOUT( \ | ||
31 | K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E, \ | ||
32 | K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1E, \ | ||
33 | K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E, \ | ||
34 | K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E, \ | ||
35 | K40, K41, K42, K46, K4A, K4B, K4C, K4D, K4E \ | ||
36 | ) { \ | ||
37 | {K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E}, \ | ||
38 | {K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, xxx, K1E}, \ | ||
39 | {K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E}, \ | ||
40 | {K30, K31, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E}, \ | ||
41 | { K40, K41, K42, xxx, xxx, xxx, K46, xxx, xxx, xxx, K4A, K4B, K4C, K4D, K4E } \ | ||
42 | } | ||
diff --git a/keyboards/ep/comsn/hs68/info.json b/keyboards/ep/comsn/hs68/info.json new file mode 100644 index 000000000..957684bc5 --- /dev/null +++ b/keyboards/ep/comsn/hs68/info.json | |||
@@ -0,0 +1,364 @@ | |||
1 | { | ||
2 | "keyboard_name": "EPHS68", | ||
3 | "maintainer": "Elliot Powell (u/e11i0t23)", | ||
4 | "width": 16, | ||
5 | "height": 5, | ||
6 | "layouts": { | ||
7 | "LAYOUT": { | ||
8 | "layout": [ | ||
9 | { | ||
10 | "label": "ESC", | ||
11 | "x": 0, | ||
12 | "y": 0 | ||
13 | }, | ||
14 | { | ||
15 | "label": "!", | ||
16 | "x": 1, | ||
17 | "y": 0 | ||
18 | }, | ||
19 | { | ||
20 | "label": "\"", | ||
21 | "x": 2, | ||
22 | "y": 0 | ||
23 | }, | ||
24 | { | ||
25 | "label": "\u00a3", | ||
26 | "x": 3, | ||
27 | "y": 0 | ||
28 | }, | ||
29 | { | ||
30 | "label": "$", | ||
31 | "x": 4, | ||
32 | "y": 0 | ||
33 | }, | ||
34 | { | ||
35 | "label": "%", | ||
36 | "x": 5, | ||
37 | "y": 0 | ||
38 | }, | ||
39 | { | ||
40 | "label": "^", | ||
41 | "x": 6, | ||
42 | "y": 0 | ||
43 | }, | ||
44 | { | ||
45 | "label": "&", | ||
46 | "x": 7, | ||
47 | "y": 0 | ||
48 | }, | ||
49 | { | ||
50 | "label": "*", | ||
51 | "x": 8, | ||
52 | "y": 0 | ||
53 | }, | ||
54 | { | ||
55 | "label": "(", | ||
56 | "x": 9, | ||
57 | "y": 0 | ||
58 | }, | ||
59 | { | ||
60 | "label": ")", | ||
61 | "x": 10, | ||
62 | "y": 0 | ||
63 | }, | ||
64 | { | ||
65 | "label": "_", | ||
66 | "x": 11, | ||
67 | "y": 0 | ||
68 | }, | ||
69 | { | ||
70 | "label": "+", | ||
71 | "x": 12, | ||
72 | "y": 0 | ||
73 | }, | ||
74 | { | ||
75 | "label": "Backspace", | ||
76 | "x": 13, | ||
77 | "y": 0, | ||
78 | "w": 2 | ||
79 | }, | ||
80 | { | ||
81 | "label": "GRAV", | ||
82 | "x": 15, | ||
83 | "y": 0 | ||
84 | }, | ||
85 | { | ||
86 | "label": "Tab", | ||
87 | "x": 0, | ||
88 | "y": 1, | ||
89 | "w": 1.5 | ||
90 | }, | ||
91 | { | ||
92 | "label": "Q", | ||
93 | "x": 1.5, | ||
94 | "y": 1 | ||
95 | }, | ||
96 | { | ||
97 | "label": "W", | ||
98 | "x": 2.5, | ||
99 | "y": 1 | ||
100 | }, | ||
101 | { | ||
102 | "label": "E", | ||
103 | "x": 3.5, | ||
104 | "y": 1 | ||
105 | }, | ||
106 | { | ||
107 | "label": "R", | ||
108 | "x": 4.5, | ||
109 | "y": 1 | ||
110 | }, | ||
111 | { | ||
112 | "label": "T", | ||
113 | "x": 5.5, | ||
114 | "y": 1 | ||
115 | }, | ||
116 | { | ||
117 | "label": "Y", | ||
118 | "x": 6.5, | ||
119 | "y": 1 | ||
120 | }, | ||
121 | { | ||
122 | "label": "U", | ||
123 | "x": 7.5, | ||
124 | "y": 1 | ||
125 | }, | ||
126 | { | ||
127 | "label": "I", | ||
128 | "x": 8.5, | ||
129 | "y": 1 | ||
130 | }, | ||
131 | { | ||
132 | "label": "O", | ||
133 | "x": 9.5, | ||
134 | "y": 1 | ||
135 | }, | ||
136 | { | ||
137 | "label": "P", | ||
138 | "x": 10.5, | ||
139 | "y": 1 | ||
140 | }, | ||
141 | { | ||
142 | "label": "{", | ||
143 | "x": 11.5, | ||
144 | "y": 1 | ||
145 | }, | ||
146 | { | ||
147 | "label": "}", | ||
148 | "x": 12.5, | ||
149 | "y": 1 | ||
150 | }, | ||
151 | { | ||
152 | "label": "DEL", | ||
153 | "x": 15, | ||
154 | "y": 1 | ||
155 | }, | ||
156 | { | ||
157 | "label": "Caps Lock", | ||
158 | "x": 0, | ||
159 | "y": 2, | ||
160 | "w": 1.75 | ||
161 | }, | ||
162 | { | ||
163 | "label": "A", | ||
164 | "x": 1.75, | ||
165 | "y": 2 | ||
166 | }, | ||
167 | { | ||
168 | "label": "S", | ||
169 | "x": 2.75, | ||
170 | "y": 2 | ||
171 | }, | ||
172 | { | ||
173 | "label": "D", | ||
174 | "x": 3.75, | ||
175 | "y": 2 | ||
176 | }, | ||
177 | { | ||
178 | "label": "F", | ||
179 | "x": 4.75, | ||
180 | "y": 2 | ||
181 | }, | ||
182 | { | ||
183 | "label": "G", | ||
184 | "x": 5.75, | ||
185 | "y": 2 | ||
186 | }, | ||
187 | { | ||
188 | "label": "H", | ||
189 | "x": 6.75, | ||
190 | "y": 2 | ||
191 | }, | ||
192 | { | ||
193 | "label": "J", | ||
194 | "x": 7.75, | ||
195 | "y": 2 | ||
196 | }, | ||
197 | { | ||
198 | "label": "K", | ||
199 | "x": 8.75, | ||
200 | "y": 2 | ||
201 | }, | ||
202 | { | ||
203 | "label": "L", | ||
204 | "x": 9.75, | ||
205 | "y": 2 | ||
206 | }, | ||
207 | { | ||
208 | "label": ":", | ||
209 | "x": 10.75, | ||
210 | "y": 2 | ||
211 | }, | ||
212 | { | ||
213 | "label": "@", | ||
214 | "x": 11.75, | ||
215 | "y": 2 | ||
216 | }, | ||
217 | { | ||
218 | "label": "~", | ||
219 | "x": 12.75, | ||
220 | "y": 2 | ||
221 | }, | ||
222 | { | ||
223 | "label": "Enter", | ||
224 | "x": 13.75, | ||
225 | "y": 1, | ||
226 | "w": 1.25, | ||
227 | "h": 2 | ||
228 | }, | ||
229 | { | ||
230 | "label": "PGUP", | ||
231 | "x": 15, | ||
232 | "y": 2 | ||
233 | }, | ||
234 | { | ||
235 | "label": "Shift", | ||
236 | "x": 0, | ||
237 | "y": 3, | ||
238 | "w": 1.25 | ||
239 | }, | ||
240 | { | ||
241 | "label": "|", | ||
242 | "x": 1.25, | ||
243 | "y": 3 | ||
244 | }, | ||
245 | { | ||
246 | "label": "Z", | ||
247 | "x": 2.25, | ||
248 | "y": 3 | ||
249 | }, | ||
250 | { | ||
251 | "label": "X", | ||
252 | "x": 3.25, | ||
253 | "y": 3 | ||
254 | }, | ||
255 | { | ||
256 | "label": "C", | ||
257 | "x": 4.25, | ||
258 | "y": 3 | ||
259 | }, | ||
260 | { | ||
261 | "label": "V", | ||
262 | "x": 5.25, | ||
263 | "y": 3 | ||
264 | }, | ||
265 | { | ||
266 | "label": "B", | ||
267 | "x": 6.25, | ||
268 | "y": 3 | ||
269 | }, | ||
270 | { | ||
271 | "label": "N", | ||
272 | "x": 7.25, | ||
273 | "y": 3 | ||
274 | }, | ||
275 | { | ||
276 | "label": "M", | ||
277 | "x": 8.25, | ||
278 | "y": 3 | ||
279 | }, | ||
280 | { | ||
281 | "label": "<", | ||
282 | "x": 9.25, | ||
283 | "y": 3 | ||
284 | }, | ||
285 | { | ||
286 | "label": ">", | ||
287 | "x": 10.25, | ||
288 | "y": 3 | ||
289 | }, | ||
290 | { | ||
291 | "label": "?", | ||
292 | "x": 11.25, | ||
293 | "y": 3 | ||
294 | }, | ||
295 | { | ||
296 | "label": "Shift", | ||
297 | "x": 12.25, | ||
298 | "y": 3, | ||
299 | "w": 1.75 | ||
300 | }, | ||
301 | { | ||
302 | "label": "UP", | ||
303 | "x": 14, | ||
304 | "y": 3 | ||
305 | }, | ||
306 | { | ||
307 | "label": "PGDN", | ||
308 | "x": 15, | ||
309 | "y": 3 | ||
310 | }, | ||
311 | { | ||
312 | "label": "Ctrl", | ||
313 | "x": 0, | ||
314 | "y": 4, | ||
315 | "w": 1.25 | ||
316 | }, | ||
317 | { | ||
318 | "label": "Win", | ||
319 | "x": 1.25, | ||
320 | "y": 4, | ||
321 | "w": 1.25 | ||
322 | }, | ||
323 | { | ||
324 | "label": "Alt", | ||
325 | "x": 2.5, | ||
326 | "y": 4, | ||
327 | "w": 1.25 | ||
328 | }, | ||
329 | { | ||
330 | "x": 3.75, | ||
331 | "y": 4, | ||
332 | "w": 6.25 | ||
333 | }, | ||
334 | { | ||
335 | "label": "AltGr", | ||
336 | "x": 10, | ||
337 | "y": 4, | ||
338 | "w": 1.25 | ||
339 | }, | ||
340 | { | ||
341 | "label": "Win", | ||
342 | "x": 11.25, | ||
343 | "y": 4, | ||
344 | "w": 1.25 | ||
345 | }, | ||
346 | { | ||
347 | "label": "LEFT", | ||
348 | "x": 13, | ||
349 | "y": 4 | ||
350 | }, | ||
351 | { | ||
352 | "label": "DOWN", | ||
353 | "x": 14, | ||
354 | "y": 4 | ||
355 | }, | ||
356 | { | ||
357 | "label": "RIGHT", | ||
358 | "x": 15, | ||
359 | "y": 4 | ||
360 | } | ||
361 | ] | ||
362 | } | ||
363 | } | ||
364 | } | ||
diff --git a/keyboards/ep/comsn/hs68/keymaps/default/keymap.c b/keyboards/ep/comsn/hs68/keymaps/default/keymap.c new file mode 100644 index 000000000..b2972da6d --- /dev/null +++ b/keyboards/ep/comsn/hs68/keymaps/default/keymap.c | |||
@@ -0,0 +1,27 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
2 | * | ||
3 | * This program is free software: you can redistribute it and/or modify | ||
4 | * it under the terms of the GNU General Public License as published by | ||
5 | * the Free Software Foundation, either version 2 of the License, or | ||
6 | * (at your option) any later version. | ||
7 | * | ||
8 | * This program is distributed in the hope that it will be useful, | ||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
11 | * GNU General Public License for more details. | ||
12 | * | ||
13 | * You should have received a copy of the GNU General Public License | ||
14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
15 | */ | ||
16 | |||
17 | #include QMK_KEYBOARD_H | ||
18 | |||
19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
20 | [0] = LAYOUT( | ||
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_INS, | ||
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_DEL, | ||
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_NUBS, KC_ENT, KC_END, | ||
24 | KC_LSFT, KC_NUHS, 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_PGDN, | ||
25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPACE, KC_RALT, KC_RGUI, KC_LEFT, KC_DOWN, KC_RIGHT | ||
26 | ), | ||
27 | }; | ||
diff --git a/keyboards/ep/comsn/hs68/readme.md b/keyboards/ep/comsn/hs68/readme.md new file mode 100644 index 000000000..0f230208f --- /dev/null +++ b/keyboards/ep/comsn/hs68/readme.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # hs68 | ||
2 | |||
3 | Hotswap 68% deisnged for the Kayak | ||
4 | |||
5 | Keyboard Maintainer: [e11i0t23](https://github.com/e11i0t23) | ||
6 | Hardware Supported: ephs68 pcb. Kayak case kits | ||
7 | Hardware Availability: None | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make ep/comsn/hs68:default | ||
12 | |||
13 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/ep/comsn/hs68/rules.mk b/keyboards/ep/comsn/hs68/rules.mk new file mode 100644 index 000000000..b7d3b9b52 --- /dev/null +++ b/keyboards/ep/comsn/hs68/rules.mk | |||
@@ -0,0 +1,80 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Processor frequency. | ||
5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
8 | # automatically to create a 32-bit value in your source code. | ||
9 | # | ||
10 | # This will be an integer division of F_USB below, as it is sourced by | ||
11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
12 | # does not *change* the processor frequency - it should merely be updated to | ||
13 | # reflect the processor speed set externally so that the code can use accurate | ||
14 | # software delays. | ||
15 | F_CPU = 16000000 | ||
16 | |||
17 | |||
18 | # | ||
19 | # LUFA specific | ||
20 | # | ||
21 | # Target architecture (see library "Board Types" documentation). | ||
22 | ARCH = 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. | ||
35 | F_USB = $(F_CPU) | ||
36 | |||
37 | # Interrupt driven control endpoint task(+60) | ||
38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
39 | |||
40 | |||
41 | # Bootloader selection | ||
42 | # Teensy halfkay | ||
43 | # Pro Micro caterina | ||
44 | # Atmel DFU atmel-dfu | ||
45 | # LUFA DFU lufa-dfu | ||
46 | # QMK DFU qmk-dfu | ||
47 | # atmega32a bootloadHID | ||
48 | BOOTLOADER = atmel-dfu | ||
49 | |||
50 | |||
51 | # If you don't know the bootloader type, then you can specify the | ||
52 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
53 | # Teensy halfKay 512 | ||
54 | # Teensy++ halfKay 1024 | ||
55 | # Atmel DFU loader 4096 | ||
56 | # LUFA bootloader 4096 | ||
57 | # USBaspLoader 2048 | ||
58 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
59 | |||
60 | |||
61 | # Build Options | ||
62 | # change yes to no to disable | ||
63 | # | ||
64 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
65 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | ||
66 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
67 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
68 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
69 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
70 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
71 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
72 | NKRO_ENABLE = no # USB Nkey Rollover | ||
73 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
74 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
75 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
76 | UNICODE_ENABLE = no # Unicode | ||
77 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
78 | AUDIO_ENABLE = no # Audio output on port C6 | ||
79 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
80 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||
diff --git a/keyboards/ep/comsn/mollydooker/config.h b/keyboards/ep/comsn/mollydooker/config.h new file mode 100644 index 000000000..3ba661525 --- /dev/null +++ b/keyboards/ep/comsn/mollydooker/config.h | |||
@@ -0,0 +1,214 @@ | |||
1 | /* | ||
2 | Copyright 2019 Elliot Powell | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along 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 0x9696 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Elliot Powell | ||
27 | #define PRODUCT mollydooker | ||
28 | #define DESCRIPTION Custom southpaw replacement PCB | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 5 | ||
32 | #define MATRIX_COLS 19 | ||
33 | |||
34 | /* | ||
35 | * Keyboard Matrix Assignments | ||
36 | * | ||
37 | * Change this to how you wired your keyboard | ||
38 | * COLS: AVR pins used for columns, left to right | ||
39 | * ROWS: AVR pins used for rows, top to bottom | ||
40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
42 | * | ||
43 | */ | ||
44 | #define MATRIX_ROW_PINS \ | ||
45 | { F4, F5, F6, F7, D2 } | ||
46 | #define MATRIX_COL_PINS \ | ||
47 | { B1, B2, B3, E6, B7, F1, F0, D0, D1, D7, D5, D4, D6, B4, B5, D3, B6, C6, C7 } | ||
48 | #define UNUSED_PINS | ||
49 | |||
50 | /* COL2ROW, ROW2COL, or CUSTOM_MATRIX */ | ||
51 | #define DIODE_DIRECTION COL2ROW | ||
52 | |||
53 | // #endif | ||
54 | |||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
56 | #define DEBOUNCE 5 | ||
57 | |||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
59 | //#define MATRIX_HAS_GHOST | ||
60 | |||
61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
62 | #define LOCKING_SUPPORT_ENABLE | ||
63 | /* Locking resynchronize hack */ | ||
64 | #define LOCKING_RESYNC_ENABLE | ||
65 | |||
66 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
67 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
68 | */ | ||
69 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
70 | #define RGB_DI_PIN B0 | ||
71 | #define RGBLIGHT_ANIMATIONS | ||
72 | #define RGBLED_NUM 84 | ||
73 | #define RGBLIGHT_LIMIT_VAL 35 | ||
74 | #define RGBLIGHT_HUE_STEP 10 | ||
75 | #define RGBLIGHT_SAT_STEP 17 | ||
76 | #define RGBLIGHT_VAL_STEP 17 | ||
77 | |||
78 | /* | ||
79 | * Force NKRO | ||
80 | * | ||
81 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
82 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
83 | * makefile for this to work.) | ||
84 | * | ||
85 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
86 | * until the next keyboard reset. | ||
87 | * | ||
88 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
89 | * fully operational during normal computer usage. | ||
90 | * | ||
91 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
92 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
93 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
94 | * power-up. | ||
95 | * | ||
96 | */ | ||
97 | //#define FORCE_NKRO | ||
98 | |||
99 | /* | ||
100 | * Magic Key Options | ||
101 | * | ||
102 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
103 | * the keyboard. They are best used in combination with the HID Listen program, | ||
104 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
105 | * | ||
106 | * The options below allow the magic key functionality to be changed. This is | ||
107 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
108 | * | ||
109 | */ | ||
110 | |||
111 | /* control how magic key switches layers */ | ||
112 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
113 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
114 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
115 | |||
116 | /* override magic key keymap */ | ||
117 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
118 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
119 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
120 | //#define MAGIC_KEY_HELP1 H | ||
121 | //#define MAGIC_KEY_HELP2 SLASH | ||
122 | //#define MAGIC_KEY_DEBUG D | ||
123 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
124 | //#define MAGIC_KEY_DEBUG_KBD K | ||
125 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
126 | //#define MAGIC_KEY_VERSION V | ||
127 | //#define MAGIC_KEY_STATUS S | ||
128 | //#define MAGIC_KEY_CONSOLE C | ||
129 | //#define MAGIC_KEY_LAYER0_ALT1 ESC | ||
130 | //#define MAGIC_KEY_LAYER0_ALT2 GRAVE | ||
131 | //#define MAGIC_KEY_LAYER0 0 | ||
132 | //#define MAGIC_KEY_LAYER1 1 | ||
133 | //#define MAGIC_KEY_LAYER2 2 | ||
134 | //#define MAGIC_KEY_LAYER3 3 | ||
135 | //#define MAGIC_KEY_LAYER4 4 | ||
136 | //#define MAGIC_KEY_LAYER5 5 | ||
137 | //#define MAGIC_KEY_LAYER6 6 | ||
138 | //#define MAGIC_KEY_LAYER7 7 | ||
139 | //#define MAGIC_KEY_LAYER8 8 | ||
140 | //#define MAGIC_KEY_LAYER9 9 | ||
141 | //#define MAGIC_KEY_BOOTLOADER PAUSE | ||
142 | //#define MAGIC_KEY_LOCK CAPS | ||
143 | //#define MAGIC_KEY_EEPROM E | ||
144 | //#define MAGIC_KEY_NKRO N | ||
145 | //#define MAGIC_KEY_SLEEP_LED Z | ||
146 | |||
147 | /* | ||
148 | * Feature disable options | ||
149 | * These options are also useful to firmware size reduction. | ||
150 | */ | ||
151 | |||
152 | /* disable debug print */ | ||
153 | //#define NO_DEBUG | ||
154 | |||
155 | /* disable print */ | ||
156 | //#define NO_PRINT | ||
157 | |||
158 | /* disable action features */ | ||
159 | //#define NO_ACTION_LAYER | ||
160 | //#define NO_ACTION_TAPPING | ||
161 | //#define NO_ACTION_ONESHOT | ||
162 | //#define NO_ACTION_MACRO | ||
163 | //#define NO_ACTION_FUNCTION | ||
164 | |||
165 | /* | ||
166 | * MIDI options | ||
167 | */ | ||
168 | |||
169 | /* Prevent use of disabled MIDI features in the keymap */ | ||
170 | //#define MIDI_ENABLE_STRICT 1 | ||
171 | |||
172 | /* enable basic MIDI features: | ||
173 | - MIDI notes can be sent when in Music mode is on | ||
174 | */ | ||
175 | //#define MIDI_BASIC | ||
176 | |||
177 | /* enable advanced MIDI features: | ||
178 | - MIDI notes can be added to the keymap | ||
179 | - Octave shift and transpose | ||
180 | - Virtual sustain, portamento, and modulation wheel | ||
181 | - etc. | ||
182 | */ | ||
183 | //#define MIDI_ADVANCED | ||
184 | |||
185 | /* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */ | ||
186 | //#define MIDI_TONE_KEYCODE_OCTAVES 1 | ||
187 | |||
188 | /* | ||
189 | * HD44780 LCD Display Configuration | ||
190 | */ | ||
191 | /* | ||
192 | #define LCD_LINES 2 //< number of visible lines of the display | ||
193 | #define LCD_DISP_LENGTH 16 //< visibles characters per line of the display | ||
194 | |||
195 | #define LCD_IO_MODE 1 //< 0: memory mapped mode, 1: IO port mode | ||
196 | |||
197 | #if LCD_IO_MODE | ||
198 | #define LCD_PORT PORTB //< port for the LCD lines | ||
199 | #define LCD_DATA0_PORT LCD_PORT //< port for 4bit data bit 0 | ||
200 | #define LCD_DATA1_PORT LCD_PORT //< port for 4bit data bit 1 | ||
201 | #define LCD_DATA2_PORT LCD_PORT //< port for 4bit data bit 2 | ||
202 | #define LCD_DATA3_PORT LCD_PORT //< port for 4bit data bit 3 | ||
203 | #define LCD_DATA0_PIN 4 //< pin for 4bit data bit 0 | ||
204 | #define LCD_DATA1_PIN 5 //< pin for 4bit data bit 1 | ||
205 | #define LCD_DATA2_PIN 6 //< pin for 4bit data bit 2 | ||
206 | #define LCD_DATA3_PIN 7 //< pin for 4bit data bit 3 | ||
207 | #define LCD_RS_PORT LCD_PORT //< port for RS line | ||
208 | #define LCD_RS_PIN 3 //< pin for RS line | ||
209 | #define LCD_RW_PORT LCD_PORT //< port for RW line | ||
210 | #define LCD_RW_PIN 2 //< pin for RW line | ||
211 | #define LCD_E_PORT LCD_PORT //< port for Enable line | ||
212 | #define LCD_E_PIN 1 //< pin for Enable line | ||
213 | #endif | ||
214 | */ | ||
diff --git a/keyboards/ep/comsn/mollydooker/info.json b/keyboards/ep/comsn/mollydooker/info.json new file mode 100644 index 000000000..6ede5c1d8 --- /dev/null +++ b/keyboards/ep/comsn/mollydooker/info.json | |||
@@ -0,0 +1,96 @@ | |||
1 | { | ||
2 | "keyboard_name": "mollydooker", | ||
3 | "maintainer": "Elliot Powell (u/e11i0t23)", | ||
4 | "width": 20, | ||
5 | "height": 5, | ||
6 | "layouts": { | ||
7 | "LAYOUT": { | ||
8 | "layout": [ | ||
9 | { "label": "VolDn", "x": 0, "y": 0 }, | ||
10 | { "label": "VolUp", "x": 1, "y": 0 }, | ||
11 | { "label": "Mute", "x": 2, "y": 0 }, | ||
12 | { "label": "~", "x": 3, "y": 0 }, | ||
13 | { "label": "Esc", "x": 4, "y": 0 }, | ||
14 | { "label": "!", "x": 5, "y": 0 }, | ||
15 | { "label": "@", "x": 6, "y": 0 }, | ||
16 | { "label": "#", "x": 7, "y": 0 }, | ||
17 | { "label": "$", "x": 8, "y": 0 }, | ||
18 | { "label": "%", "x": 9, "y": 0 }, | ||
19 | { "label": "^", "x": 10, "y": 0 }, | ||
20 | { "label": "&", "x": 11, "y": 0 }, | ||
21 | { "label": "*", "x": 12, "y": 0 }, | ||
22 | { "label": "(", "x": 13, "y": 0 }, | ||
23 | { "label": ")", "x": 14, "y": 0 }, | ||
24 | { "label": "_", "x": 15, "y": 0 }, | ||
25 | { "label": "+", "x": 16, "y": 0 }, | ||
26 | { "label": "Backspace", "x": 17, "y": 0, "w": 2 }, | ||
27 | { "label": "Del", "x": 19, "y": 0 }, | ||
28 | { "label": "7", "x": 0, "y": 1 }, | ||
29 | { "label": "8", "x": 1, "y": 1 }, | ||
30 | { "label": "9", "x": 2, "y": 1 }, | ||
31 | { "label": "+", "x": 3, "y": 1, "h": 2 }, | ||
32 | { "label": "Tab", "x": 4, "y": 1, "w": 1.5 }, | ||
33 | { "label": "Q", "x": 5.5, "y": 1 }, | ||
34 | { "label": "W", "x": 6.5, "y": 1 }, | ||
35 | { "label": "E", "x": 7.5, "y": 1 }, | ||
36 | { "label": "R", "x": 8.5, "y": 1 }, | ||
37 | { "label": "T", "x": 9.5, "y": 1 }, | ||
38 | { "label": "Y", "x": 10.5, "y": 1 }, | ||
39 | { "label": "U", "x": 11.5, "y": 1 }, | ||
40 | { "label": "I", "x": 12.5, "y": 1 }, | ||
41 | { "label": "O", "x": 13.5, "y": 1 }, | ||
42 | { "label": "P", "x": 14.5, "y": 1 }, | ||
43 | { "label": "{", "x": 15.5, "y": 1 }, | ||
44 | { "label": "}", "x": 16.5, "y": 1 }, | ||
45 | { "label": "|", "x": 17.5, "y": 1, "w": 1.5 }, | ||
46 | { "label": "PgUp", "x": 19, "y": 1 }, | ||
47 | { "label": "4", "x": 0, "y": 2 }, | ||
48 | { "label": "5", "x": 1, "y": 2 }, | ||
49 | { "label": "6", "x": 2, "y": 2 }, | ||
50 | { "label": "Caps Lock", "x": 4, "y": 2, "w": 1.75 }, | ||
51 | { "label": "A", "x": 5.75, "y": 2 }, | ||
52 | { "label": "S", "x": 6.75, "y": 2 }, | ||
53 | { "label": "D", "x": 7.75, "y": 2 }, | ||
54 | { "label": "F", "x": 8.75, "y": 2 }, | ||
55 | { "label": "G", "x": 9.75, "y": 2 }, | ||
56 | { "label": "H", "x": 10.75, "y": 2 }, | ||
57 | { "label": "J", "x": 11.75, "y": 2 }, | ||
58 | { "label": "K", "x": 12.75, "y": 2 }, | ||
59 | { "label": "L", "x": 13.75, "y": 2 }, | ||
60 | { "label": ":", "x": 14.75, "y": 2 }, | ||
61 | { "label": "\"", "x": 15.75, "y": 2 }, | ||
62 | { "label": "Enter", "x": 16.75, "y": 2, "w": 2.25 }, | ||
63 | { "label": "PgDn", "x": 19, "y": 2 }, | ||
64 | { "label": "1", "x": 0, "y": 3 }, | ||
65 | { "label": "2", "x": 1, "y": 3 }, | ||
66 | { "label": "3", "x": 2, "y": 3 }, | ||
67 | { "label": "Enter", "x": 3, "y": 3, "h": 2 }, | ||
68 | { "label": "Shift", "x": 4, "y": 3, "w": 2.25 }, | ||
69 | { "label": "Z", "x": 6.25, "y": 3 }, | ||
70 | { "label": "X", "x": 7.25, "y": 3 }, | ||
71 | { "label": "C", "x": 8.25, "y": 3 }, | ||
72 | { "label": "V", "x": 9.25, "y": 3 }, | ||
73 | { "label": "B", "x": 10.25, "y": 3 }, | ||
74 | { "label": "N", "x": 11.25, "y": 3 }, | ||
75 | { "label": "M", "x": 12.25, "y": 3 }, | ||
76 | { "label": "<", "x": 13.25, "y": 3 }, | ||
77 | { "label": ">", "x": 14.25, "y": 3 }, | ||
78 | { "label": "?", "x": 15.25, "y": 3 }, | ||
79 | { "label": "Shift", "x": 16.25, "y": 3, "w": 1.75 }, | ||
80 | { "label": "Up", "x": 18, "y": 3 }, | ||
81 | { "label": "fn0", "x": 19, "y": 3 }, | ||
82 | { "label": "0", "x": 0, "y": 4, "w": 2 }, | ||
83 | { "label": ".", "x": 2, "y": 4 }, | ||
84 | { "label": "Ctrl", "x": 4, "y": 4, "w": 1.25 }, | ||
85 | { "label": "Win", "x": 5.25, "y": 4, "w": 1.25 }, | ||
86 | { "label": "Alt", "x": 6.5, "y": 4, "w": 1.25 }, | ||
87 | { "label": "Space", "x": 7.75, "y": 4, "w": 6.25 }, | ||
88 | { "label": "Alt", "x": 14, "y": 4, "w": 1.5 }, | ||
89 | { "label": "Ctrl", "x": 15.5, "y": 4, "w": 1.5 }, | ||
90 | { "label": "Left", "x": 17, "y": 4 }, | ||
91 | { "label": "Down", "x": 18, "y": 4 }, | ||
92 | { "label": "Right", "x": 19, "y": 4 } | ||
93 | ] | ||
94 | } | ||
95 | } | ||
96 | } | ||
diff --git a/keyboards/ep/comsn/mollydooker/keymaps/default/keymap.c b/keyboards/ep/comsn/mollydooker/keymaps/default/keymap.c new file mode 100644 index 000000000..a213973cd --- /dev/null +++ b/keyboards/ep/comsn/mollydooker/keymaps/default/keymap.c | |||
@@ -0,0 +1,55 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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 QMK_KEYBOARD_H | ||
17 | |||
18 | #ifdef RGBLIGHT_ENABLE | ||
19 | //Following line allows macro to read current RGB settings | ||
20 | extern rgblight_config_t rgblight_config; | ||
21 | #endif | ||
22 | |||
23 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
24 | [0] = LAYOUT( /* Base */ | ||
25 | KC_NLCK, KC_PSLS, KC_PMNS, RGB_MOD, 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_DEL, | ||
26 | KC_P7, KC_P8, KC_P9, KC_PPLS, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, KC_PGUP, | ||
27 | KC_P4, KC_P5, KC_P6, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, KC_PGDN, | ||
28 | KC_P1, KC_P2, KC_P3, KC_PENT, 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_F5, | ||
29 | KC_P0, KC_PDOT, KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT | ||
30 | ), | ||
31 | }; | ||
32 | |||
33 | int RGB_current_mode; | ||
34 | |||
35 | void matrix_init_user(void) { | ||
36 | #ifdef RGBLIGHT_ENABLE | ||
37 | RGB_current_mode = rgblight_config.mode; | ||
38 | #endif | ||
39 | enum rgb_matrix_effects { | ||
40 | RGB_MATRIX_SOLID_COLOR = 1, | ||
41 | #ifdef RGB_MATRIX_KEYPRESSES | ||
42 | RGB_MATRIX_SOLID_REACTIVE, | ||
43 | #endif | ||
44 | RGB_MATRIX_EFFECT_MAX | ||
45 | }; | ||
46 | |||
47 | } | ||
48 | |||
49 | void matrix_scan_user(void) { | ||
50 | |||
51 | } | ||
52 | |||
53 | void led_set_user(uint8_t usb_led) { | ||
54 | |||
55 | } | ||
diff --git a/keyboards/ep/comsn/mollydooker/mollydooker.c b/keyboards/ep/comsn/mollydooker/mollydooker.c new file mode 100644 index 000000000..d0d6f302e --- /dev/null +++ b/keyboards/ep/comsn/mollydooker/mollydooker.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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 "mollydooker.h" | ||
17 | |||
18 | void matrix_init_kb(void) { | ||
19 | // put your keyboard start-up code here | ||
20 | // runs once when the firmware starts up | ||
21 | |||
22 | matrix_init_user(); | ||
23 | } | ||
24 | |||
25 | void matrix_scan_kb(void) { | ||
26 | // put your looping keyboard code here | ||
27 | // runs every cycle (a lot) | ||
28 | |||
29 | matrix_scan_user(); | ||
30 | } | ||
31 | |||
32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
33 | // put your per-action keyboard code here | ||
34 | // runs for every action, just before processing by the firmware | ||
35 | |||
36 | return process_record_user(keycode, record); | ||
37 | } | ||
38 | |||
39 | void led_set_kb(uint8_t usb_led) { | ||
40 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
41 | |||
42 | led_set_user(usb_led); | ||
43 | } | ||
diff --git a/keyboards/ep/comsn/mollydooker/mollydooker.h b/keyboards/ep/comsn/mollydooker/mollydooker.h new file mode 100644 index 000000000..0cdac37a0 --- /dev/null +++ b/keyboards/ep/comsn/mollydooker/mollydooker.h | |||
@@ -0,0 +1,41 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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 | #include "quantum.h" | ||
18 | |||
19 | /* This a shortcut to help you visually see your layout. | ||
20 | * | ||
21 | * The first section contains all of the arguments representing the physical | ||
22 | * layout of the board and position of the keys. | ||
23 | * | ||
24 | * The second converts the arguments into a two-dimensional array which | ||
25 | * represents the switch matrix. | ||
26 | */ | ||
27 | #define xxxx KC_NO | ||
28 | |||
29 | #define LAYOUT( \ | ||
30 | K100, K101, K102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, k114, k115, k116, k117, k118, \ | ||
31 | K200, k201, K202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, k213, k214, k215, k216, k217, k218, \ | ||
32 | K300, k301, K302, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, k314, k315, k317, k318, \ | ||
33 | K400, K401, K402, k403, k404, k405, k406, k407, k408, k409, k410, k411, k412, k413, k414, k416, k417, k418, \ | ||
34 | K500, K502, k504, k505, k506, k509, k513, k514, k516, k517, k518) \ | ||
35 | { \ | ||
36 | {K100, K101, K102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, k114, k115, k116, k117, k118}, \ | ||
37 | {K200, k201, K202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, k213, k214, k215, k216, k217, k218}, \ | ||
38 | {K300, k301, K302, xxxx, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, k314, k315, xxxx, k317, k318}, \ | ||
39 | {K400, K401, K402, k403, k404, k405, k406, k407, k408, k409, k410, k411, k412, k413, k414, xxxx, k416, k417, k418}, \ | ||
40 | {K500, xxxx, K502, xxxx, k504, k505, k506, xxxx, xxxx, k509, xxxx, xxxx, xxxx, k513, k514, xxxx, k516, k517, k518} \ | ||
41 | } | ||
diff --git a/keyboards/ep/comsn/mollydooker/readme.md b/keyboards/ep/comsn/mollydooker/readme.md new file mode 100644 index 000000000..c43875fdd --- /dev/null +++ b/keyboards/ep/comsn/mollydooker/readme.md | |||
@@ -0,0 +1,13 @@ | |||
1 | # mollydooker | ||
2 | |||
3 | A southpaw extended 65 replacement PCB with per key RGB | ||
4 | |||
5 | Keyboard Maintainer: [Elliot Powell](https://github.com/e11i0t23), [/u/e11i0t23](https://reddit.com/u/e11i0t23) | ||
6 | Hardware Supported: mollydooker | ||
7 | Hardware Availability: None | ||
8 | |||
9 | Make example for this keyboard (after setting up your build environment): | ||
10 | |||
11 | make ep/comsn/mollydooker:default | ||
12 | |||
13 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/ep/comsn/mollydooker/rules.mk b/keyboards/ep/comsn/mollydooker/rules.mk new file mode 100644 index 000000000..db4f2edc0 --- /dev/null +++ b/keyboards/ep/comsn/mollydooker/rules.mk | |||
@@ -0,0 +1,80 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Processor frequency. | ||
5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
8 | # automatically to create a 32-bit value in your source code. | ||
9 | # | ||
10 | # This will be an integer division of F_USB below, as it is sourced by | ||
11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
12 | # does not *change* the processor frequency - it should merely be updated to | ||
13 | # reflect the processor speed set externally so that the code can use accurate | ||
14 | # software delays. | ||
15 | F_CPU = 16000000 | ||
16 | |||
17 | |||
18 | # | ||
19 | # LUFA specific | ||
20 | # | ||
21 | # Target architecture (see library "Board Types" documentation). | ||
22 | ARCH = 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. | ||
35 | F_USB = $(F_CPU) | ||
36 | |||
37 | # Interrupt driven control endpoint task(+60) | ||
38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
39 | |||
40 | |||
41 | # Bootloader selection | ||
42 | # Teensy halfkay | ||
43 | # Pro Micro caterina | ||
44 | # Atmel DFU atmel-dfu | ||
45 | # LUFA DFU lufa-dfu | ||
46 | # QMK DFU qmk-dfu | ||
47 | # atmega32a bootloadHID | ||
48 | BOOTLOADER = atmel-dfu | ||
49 | |||
50 | |||
51 | # If you don't know the bootloader type, then you can specify the | ||
52 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
53 | # Teensy halfKay 512 | ||
54 | # Teensy++ halfKay 1024 | ||
55 | # Atmel DFU loader 4096 | ||
56 | # LUFA bootloader 4096 | ||
57 | # USBaspLoader 2048 | ||
58 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
59 | |||
60 | |||
61 | # Build Options | ||
62 | # change yes to no to disable | ||
63 | # | ||
64 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
65 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
66 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
67 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
68 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
69 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
70 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
71 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
72 | NKRO_ENABLE = no # USB Nkey Rollover | ||
73 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
74 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
75 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
76 | UNICODE_ENABLE = no # Unicode | ||
77 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
78 | AUDIO_ENABLE = no # Audio output on port C6 | ||
79 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
80 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||
diff --git a/keyboards/ep/comsn/tf_longeboye/config.h b/keyboards/ep/comsn/tf_longeboye/config.h new file mode 100644 index 000000000..e622010db --- /dev/null +++ b/keyboards/ep/comsn/tf_longeboye/config.h | |||
@@ -0,0 +1,64 @@ | |||
1 | /* | ||
2 | Copyright 2019 Elliot Powell | ||
3 | |||
4 | This program is free software: you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation, either version 2 of the License, or | ||
7 | (at your option) any later version. | ||
8 | |||
9 | This program is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along 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 0x9696 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER Elliot Powell | ||
27 | #define PRODUCT TF Longeboye | ||
28 | #define DESCRIPTION TF Longeboye Designed for Papi SodaMan of MKUK | ||
29 | |||
30 | /* key matrix size */ | ||
31 | #define MATRIX_ROWS 5 | ||
32 | #define MATRIX_COLS 18 | ||
33 | |||
34 | /* | ||
35 | * Keyboard Matrix Assignments | ||
36 | * | ||
37 | * Change this to how you wired your keyboard | ||
38 | * COLS: AVR pins used for columns, left to right | ||
39 | * ROWS: AVR pins used for rows, top to bottom | ||
40 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
41 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
42 | * | ||
43 | */ | ||
44 | #define MATRIX_ROW_PINS \ | ||
45 | { B5, B4, D1, D2, D3 } | ||
46 | #define MATRIX_COL_PINS \ | ||
47 | { F4, F5, F6, F7, B1, B3, B2, B6, F0, F1, C7, D5, B7, E6, D7, C6, D4, D0 } | ||
48 | #define UNUSED_PINS | ||
49 | |||
50 | /* COL2ROW, ROW2COL*/ | ||
51 | #define DIODE_DIRECTION COL2ROW | ||
52 | |||
53 | // #endif | ||
54 | |||
55 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
56 | #define DEBOUNCE 5 | ||
57 | |||
58 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
59 | //#define MATRIX_HAS_GHOST | ||
60 | |||
61 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
62 | #define LOCKING_SUPPORT_ENABLE | ||
63 | /* Locking resynchronize hack */ | ||
64 | #define LOCKING_RESYNC_ENABLE | ||
diff --git a/keyboards/ep/comsn/tf_longeboye/info.json b/keyboards/ep/comsn/tf_longeboye/info.json new file mode 100644 index 000000000..5cfa993d3 --- /dev/null +++ b/keyboards/ep/comsn/tf_longeboye/info.json | |||
@@ -0,0 +1,99 @@ | |||
1 | { | ||
2 | "keyboard_name": "tf_longeboye", | ||
3 | "maintainer": "Elliot Powell (u/e11i0t23)", | ||
4 | "width": 21.5, | ||
5 | "height": 5, | ||
6 | "layouts": { | ||
7 | "LAYOUT": { | ||
8 | "layout": [ | ||
9 | { "label": "Esc", "x": 0, "y": 0 }, | ||
10 | { "label": "!", "x": 1, "y": 0 }, | ||
11 | { "label": "\"", "x": 2, "y": 0 }, | ||
12 | { "label": "\u00a3", "x": 3, "y": 0 }, | ||
13 | { "label": "$", "x": 4, "y": 0 }, | ||
14 | { "label": "%", "x": 5, "y": 0 }, | ||
15 | { "label": "^", "x": 6, "y": 0 }, | ||
16 | { "label": "&", "x": 7, "y": 0 }, | ||
17 | { "label": "*", "x": 8, "y": 0 }, | ||
18 | { "label": "(", "x": 9, "y": 0 }, | ||
19 | { "label": ")", "x": 10, "y": 0 }, | ||
20 | { "label": "_", "x": 11, "y": 0 }, | ||
21 | { "label": "+", "x": 12, "y": 0 }, | ||
22 | { "label": "Backspace", "x": 13, "y": 0, "w": 2 }, | ||
23 | { "label": "Insert", "x": 15.25, "y": 0 }, | ||
24 | { "label": "PgUp", "x": 16.25, "y": 0 }, | ||
25 | { "label": "Num Lock", "x": 17.5, "y": 0 }, | ||
26 | { "label": "/", "x": 18.5, "y": 0 }, | ||
27 | { "label": "*", "x": 19.5, "y": 0 }, | ||
28 | { "label": "-", "x": 20.5, "y": 0 }, | ||
29 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
30 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
31 | { "label": "W", "x": 2.5, "y": 1 }, | ||
32 | { "label": "E", "x": 3.5, "y": 1 }, | ||
33 | { "label": "R", "x": 4.5, "y": 1 }, | ||
34 | { "label": "T", "x": 5.5, "y": 1 }, | ||
35 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
36 | { "label": "U", "x": 7.5, "y": 1 }, | ||
37 | { "label": "I", "x": 8.5, "y": 1 }, | ||
38 | { "label": "O", "x": 9.5, "y": 1 }, | ||
39 | { "label": "P", "x": 10.5, "y": 1 }, | ||
40 | { "label": "{", "x": 11.5, "y": 1 }, | ||
41 | { "label": "}", "x": 12.5, "y": 1 }, | ||
42 | { "label": "Delete", "x": 15.25, "y": 1 }, | ||
43 | { "label": "PgDn", "x": 16.25, "y": 1 }, | ||
44 | { "label": "7", "x": 17.5, "y": 1 }, | ||
45 | { "label": "8", "x": 18.5, "y": 1 }, | ||
46 | { "label": "9", "x": 19.5, "y": 1 }, | ||
47 | { "label": "+", "x": 20.5, "y": 1, "h": 2 }, | ||
48 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
49 | { "label": "A", "x": 1.75, "y": 2 }, | ||
50 | { "label": "S", "x": 2.75, "y": 2 }, | ||
51 | { "label": "D", "x": 3.75, "y": 2 }, | ||
52 | { "label": "F", "x": 4.75, "y": 2 }, | ||
53 | { "label": "G", "x": 5.75, "y": 2 }, | ||
54 | { "label": "H", "x": 6.75, "y": 2 }, | ||
55 | { "label": "J", "x": 7.75, "y": 2 }, | ||
56 | { "label": "K", "x": 8.75, "y": 2 }, | ||
57 | { "label": "L", "x": 9.75, "y": 2 }, | ||
58 | { "label": ":", "x": 10.75, "y": 2 }, | ||
59 | { "label": "@", "x": 11.75, "y": 2 }, | ||
60 | { "label": "~", "x": 12.75, "y": 2 }, | ||
61 | { "label": "Enter", "x": 13.75, "y": 1, "w": 1.25, "h": 2 }, | ||
62 | { "label": "4", "x": 17.5, "y": 2 }, | ||
63 | { "label": "5", "x": 18.5, "y": 2 }, | ||
64 | { "label": "6", "x": 19.5, "y": 2 }, | ||
65 | { "label": "Shift", "x": 0, "y": 3, "w": 1.25 }, | ||
66 | { "label": "|", "x": 1.25, "y": 3 }, | ||
67 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
68 | { "label": "X", "x": 3.25, "y": 3 }, | ||
69 | { "label": "C", "x": 4.25, "y": 3 }, | ||
70 | { "label": "V", "x": 5.25, "y": 3 }, | ||
71 | { "label": "B", "x": 6.25, "y": 3 }, | ||
72 | { "label": "N", "x": 7.25, "y": 3 }, | ||
73 | { "label": "M", "x": 8.25, "y": 3 }, | ||
74 | { "label": "<", "x": 9.25, "y": 3 }, | ||
75 | { "label": ">", "x": 10.25, "y": 3 }, | ||
76 | { "label": "?", "x": 11.25, "y": 3 }, | ||
77 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
78 | { "label": "fn", "x": 14, "y": 3 }, | ||
79 | { "label": "\u2191", "x": 15.25, "y": 3 }, | ||
80 | { "label": "1", "x": 17.5, "y": 3 }, | ||
81 | { "label": "2", "x": 18.5, "y": 3 }, | ||
82 | { "label": "3", "x": 19.5, "y": 3 }, | ||
83 | { "label": "Enter", "x": 20.5, "y": 3, "h": 2 }, | ||
84 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
85 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
86 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
87 | { "x": 3.75, "y": 4, "w": 6.25 }, | ||
88 | { "label": "Alt Gr", "x": 10, "y": 4, "w": 1.25 }, | ||
89 | { "label": "Fn", "x": 11.25, "y": 4, "w": 1.25 }, | ||
90 | { "label": "Ctrl", "x": 12.5, "y": 4, "w": 1.25 }, | ||
91 | { "label": "\u2190", "x": 14.25, "y": 4 }, | ||
92 | { "label": "\u2193", "x": 15.25, "y": 4 }, | ||
93 | { "label": "\u2192", "x": 16.25, "y": 4 }, | ||
94 | { "label": "0", "x": 17.5, "y": 4, "w": 2 }, | ||
95 | { "label": ".", "x": 19.5, "y": 4 } | ||
96 | ] | ||
97 | } | ||
98 | } | ||
99 | } | ||
diff --git a/keyboards/ep/comsn/tf_longeboye/keymaps/default/keymap.c b/keyboards/ep/comsn/tf_longeboye/keymaps/default/keymap.c new file mode 100644 index 000000000..2e9da9b04 --- /dev/null +++ b/keyboards/ep/comsn/tf_longeboye/keymaps/default/keymap.c | |||
@@ -0,0 +1,38 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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 QMK_KEYBOARD_H | ||
17 | |||
18 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
19 | [0] = LAYOUT( /* Base */ | ||
20 | |||
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_INS, KC_HOME, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS, | ||
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_DEL, KC_END, KC_P7, KC_P8, KC_P9, | ||
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_NUHS, KC_ENT, KC_P4, KC_P5, KC_P6, KC_PPLS, | ||
24 | KC_LSFT, KC_NUBS, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, MO(1), KC_UP, KC_P1, KC_P2, KC_P3, KC_PENT, | ||
25 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_RALT, MO(1), KC_RCTL, KC_LEFT, KC_DOWN, KC_RGHT, KC_P0, KC_PDOT | ||
26 | ), | ||
27 | [1] = LAYOUT( /* Base */ | ||
28 | |||
29 | 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_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
31 | KC_TRNS, KC_TRNS, SGUI(KC_S), KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_CALC, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_VOLD, KC_VOLU, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGUP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGDN, KC_TRNS, KC_TRNS, KC_TRNS | ||
34 | ), | ||
35 | |||
36 | }; | ||
37 | |||
38 | |||
diff --git a/keyboards/ep/comsn/tf_longeboye/readme.md b/keyboards/ep/comsn/tf_longeboye/readme.md new file mode 100644 index 000000000..3bd89fbec --- /dev/null +++ b/keyboards/ep/comsn/tf_longeboye/readme.md | |||
@@ -0,0 +1,11 @@ | |||
1 | # TF Longeboye | ||
2 | |||
3 | Keyboard Maintainer: [Elliot Powell](https://github.com/e11i0t23), [/u/e11i0t23](https://reddit.com/u/e11i0t23) | ||
4 | Hardware Supported: TF Longeboye | ||
5 | Hardware Availability: None | ||
6 | |||
7 | Make example for this keyboard (after setting up your build environment): | ||
8 | |||
9 | make ep/comsn/tf_longeboye:default | ||
10 | |||
11 | See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs). | ||
diff --git a/keyboards/ep/comsn/tf_longeboye/rules.mk b/keyboards/ep/comsn/tf_longeboye/rules.mk new file mode 100644 index 000000000..195c9e502 --- /dev/null +++ b/keyboards/ep/comsn/tf_longeboye/rules.mk | |||
@@ -0,0 +1,80 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Processor frequency. | ||
5 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
6 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
7 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
8 | # automatically to create a 32-bit value in your source code. | ||
9 | # | ||
10 | # This will be an integer division of F_USB below, as it is sourced by | ||
11 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
12 | # does not *change* the processor frequency - it should merely be updated to | ||
13 | # reflect the processor speed set externally so that the code can use accurate | ||
14 | # software delays. | ||
15 | F_CPU = 16000000 | ||
16 | |||
17 | |||
18 | # | ||
19 | # LUFA specific | ||
20 | # | ||
21 | # Target architecture (see library "Board Types" documentation). | ||
22 | ARCH = 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. | ||
35 | F_USB = $(F_CPU) | ||
36 | |||
37 | # Interrupt driven control endpoint task(+60) | ||
38 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
39 | |||
40 | |||
41 | # Bootloader selection | ||
42 | # Teensy halfkay | ||
43 | # Pro Micro caterina | ||
44 | # Atmel DFU atmel-dfu | ||
45 | # LUFA DFU lufa-dfu | ||
46 | # QMK DFU qmk-dfu | ||
47 | # atmega32a bootloadHID | ||
48 | BOOTLOADER = atmel-dfu | ||
49 | |||
50 | |||
51 | # If you don't know the bootloader type, then you can specify the | ||
52 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
53 | # Teensy halfKay 512 | ||
54 | # Teensy++ halfKay 1024 | ||
55 | # Atmel DFU loader 4096 | ||
56 | # LUFA bootloader 4096 | ||
57 | # USBaspLoader 2048 | ||
58 | # OPT_DEFS += -DBOOTLOADER_SIZE=4096 | ||
59 | |||
60 | |||
61 | # Build Options | ||
62 | # change yes to no to disable | ||
63 | # | ||
64 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000) | ||
65 | MOUSEKEY_ENABLE = no # Mouse keys(+4700) | ||
66 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | ||
67 | CONSOLE_ENABLE = yes # Console for debug(+400) | ||
68 | COMMAND_ENABLE = yes # Commands for debug and configuration | ||
69 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
70 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
71 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
72 | NKRO_ENABLE = no # USB Nkey Rollover | ||
73 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default | ||
74 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
75 | MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config) | ||
76 | UNICODE_ENABLE = no # Unicode | ||
77 | BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | ||
78 | AUDIO_ENABLE = no # Audio output on port C6 | ||
79 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | ||
80 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | ||
diff --git a/keyboards/ep/comsn/tf_longeboye/tf__longeboye.c b/keyboards/ep/comsn/tf_longeboye/tf__longeboye.c new file mode 100644 index 000000000..9e8141772 --- /dev/null +++ b/keyboards/ep/comsn/tf_longeboye/tf__longeboye.c | |||
@@ -0,0 +1,43 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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 "tf_longeboye.h" | ||
17 | |||
18 | void matrix_init_kb(void) { | ||
19 | // put your keyboard start-up code here | ||
20 | // runs once when the firmware starts up | ||
21 | |||
22 | matrix_init_user(); | ||
23 | } | ||
24 | |||
25 | void matrix_scan_kb(void) { | ||
26 | // put your looping keyboard code here | ||
27 | // runs every cycle (a lot) | ||
28 | |||
29 | matrix_scan_user(); | ||
30 | } | ||
31 | |||
32 | bool process_record_kb(uint16_t keycode, keyrecord_t *record) { | ||
33 | // put your per-action keyboard code here | ||
34 | // runs for every action, just before processing by the firmware | ||
35 | |||
36 | return process_record_user(keycode, record); | ||
37 | } | ||
38 | |||
39 | void led_set_kb(uint8_t usb_led) { | ||
40 | // put your keyboard LED indicator (ex: Caps Lock LED) toggling code here | ||
41 | |||
42 | led_set_user(usb_led); | ||
43 | } | ||
diff --git a/keyboards/ep/comsn/tf_longeboye/tf_longeboye.h b/keyboards/ep/comsn/tf_longeboye/tf_longeboye.h new file mode 100644 index 000000000..f673ff66d --- /dev/null +++ b/keyboards/ep/comsn/tf_longeboye/tf_longeboye.h | |||
@@ -0,0 +1,40 @@ | |||
1 | /* Copyright 2019 Elliot Powell | ||
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( \ | ||
29 | K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K013, K014, K015, K016, K018, K019, K408, K114, \ | ||
30 | K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K113, K115, K116, K118, K119, K407, \ | ||
31 | K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, K214, K218, K219, K405, K216, \ | ||
32 | K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, K315, K318, K319, K404, K316, \ | ||
33 | K400, K401, K402, K406, K410, K411, K413, K414, K415, K416, K418, K403 \ | ||
34 | ) { \ | ||
35 | { K000, K001, K002, K003, K004, K005, K006, K007, K008, K009, K010, K011, K013, K014, K015, K016, K018, K019, }, \ | ||
36 | { K100, K101, K102, K103, K104, K105, K106, K107, K108, K109, K110, K111, K113, K114, K115, K116, K118, K119, }, \ | ||
37 | { K200, K201, K202, K203, K204, K205, K206, K207, K208, K209, K210, K211, K213, K214, KC_NO, K216, K218, K219, }, \ | ||
38 | { K300, K301, K302, K303, K304, K305, K306, K307, K308, K309, K310, K311, K313, K314, K315, K316, K318, K319, }, \ | ||
39 | { K400, K401, K402, K403, K404, K405, K406, K407, K408, KC_NO, K410, K411, K413, K414, K415, K416, K418, KC_NO, } \ | ||
40 | } | ||