aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/canoe/canoe.c28
-rw-r--r--keyboards/canoe/canoe.h25
-rw-r--r--keyboards/canoe/config.h20
-rw-r--r--keyboards/canoe/info.json394
-rw-r--r--keyboards/canoe/keymaps/iso/keymap.c29
-rw-r--r--keyboards/canoe/readme.md2
6 files changed, 482 insertions, 16 deletions
diff --git a/keyboards/canoe/canoe.c b/keyboards/canoe/canoe.c
index 6a6756234..bc69df2e5 100644
--- a/keyboards/canoe/canoe.c
+++ b/keyboards/canoe/canoe.c
@@ -16,14 +16,33 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#include "canoe.h" 18#include "canoe.h"
19#ifdef BACKLIGHT_ENABLE
20#include "backlight.h"
21#endif
22#ifdef RGBLIGHT_ENABLE
23#include "i2c.h"
19#include "rgblight.h" 24#include "rgblight.h"
25#endif
20 26
21#include <avr/pgmspace.h> 27#ifdef BACKLIGHT_ENABLE
28void backlight_set(uint8_t level) {
29 if (level == 0) {
30 // Turn out the lights
31 PORTD &= ~(1<<0 | 1<<1 | 1<<4 | 1<<6);
32 } else {
33 // Turn on the lights
34 PORTD |= (1<<0 | 1<<1 | 1<<4 | 1<<6);
35 }
36}
22 37
23#include "action_layer.h" 38void backlight_init_ports(void) {
24#include "i2c.h" 39 DDRD |= (1<<0 | 1<<1 | 1<<4 | 1<<6);
25#include "quantum.h" 40 PORTD &= ~(1<<0 | 1<<1 | 1<<4 | 1<<6);
41}
42
43#endif
26 44
45#ifdef RGBLIGHT_ENABLE
27extern rgblight_config_t rgblight_config; 46extern rgblight_config_t rgblight_config;
28 47
29void rgblight_set(void) { 48void rgblight_set(void) {
@@ -43,3 +62,4 @@ __attribute__ ((weak))
43void matrix_scan_user(void) { 62void matrix_scan_user(void) {
44 rgblight_task(); 63 rgblight_task();
45} 64}
65#endif
diff --git a/keyboards/canoe/canoe.h b/keyboards/canoe/canoe.h
index 157aabcf2..5658eb1b4 100644
--- a/keyboards/canoe/canoe.h
+++ b/keyboards/canoe/canoe.h
@@ -18,10 +18,25 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
18#ifndef CANOE_H 18#ifndef CANOE_H
19#define CANOE_H 19#define CANOE_H
20 20
21#define KNO KC_NO
22
23#include "quantum.h" 21#include "quantum.h"
24 22
23#define LAYOUT_iso( \
24 K0D, K0C, K0B, K0A, K09, K08, K07, K06, K05, K04, K03, K02, K01, K00, K0E, \
25 K1D, K1C, K1B, K1A, K19, K18, K17, K16, K15, K14, K13, K12, K11, K1E, \
26 K2D, K2C, K2B, K2A, K29, K28, K27, K26, K25, K24, K23, K22, K10, K21, K2E, \
27 K3D, K4A, K3C, K3B, K3A, K39, K38, K37, K36, K35, K34, K33, K32, K30, K3E, \
28 K4D, K4C, K4B, K48, K44, K43, K42, K40, K4E \
29){ \
30 { K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K0E }, \
31 { K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, K1E }, \
32 { KC_NO, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, K2C, K2D, K2E }, \
33 { K30, KC_NO, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, K3E }, \
34 { K40, KC_NO, K42, K43, K44, KC_NO, KC_NO, KC_NO, K48, KC_NO, K4A, K4B, K4C, K4D, K4E }, \
35 { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
36 { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
37 { KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO }, \
38}
39
25#define LAYOUT( \ 40#define LAYOUT( \
26 KD0, KC0, KB0, KA0, K90, K80, K70, K60, K50, K40, K30, K20, K10, K00, KE0, \ 41 KD0, KC0, KB0, KA0, K90, K80, K70, K60, K50, K40, K30, K20, K10, K00, KE0, \
27 KD1, KC1, KB1, KA1, K91, K81, K71, K61, K51, K41, K31, K21, K11, K01, KE1, \ 42 KD1, KC1, KB1, KA1, K91, K81, K71, K61, K51, K41, K31, K21, K11, K01, KE1, \
@@ -31,9 +46,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
31){ \ 46){ \
32 { K00, K10, K20, K30, K40, K50, K60, K70, K80, K90, KA0, KB0, KC0, KD0, KE0 }, \ 47 { K00, K10, K20, K30, K40, K50, K60, K70, K80, K90, KA0, KB0, KC0, KD0, KE0 }, \
33 { K01, K11, K21, K31, K41, K51, K61, K71, K81, K91, KA1, KB1, KC1, KD1, KE1 }, \ 48 { K01, K11, K21, K31, K41, K51, K61, K71, K81, K91, KA1, KB1, KC1, KD1, KE1 }, \
34 { KNO, K12, K22, K32, K42, K52, K62, K72, K82, K92, KA2, KB2, KC2, KD2, KE2 }, \ 49 { KC_NO, K12, K22, K32, K42, K52, K62, K72, K82, K92, KA2, KB2, KC2, KD2, KE2 }, \
35 { K03, KNO, K23, K33, K43, K53, K63, K73, K83, K93, KA3, KB3, KC3, KD3, KE3 }, \ 50 { K03, KC_NO, K23, K33, K43, K53, K63, K73, K83, K93, KA3, KB3, KC3, KD3, KE3 }, \
36 { K04, KNO, K24, K34, K44, KNO, KNO, KNO, K84, KNO, KNO, KB4, KC4, KD4, KE4 } \ 51 { K04, KC_NO, K24, K34, K44, KC_NO, KC_NO, KC_NO, K84, KC_NO, KC_NO, KB4, KC4, KD4, KE4 } \
37} 52}
38 53
39#endif 54#endif
diff --git a/keyboards/canoe/config.h b/keyboards/canoe/config.h
index f8e368df2..0e70094ae 100644
--- a/keyboards/canoe/config.h
+++ b/keyboards/canoe/config.h
@@ -15,22 +15,30 @@ You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/ 16*/
17 17
18#ifndef BMINI_CONFIG_H 18#ifndef CANOE_CONFIG_H
19#define BMINI_CONFIG_H 19#define CANOE_CONFIG_H
20 20
21#include "config_common.h" 21#include "config_common.h"
22 22
23#define VENDOR_ID 0x20A0 23#define VENDOR_ID 0x20A0
24#define PRODUCT_ID 0x422D 24#define PRODUCT_ID 0x422D
25#define MANUFACTURER percent 25#define MANUFACTURER NotActuallyPercent
26#define PRODUCT canoe 26#define PRODUCT CANOE
27 27
28#define RGBLED_NUM 2 28#define RGBLED_NUM 2
29 29
30/* matrix size */ 30#define MATRIX_ROWS 8
31#define MATRIX_ROWS 5
32#define MATRIX_COLS 15 31#define MATRIX_COLS 15
33 32
33#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6, B7 }
34#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, C1 }
35#define UNUSED_PINS
36
37#define DIODE_DIRECTION COL2ROW
38#define DEBOUNCING_DELAY 5
39
40#define NO_BACKLIGHT_CLOCK
41#define BACKLIGHT_LEVELS 1
34#define RGBLIGHT_ANIMATIONS 42#define RGBLIGHT_ANIMATIONS
35 43
36#define NO_UART 1 44#define NO_UART 1
diff --git a/keyboards/canoe/info.json b/keyboards/canoe/info.json
new file mode 100644
index 000000000..ddabae88c
--- /dev/null
+++ b/keyboards/canoe/info.json
@@ -0,0 +1,394 @@
1{
2 "keyboard_name": "canoe",
3 "maintainer": "qmk",
4 "url": "",
5 "height": 8,
6 "width": 15,
7 "layouts": {
8 "LAYOUT_iso": {
9 "key_count": 68,
10 "layout": [
11 {
12 "label": "Esc",
13 "x": 0,
14 "y": 0
15 },
16 {
17 "label": "!",
18 "x": 1,
19 "y": 0
20 },
21 {
22 "label": "@",
23 "x": 2,
24 "y": 0
25 },
26 {
27 "label": "#",
28 "x": 3,
29 "y": 0
30 },
31 {
32 "label": "$",
33 "x": 4,
34 "y": 0
35 },
36 {
37 "label": "%",
38 "x": 5,
39 "y": 0
40 },
41 {
42 "label": "^",
43 "x": 6,
44 "y": 0
45 },
46 {
47 "label": "&",
48 "x": 7,
49 "y": 0
50 },
51 {
52 "label": "*",
53 "x": 8,
54 "y": 0
55 },
56 {
57 "label": "(",
58 "x": 9,
59 "y": 0
60 },
61 {
62 "label": ")",
63 "x": 10,
64 "y": 0
65 },
66 {
67 "label": "_",
68 "x": 11,
69 "y": 0
70 },
71 {
72 "label": "+",
73 "x": 12,
74 "y": 0
75 },
76 {
77 "label": "Backspace",
78 "w": 2,
79 "x": 13,
80 "y": 0
81 },
82 {
83 "label": "Insert",
84 "x": 15,
85 "y": 0
86 },
87 {
88 "label": "Tab",
89 "w": 1.5,
90 "x": 0,
91 "y": 1
92 },
93 {
94 "label": "Q",
95 "x": 1.5,
96 "y": 1
97 },
98 {
99 "label": "W",
100 "x": 2.5,
101 "y": 1
102 },
103 {
104 "label": "E",
105 "x": 3.5,
106 "y": 1
107 },
108 {
109 "label": "R",
110 "x": 4.5,
111 "y": 1
112 },
113 {
114 "label": "T",
115 "x": 5.5,
116 "y": 1
117 },
118 {
119 "label": "Y",
120 "x": 6.5,
121 "y": 1
122 },
123 {
124 "label": "U",
125 "x": 7.5,
126 "y": 1
127 },
128 {
129 "label": "I",
130 "x": 8.5,
131 "y": 1
132 },
133 {
134 "label": "O",
135 "x": 9.5,
136 "y": 1
137 },
138 {
139 "label": "P",
140 "x": 10.5,
141 "y": 1
142 },
143 {
144 "label": "{",
145 "x": 11.5,
146 "y": 1
147 },
148 {
149 "label": "}",
150 "x": 12.5,
151 "y": 1
152 },
153 {
154 "ks": [
155 [
156 0,
157 0
158 ],
159 [
160 1.5,
161 0
162 ],
163 [
164 1.5,
165 2
166 ],
167 [
168 0.25,
169 2
170 ],
171 [
172 0.25,
173 1
174 ],
175 [
176 0,
177 1
178 ],
179 [
180 0,
181 0
182 ]
183 ],
184 "label": "Enter",
185 "x": 13.5,
186 "y": 1
187 },
188 {
189 "label": "Delete",
190 "x": 15,
191 "y": 1
192 },
193 {
194 "label": "Caps Lock",
195 "w": 1.75,
196 "x": 0,
197 "y": 2
198 },
199 {
200 "label": "A",
201 "x": 1.75,
202 "y": 2
203 },
204 {
205 "label": "S",
206 "x": 2.75,
207 "y": 2
208 },
209 {
210 "label": "D",
211 "x": 3.75,
212 "y": 2
213 },
214 {
215 "label": "F",
216 "x": 4.75,
217 "y": 2
218 },
219 {
220 "label": "G",
221 "x": 5.75,
222 "y": 2
223 },
224 {
225 "label": "H",
226 "x": 6.75,
227 "y": 2
228 },
229 {
230 "label": "J",
231 "x": 7.75,
232 "y": 2
233 },
234 {
235 "label": "K",
236 "x": 8.75,
237 "y": 2
238 },
239 {
240 "label": "l",
241 "x": 9.75,
242 "y": 2
243 },
244 {
245 "label": ":",
246 "x": 10.75,
247 "y": 2
248 },
249 {
250 "label": "\"",
251 "x": 11.75,
252 "y": 2
253 },
254 {
255 "label": "\\",
256 "x": 12.75,
257 "y": 2
258 },
259 {
260 "label": "Home",
261 "x": 15,
262 "y": 2
263 },
264 {
265 "label": "Shift",
266 "w": 1.25,
267 "x": 0,
268 "y": 3
269 },
270 {
271 "label": "~",
272 "x": 1.25,
273 "y": 3
274 },
275 {
276 "label": "Z",
277 "x": 2.25,
278 "y": 3
279 },
280 {
281 "label": "X",
282 "x": 3.25,
283 "y": 3
284 },
285 {
286 "label": "C",
287 "x": 4.25,
288 "y": 3
289 },
290 {
291 "label": "V",
292 "x": 5.25,
293 "y": 3
294 },
295 {
296 "label": "B",
297 "x": 6.25,
298 "y": 3
299 },
300 {
301 "label": "N",
302 "x": 7.25,
303 "y": 3
304 },
305 {
306 "label": "M",
307 "x": 8.25,
308 "y": 3
309 },
310 {
311 "label": "<",
312 "x": 9.25,
313 "y": 3
314 },
315 {
316 "label": ">",
317 "x": 10.25,
318 "y": 3
319 },
320 {
321 "label": "?",
322 "x": 11.25,
323 "y": 3
324 },
325 {
326 "label": "Shift",
327 "w": 1.75,
328 "x": 12.25,
329 "y": 3
330 },
331 {
332 "label": "Up",
333 "x": 14,
334 "y": 3
335 },
336 {
337 "label": "Page Down",
338 "x": 14,
339 "y": 3
340 },
341 {
342 "label": "Control",
343 "w": 1.25,
344 "x": 0,
345 "y": 4
346 },
347 {
348 "label": "Win",
349 "w": 1.25,
350 "x": 1.25,
351 "y": 4
352 },
353 {
354 "label": "Alt",
355 "w": 1.25,
356 "x": 2.5,
357 "y": 4
358 },
359 {
360 "w": 6.25,
361 "x": 3.75,
362 "y": 4
363 },
364 {
365 "label": "Alt",
366 "w": 1.25,
367 "x": 10,
368 "y": 4
369 },
370 {
371 "label": "Fn0",
372 "w": 1.25,
373 "x": 11.25,
374 "y": 4
375 },
376 {
377 "label": "Left",
378 "x": 13,
379 "y": 4
380 },
381 {
382 "label": "Down",
383 "x": 14,
384 "y": 4
385 },
386 {
387 "label": "Right",
388 "x": 15,
389 "y": 4
390 }
391 ]
392 }
393 }
394}
diff --git a/keyboards/canoe/keymaps/iso/keymap.c b/keyboards/canoe/keymaps/iso/keymap.c
new file mode 100644
index 000000000..89af719d1
--- /dev/null
+++ b/keyboards/canoe/keymaps/iso/keymap.c
@@ -0,0 +1,29 @@
1/*
2Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com>
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#include QMK_KEYBOARD_H
19
20const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
21 [0] = LAYOUT_iso(
22 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,
23 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,
24 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,
25 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,
26 KC_LCTL, KC_LALT, KC_LGUI, KC_SPACE, KC_RGUI, KC_RALT, KC_LEFT, KC_DOWN, KC_RIGHT
27 ),
28};
29
diff --git a/keyboards/canoe/readme.md b/keyboards/canoe/readme.md
index 96cd8007c..fa2bfbb33 100644
--- a/keyboards/canoe/readme.md
+++ b/keyboards/canoe/readme.md
@@ -1,7 +1,7 @@
1CANOE 1CANOE
2======== 2========
3 3
4A 65% keyboard with RGB 4A 65% keyboard with some RGB
5 5
6Keyboard Maintainer: QMK Community 6Keyboard Maintainer: QMK Community
7 7