aboutsummaryrefslogtreecommitdiff
path: root/keyboards/kingly_keys
diff options
context:
space:
mode:
authorGarret G <45295190+The-Royal@users.noreply.github.com>2020-11-09 23:03:12 -0600
committerGitHub <noreply@github.com>2020-11-09 21:03:12 -0800
commit53f11668a3399ff1bdf82902a7717832831219bf (patch)
treebbe2e161ff7203ad583bffb380f3a2b82b331256 /keyboards/kingly_keys
parent2ef68a84b68875b189bee58d1fb554ebb62f8e58 (diff)
downloadqmk_firmware-53f11668a3399ff1bdf82902a7717832831219bf.tar.gz
qmk_firmware-53f11668a3399ff1bdf82902a7717832831219bf.zip
[Keyboard] kingly_keys/ave (#10042)
* Add configurator support for "The Ave." keyboard * Update readme.md * update misc nomenclature * add punctuation * fix miss-placed "0" * update README.md * del. duplicate "F11" in visual layout information * Split PCB configurations into subfolders * update layer template to new matrix title * rm primary <keyboard>.c / <keyboard>.h files * add new end line to both .h subfolder fiels * Apply suggestions from code review * tested update to RGB code * update rgb code * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review * Update rules.mk * Update rules.mk * Delete rules.mk * Delete rules.mk * Update rules.mk * Update config.h * Update config.h * Update keymap.c * Update ortho.c * Update ortho.h * Update config.h * Update keymap.c * Update staggered.c * Update staggered.h * Apply suggestions from code review * Update config.h * Update keymap.c * move and duplicate rules.mk file * Update keyboards/kingly_keys/ave/readme.md * Update config.h * Update keyboards/kingly_keys/ave/config.h
Diffstat (limited to 'keyboards/kingly_keys')
-rw-r--r--keyboards/kingly_keys/ave/config.h50
-rw-r--r--keyboards/kingly_keys/ave/ortho/info.json183
-rw-r--r--keyboards/kingly_keys/ave/ortho/keymaps/default/config.h32
-rw-r--r--keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c239
-rw-r--r--keyboards/kingly_keys/ave/ortho/keymaps/default/rules.mk2
-rw-r--r--keyboards/kingly_keys/ave/ortho/ortho.c18
-rw-r--r--keyboards/kingly_keys/ave/ortho/ortho.h67
-rw-r--r--keyboards/kingly_keys/ave/ortho/rules.mk23
-rw-r--r--keyboards/kingly_keys/ave/readme.md21
-rw-r--r--keyboards/kingly_keys/ave/staggered/info.json117
-rw-r--r--keyboards/kingly_keys/ave/staggered/keymaps/default/config.h32
-rw-r--r--keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c241
-rw-r--r--keyboards/kingly_keys/ave/staggered/keymaps/default/rules.mk2
-rw-r--r--keyboards/kingly_keys/ave/staggered/rules.mk23
-rw-r--r--keyboards/kingly_keys/ave/staggered/staggered.c18
-rw-r--r--keyboards/kingly_keys/ave/staggered/staggered.h52
16 files changed, 1120 insertions, 0 deletions
diff --git a/keyboards/kingly_keys/ave/config.h b/keyboards/kingly_keys/ave/config.h
new file mode 100644
index 000000000..06fda4c26
--- /dev/null
+++ b/keyboards/kingly_keys/ave/config.h
@@ -0,0 +1,50 @@
1 /*
2 Copyright 2020 Garret Gartner
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 0x4B4B // "KK"
24#define PRODUCT_ID 0x1225
25#define DEVICE_VER 0x0011
26#define MANUFACTURER Kingly-Keys
27#define PRODUCT The Ave.
28
29/* key matrix size */
30#define MATRIX_ROWS 5
31#define MATRIX_COLS 13
32
33
34#define ENCODERS_PAD_A { B2 }
35#define ENCODERS_PAD_B { B1 }
36
37#define MATRIX_ROW_PINS { B3, F4, F7, F6, F5 }
38#define MATRIX_COL_PINS { C7, C6, B6, B5, B4, D7, D6, D4, D5, D3, D2, D1, D0}
39#define UNUSED_PINS
40
41/* COL2ROW or ROW2COL */
42#define DIODE_DIRECTION COL2ROW
43
44/* Set 0 if debouncing isn't needed */
45#define DEBOUNCE 5
46
47/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
48#define LOCKING_SUPPORT_ENABLE
49/* Locking resynchronize hack */
50#define LOCKING_RESYNC_ENABLE
diff --git a/keyboards/kingly_keys/ave/ortho/info.json b/keyboards/kingly_keys/ave/ortho/info.json
new file mode 100644
index 000000000..9853fcd77
--- /dev/null
+++ b/keyboards/kingly_keys/ave/ortho/info.json
@@ -0,0 +1,183 @@
1{
2 "keyboard_name": "The Ave. (Ortholinear Ed. PCB)",
3 "url": "",
4 "maintainer": "the-royal",
5 "width": 13.5,
6 "height": 5.5,
7 "layouts": {
8 "LAYOUT_ortho_all": {
9 "layout": [
10 {"label":"k001", "x":0.00, "y":0.00},
11 {"label":"k002", "x":1.50, "y":0.00},
12 {"label":"k011", "x":10.5, "y":0.00},
13 {"label":"k012", "x":11.5, "y":0.00},
14 {"label":"k013", "x":12.5, "y":0.00},
15 {"label":"k101", "x":0.00, "y":1.50},
16 {"label":"k102", "x":1.50, "y":1.50},
17 {"label":"k103", "x":2.50, "y":1.50},
18 {"label":"k104", "x":3.50, "y":1.50},
19 {"label":"k105", "x":4.50, "y":1.50},
20 {"label":"k106", "x":5.50, "y":1.50},
21 {"label":"k107", "x":6.50, "y":1.50},
22 {"label":"k108", "x":7.50, "y":1.50},
23 {"label":"k109", "x":8.50, "y":1.50},
24 {"label":"k110", "x":9.50, "y":1.50},
25 {"label":"k111", "x":10.5, "y":1.50},
26 {"label":"k112", "x":11.5, "y":1.50},
27 {"label":"k113", "x":12.5, "y":1.50},
28 {"label":"k201", "x":0.00, "y":2.50},
29 {"label":"k202", "x":1.50, "y":2.50},
30 {"label":"k203", "x":2.50, "y":2.50},
31 {"label":"k204", "x":3.50, "y":2.50},
32 {"label":"k205", "x":4.50, "y":2.50},
33 {"label":"k206", "x":5.50, "y":2.50},
34 {"label":"k207", "x":6.50, "y":2.50},
35 {"label":"k208", "x":7.50, "y":2.50},
36 {"label":"k209", "x":8.50, "y":2.50},
37 {"label":"k210", "x":9.50, "y":2.50},
38 {"label":"k211", "x":10.5, "y":2.50},
39 {"label":"k212", "x":11.5, "y":2.50},
40 {"label":"k213", "x":12.5, "y":2.50},
41 {"label":"k301", "x":0.00, "y":3.50},
42 {"label":"k302", "x":1.50, "y":3.50},
43 {"label":"k303", "x":2.50, "y":3.50},
44 {"label":"k304", "x":3.50, "y":3.50},
45 {"label":"k305", "x":4.50, "y":3.50},
46 {"label":"k306", "x":5.50, "y":3.50},
47 {"label":"k307", "x":6.50, "y":3.50},
48 {"label":"k308", "x":7.50, "y":3.50},
49 {"label":"k309", "x":8.50, "y":3.50},
50 {"label":"k310", "x":9.50, "y":3.50},
51 {"label":"k311", "x":10.5, "y":3.50},
52 {"label":"k312", "x":11.5, "y":3.50},
53 {"label":"k313", "x":12.5, "y":3.50},
54 {"label":"k401", "x":0.00, "y":4.50},
55 {"label":"k402", "x":1.50, "y":4.50},
56 {"label":"k403", "x":2.50, "y":4.50},
57 {"label":"k404", "x":3.50, "y":4.50},
58 {"label":"k405", "x":4.50, "y":4.50},
59 {"label":"k406", "x":5.50, "y":4.50},
60 {"label":"k407", "x":6.50, "y":4.50},
61 {"label":"k408", "x":7.50, "y":4.50},
62 {"label":"k409", "x":8.50, "y":4.50},
63 {"label":"k410", "x":9.50, "y":4.50},
64 {"label":"k411", "x":10.5, "y":4.50},
65 {"label":"k412", "x":11.5, "y":4.50},
66 {"label":"k413", "x":12.5, "y":4.50}
67 ]
68 },
69 "LAYOUT_ortho_2x2u": {
70 "layout": [
71 {"label":"k001", "x":0.00, "y":0.00},
72 {"label":"k002", "x":1.50, "y":0.00},
73 {"label":"k011", "x":10.5, "y":0.00},
74 {"label":"k012", "x":11.5, "y":0.00},
75 {"label":"k013", "x":12.5, "y":0.00},
76 {"label":"k101", "x":0.00, "y":1.50},
77 {"label":"k102", "x":1.50, "y":1.50},
78 {"label":"k103", "x":2.50, "y":1.50},
79 {"label":"k104", "x":3.50, "y":1.50},
80 {"label":"k105", "x":4.50, "y":1.50},
81 {"label":"k106", "x":5.50, "y":1.50},
82 {"label":"k107", "x":6.50, "y":1.50},
83 {"label":"k108", "x":7.50, "y":1.50},
84 {"label":"k109", "x":8.50, "y":1.50},
85 {"label":"k110", "x":9.50, "y":1.50},
86 {"label":"k111", "x":10.5, "y":1.50},
87 {"label":"k112", "x":11.5, "y":1.50},
88 {"label":"k113", "x":12.5, "y":1.50},
89 {"label":"k201", "x":0.00, "y":2.50},
90 {"label":"k202", "x":1.50, "y":2.50},
91 {"label":"k203", "x":2.50, "y":2.50},
92 {"label":"k204", "x":3.50, "y":2.50},
93 {"label":"k205", "x":4.50, "y":2.50},
94 {"label":"k206", "x":5.50, "y":2.50},
95 {"label":"k207", "x":6.50, "y":2.50},
96 {"label":"k208", "x":7.50, "y":2.50},
97 {"label":"k209", "x":8.50, "y":2.50},
98 {"label":"k210", "x":9.50, "y":2.50},
99 {"label":"k211", "x":10.5, "y":2.50},
100 {"label":"k212", "x":11.5, "y":2.50},
101 {"label":"k213", "x":12.5, "y":2.50},
102 {"label":"k301", "x":0.00, "y":3.50},
103 {"label":"k302", "x":1.50, "y":3.50},
104 {"label":"k303", "x":2.50, "y":3.50},
105 {"label":"k304", "x":3.50, "y":3.50},
106 {"label":"k305", "x":4.50, "y":3.50},
107 {"label":"k306", "x":5.50, "y":3.50},
108 {"label":"k307", "x":6.50, "y":3.50},
109 {"label":"k308", "x":7.50, "y":3.50},
110 {"label":"k309", "x":8.50, "y":3.50},
111 {"label":"k310", "x":9.50, "y":3.50},
112 {"label":"k311", "x":10.5, "y":3.50},
113 {"label":"k312", "x":11.5, "y":3.50},
114 {"label":"k313", "x":12.5, "y":3.50},
115 {"label":"k401", "x":0.00, "y":4.50},
116 {"label":"k402", "x":1.50, "y":4.50},
117 {"label":"k403", "x":2.50, "y":4.50},
118 {"label":"k404", "x":3.50, "y":4.50},
119 {"label":"k405", "x":4.50, "y":4.50},
120 {"label":"k406", "x":5.50, "y":4.50, "w":2.00},
121 {"label":"k409", "x":7.50, "y":4.50, "w":2.00},
122 {"label":"k410", "x":9.50, "y":4.50},
123 {"label":"k411", "x":10.5, "y":4.50},
124 {"label":"k412", "x":11.5, "y":4.50},
125 {"label":"k413", "x":12.5, "y":4.50}
126 ]
127 },
128 "LAYOUT_ortho_big_boy": {
129 "layout": [
130 {"label":"k001", "x":0.00, "y":0.00},
131 {"label":"k002", "x":1.50, "y":0.00},
132 {"label":"k011", "x":10.5, "y":0.00},
133 {"label":"k012", "x":11.5, "y":0.00},
134 {"label":"k013", "x":12.5, "y":0.00},
135 {"label":"k101", "x":0.00, "y":1.50},
136 {"label":"k102", "x":1.50, "y":1.50},
137 {"label":"k103", "x":2.50, "y":1.50},
138 {"label":"k104", "x":3.50, "y":1.50},
139 {"label":"k105", "x":4.50, "y":1.50},
140 {"label":"k106", "x":5.50, "y":1.50},
141 {"label":"k107", "x":6.50, "y":1.50},
142 {"label":"k108", "x":7.50, "y":1.50},
143 {"label":"k109", "x":8.50, "y":1.50},
144 {"label":"k110", "x":9.50, "y":1.50},
145 {"label":"k111", "x":10.5, "y":1.50},
146 {"label":"k112", "x":11.5, "y":1.50},
147 {"label":"k113", "x":12.5, "y":1.50},
148 {"label":"k201", "x":0.00, "y":2.50},
149 {"label":"k202", "x":1.50, "y":2.50},
150 {"label":"k203", "x":2.50, "y":2.50},
151 {"label":"k204", "x":3.50, "y":2.50},
152 {"label":"k205", "x":4.50, "y":2.50},
153 {"label":"k206", "x":5.50, "y":2.50},
154 {"label":"k207", "x":6.50, "y":2.50},
155 {"label":"k208", "x":7.50, "y":2.50},
156 {"label":"k209", "x":8.50, "y":2.50},
157 {"label":"k210", "x":9.50, "y":2.50},
158 {"label":"k211", "x":10.5, "y":2.50},
159 {"label":"k212", "x":11.5, "y":2.50},
160 {"label":"k213", "x":12.5, "y":2.50},
161 {"label":"k301", "x":0.00, "y":3.50},
162 {"label":"k302", "x":1.50, "y":3.50},
163 {"label":"k303", "x":2.50, "y":3.50},
164 {"label":"k304", "x":3.50, "y":3.50},
165 {"label":"k305", "x":4.50, "y":3.50},
166 {"label":"k306", "x":5.50, "y":3.50},
167 {"label":"k307", "x":6.50, "y":3.50},
168 {"label":"k308", "x":7.50, "y":3.50},
169 {"label":"k309", "x":8.50, "y":3.50},
170 {"label":"k310", "x":9.50, "y":3.50},
171 {"label":"k311", "x":10.5, "y":3.50},
172 {"label":"k312", "x":11.5, "y":3.50},
173 {"label":"k313", "x":12.5, "y":3.50},
174 {"label":"k401", "x":0.00, "y":4.50},
175 {"label":"k402", "x":1.50, "y":4.50},
176 {"label":"k403", "x":2.50, "y":4.50, "w":1.50},
177 {"label":"k404", "x":4.00, "y":4.50, "w":7.00},
178 {"label":"k405", "x":11.0, "y":4.50, "w":1.50},
179 {"label":"k413", "x":12.5, "y":4.50}
180 ]
181 }
182 }
183}
diff --git a/keyboards/kingly_keys/ave/ortho/keymaps/default/config.h b/keyboards/kingly_keys/ave/ortho/keymaps/default/config.h
new file mode 100644
index 000000000..6fba9d2b9
--- /dev/null
+++ b/keyboards/kingly_keys/ave/ortho/keymaps/default/config.h
@@ -0,0 +1,32 @@
1 /*
2 Copyright 2020 Garret Gartner
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#define TAPPING_TERM_PER_KEY
21
22#ifdef RGBLIGHT_ENABLE
23 /* ws2812 RGB LED */
24 #define RGB_DI_PIN B7
25 #define RGBLED_NUM 2 // Number of LEDs
26
27 #define RGBLIGHT_EFFECT_BREATHING
28/* #define RGBLIGHT_HUE_STEP 6
29* #define RGBLIGHT_SAT_STEP 4
30* #define RGBLIGHT_VAL_STEP 4
31*/
32#endif
diff --git a/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c b/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c
new file mode 100644
index 000000000..4e195d43b
--- /dev/null
+++ b/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c
@@ -0,0 +1,239 @@
1 /*
2 Copyright 2020 Garret Gartner
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#include QMK_KEYBOARD_H
19
20enum avenue_layers {
21 _QWERTY,
22 _LOWER,
23 _RAISE,
24 _FUNCTION
25};
26
27
28
29//Tap Dance Declarations:
30enum avenue_tapcodes {
31 TD_RST,
32 TD_DBQT,
33};
34
35void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) { // *Line_Note.001
36 if (state->count >= 2) {
37 reset_keyboard();
38 reset_tap_dance(state);
39 }
40}
41
42//Tap Dance Functions:
43qk_tap_dance_action_t tap_dance_actions[] = {
44 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset), // References "dance_rst_reset" (*Line_Note.001)
45 [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT)
46};
47
48
49
50// Keymap Customization:
51#define LOWR MO(_LOWER)
52#define RISE MO(_RAISE)
53#define FN MO(_FUNCTION)
54#define GUI KC_LGUI
55#define ALT KC_LALT
56#define SPACE KC_SPACE
57
58 /*
59 * ┌────┐
60 * │ │ = "TRANSPARENT" KEY LOCATION
61 * └────┘
62 */
63
64const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
65
66 /* _QWERTY (Base)
67 *
68 * ┌────┐ ┌────┐ ┌────┬────┬────┐
69 * │MUTE│ │Esc │ │ \ │ - │ = │
70 * └────┘ └────┘ └────┴────┴────┘
71 * ┌────┐ ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
72 * │Home│ │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │BkSp│
73 * ├────┤ ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
74 * │PgUp│ │CAPS│ A │ S │ D │ F │ G │ H │ J │ K │ L │ ; │ ' │
75 * ├────┤ ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
76 * │PgDn│ │Shft│ Z │ X │ C │ V │ B │ N │ M │ , │ . │ / │Entr│
77 * ├────┤ ├────┼────┼────┼────┼────┼────┴────┼────┼────┼────┼────┼────┤
78 * │End │ │CTL │GUI │ALT │FUNC│LOWR│ │ │RISE│Left│Down│ Up │Rght│
79 * └────┘ └────┴────┴────┴────┴────┴─────────┴────┴────┴────┴────┴────┘
80 */
81 [_QWERTY] = LAYOUT_ortho_all(
82 KC_MUTE, KC_ESC, KC_BSLS, KC_MINUS, KC_EQUAL,
83 KC_HOME, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
84 KC_PGUP, KC_LCTL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT,
85 KC_PGDN, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT,
86 KC_END, KC_DEL, GUI, ALT, FN, LOWR, SPACE, SPACE, RISE, KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT
87 ),
88
89 /* _LOWER (Media / Symbols / Punctuation)
90 *
91 * ┌────┐ ┌────┐ ┌────┬────┬────┐
92 * │ // │ │PRNT│ │ [ │ ] │ ` │
93 * └────┘ └────┘ └────┴────┴────┘
94 * ┌────┐ ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
95 * │PLAY│ │ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ │
96 * ├────┤ ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
97 * │NEXT│ │ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ ( │ ) │ " │
98 * ├────┤ ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
99 * │PREV│ │ │ │ │ │ │ │ │ │ │ │ │ │
100 * ├────┤ ├────┼────┼────┼────┼────┼────┴────┼────┼────┼────┼────┼────┤
101 * │STOP│ │ │ │ │ │ │ │ │ │ │ │ │ │
102 * └────┘ └────┴────┴────┴────┴────┴─────────┴────┴────┴────┴────┴────┘
103 */
104 [_LOWER] = LAYOUT_ortho_all(
105 _______, _______, KC_LBRC, KC_RBRC, KC_GRAVE,
106 KC_MPLY, _______, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
107 KC_MNXT, _______, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DQT,
108 KC_MPRV, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
109 KC_MSTP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
110 ),
111
112 /* _RAISE (Misc Modifiers / Extended Punctuation)
113 *
114 * ┌────┐ ┌────┐ ┌────┬────┬────┐
115 * │PRNT│ │ │ │ { │ } │ ~ │
116 * └────┘ └────┘ └────┴────┴────┘
117 * ┌────┐ ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
118 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
119 * ├────┤ ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
120 * │ │ │CAPS│ │ │ │ │ │ │ │ │ │ │ │
121 * ├────┤ ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
122 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
123 * ├────┤ ├────┼────┼────┼────┼────┼────┴────┼────┼────┼────┼────┼────┤
124 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
125 * └────┘ └────┴────┴────┴────┴────┴─────────┴────┴────┴────┴────┴────┘
126 */
127 [_RAISE] = LAYOUT_ortho_all(
128 KC_PSCR, _______, KC_LCBR, KC_RCBR, KC_TILD,
129 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
130 _______, KC_CAPS, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
131 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
132 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
133 ),
134
135 /* _FUNCTION (F-Row / DFU Reset / RGB Toggle)
136 *
137 * ┌────┐ ┌────┐ ┌────┬────┬────┐
138 * │RSET│ │RGB │ │F11 │F12 │F13 │
139 * └────┘ └────┘ └────┴────┴────┘
140 * ┌────┐ ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
141 * │ │ │ │ F1 │ F2 │ F3 │ F4 │ F5 │ F6 │ F7 │ F8 │ F9 │F10 │ │
142 * ├────┤ ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
143 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
144 * ├────┤ ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
145 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
146 * ├────┤ ├────┼────┼────┼────┼────┼────┴────┼────┼────┼────┼────┼────┤
147 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
148 * └────┘ └────┴────┴────┴────┴────┴─────────┴────┴────┴────┴────┴────┘
149 */
150 [_FUNCTION] = LAYOUT_ortho_all(
151 TD(TD_RST), RGB_TOG, KC_F11, KC_F12, KC_F13,
152 _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
153 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
154 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
155 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
156 )
157};
158
159
160
161// KEYMAP TEMPLATE:
162//
163// /* <_LAYER>:
164// *
165// * ┌────┐ ┌────┐ ┌────┬────┬────┐
166// * │ │ │ │ │ │ │ │
167// * └────┘ └────┘ └────┴────┴────┘
168// * ┌────┐ ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
169// * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
170// * ├────┤ ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
171// * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
172// * ├────┤ ├────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┼────┤
173// * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
174// * ├────┤ ├────┼────┼────┼────┼────┼────┴────┼────┼────┼────┼────┼────┤
175// * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
176// * └────┘ └────┴────┴────┴────┴────┴─────────┴────┴────┴────┴────┴────┘
177// */
178// [<LAYER>] = LAYOUT_ortho_all(
179// _______, _______, _______, _______, _______,
180// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
181// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
182// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
183// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______
184// )
185
186
187// Per-Key Tapping Term Definitions:
188uint16_t get_tapping_term(uint16_t keycode) {
189 switch (keycode) {
190 case TD(TD_DBQT):
191 return 235;
192 default:
193 return TAPPING_TERM;
194 }
195}
196
197
198// Encoder Customization: (*Order-of-Keycode Specific)
199void encoder_update_user(uint8_t index, bool clockwise) {
200 if (index == 0) {
201 if (clockwise) {
202 tap_code(KC_VOLU);
203 } else {
204 tap_code(KC_VOLD);
205 }
206 }
207}
208
209
210
211// RGB Indicator Customization: (100% stolen from Jetpacktuxedo)
212void keyboard_post_init_user(void) {
213 #ifdef RGBLIGHT_ENABLE
214// Set up RGB effects on _only_ the first LED (index 0):
215 rgblight_set_effect_range(0, 1);
216// Set LED effects to breathing mode in a "terminal-green" type color:
217 rgblight_sethsv_noeeprom(50, 255, 100);
218 rgblight_mode_noeeprom(RGBLIGHT_EFFECT_BREATHING + 2);
219// Init the second LED to a static color:
220 setrgb(225, 185, 0, (LED_TYPE *)&led[1]);
221 rgblight_set();
222 #endif // RGBLIGHT_ENABLE
223}
224
225// RGB Indicator Customization: (cont.)
226layer_state_t layer_state_set_user(layer_state_t state){
227 #ifdef RGBLIGHT_ENABLE
228 uint8_t led1r = 0; uint8_t led1g = 0; uint8_t led1b = 0;
229 if (layer_state_cmp(state, 1)) {
230 led1b = 255;
231 }
232 if (layer_state_cmp(state, 3)) {
233 led1r = 200;
234 }
235 setrgb(led1r, led1g, led1b, (LED_TYPE *)&led[1]);
236 rgblight_set();
237 #endif //RGBLIGHT_ENABLE
238 return state;
239}
diff --git a/keyboards/kingly_keys/ave/ortho/keymaps/default/rules.mk b/keyboards/kingly_keys/ave/ortho/keymaps/default/rules.mk
new file mode 100644
index 000000000..a6be46d74
--- /dev/null
+++ b/keyboards/kingly_keys/ave/ortho/keymaps/default/rules.mk
@@ -0,0 +1,2 @@
1# Keymap-Specific Functions
2TAP_DANCE_ENABLE = yes
diff --git a/keyboards/kingly_keys/ave/ortho/ortho.c b/keyboards/kingly_keys/ave/ortho/ortho.c
new file mode 100644
index 000000000..4fb95e768
--- /dev/null
+++ b/keyboards/kingly_keys/ave/ortho/ortho.c
@@ -0,0 +1,18 @@
1 /*
2 Copyright 2020 Garret Gartner
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#include "ortho.h"
diff --git a/keyboards/kingly_keys/ave/ortho/ortho.h b/keyboards/kingly_keys/ave/ortho/ortho.h
new file mode 100644
index 000000000..12cdede53
--- /dev/null
+++ b/keyboards/kingly_keys/ave/ortho/ortho.h
@@ -0,0 +1,67 @@
1 /*
2 Copyright 2020 Garret Gartner
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 "quantum.h"
21
22#define XXXX KC_NO
23
24#define LAYOUT_ortho_all( \
25 k001, k002, k011, k012, k013, \
26 k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, \
27 k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, k213, \
28 k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, \
29 k401, k402, k403, k404, k405, k406, k407, k408, k409, k410, k411, k412, k413 \
30) \
31{ \
32 { k001, k002, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, k011, k012, k013 }, \
33 { k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113 }, \
34 { k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, k213 }, \
35 { k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313 }, \
36 { k401, k402, k403, k404, k405, k406, k407, k408, k409, k410, k411, k412, k413 } \
37}
38
39#define LAYOUT_ortho_2x2u( \
40 k001, k002, k011, k012, k013, \
41 k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, \
42 k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, k213, \
43 k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, \
44 k401, k402, k403, k404, k405, k406, k409, k410, k411, k412, k413 \
45) \
46{ \
47 { k001, k002, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, k011, k012, k013 }, \
48 { k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113 }, \
49 { k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, k213 }, \
50 { k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313 }, \
51 { k401, k402, k403, k404, k405, k406, XXXX, XXXX, k409, k410, k411, k412, k413 } \
52}
53
54#define LAYOUT_ortho_big_boy( \
55 k001, k002, k011, k012, k013, \
56 k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, \
57 k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, k213, \
58 k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313, \
59 k401, k402, k403, k407, k412, k413 \
60) \
61{ \
62 { k001, k002, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, k011, k012, k013 }, \
63 { k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113 }, \
64 { k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k212, k213 }, \
65 { k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k311, k312, k313 }, \
66 { k401, k402, k403, XXXX, XXXX, XXXX, k407, XXXX, XXXX, XXXX, XXXX, k412, k413 } \
67}
diff --git a/keyboards/kingly_keys/ave/ortho/rules.mk b/keyboards/kingly_keys/ave/ortho/rules.mk
new file mode 100644
index 000000000..611eb0ce1
--- /dev/null
+++ b/keyboards/kingly_keys/ave/ortho/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes
diff --git a/keyboards/kingly_keys/ave/readme.md b/keyboards/kingly_keys/ave/readme.md
new file mode 100644
index 000000000..080edf496
--- /dev/null
+++ b/keyboards/kingly_keys/ave/readme.md
@@ -0,0 +1,21 @@
1# The Ave. (Avenue)
2
3![ave-img-1](https://i.imgur.com/l5ah6uMl.png)
4
5A Compact Battlestation.
6
7- Keyboard Maintainer: [The-Royal](https://github.com/the-royal)
8- Hardware Supported: Rev10.0 Avenue PCBs *(Ortholinear & Staggered)*
9- Hardware Availability: Through group-buy or self procurement via open-source files.
10
11Make examples for this keyboard (after setting up your build environment):
12
13**Ortholinear:**
14
15 make kingly_keys/ave/ortho:default
16
17**Staggered:**
18
19 make kingly_keys/ave/staggered:default
20
21See 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/kingly_keys/ave/staggered/info.json b/keyboards/kingly_keys/ave/staggered/info.json
new file mode 100644
index 000000000..9a64cdeb3
--- /dev/null
+++ b/keyboards/kingly_keys/ave/staggered/info.json
@@ -0,0 +1,117 @@
1{
2 "keyboard_name": "The Ave. (Staggered Ed. PCB)",
3 "url": "",
4 "maintainer": "the-royal",
5 "width": 13.5,
6 "height": 5.5,
7 "layouts": {
8 "LAYOUT_staggered": {
9 "layout": [
10 {"label":"k001", "x":0.00, "y":0.00},
11 {"label":"k002", "x":1.50, "y":0.00},
12 {"label":"k011", "x":10.5, "y":0.00},
13 {"label":"k012", "x":11.5, "y":0.00},
14 {"label":"k013", "x":12.5, "y":0.00},
15 {"label":"k101", "x":0.00, "y":1.50},
16 {"label":"k102", "x":1.50, "y":1.50},
17 {"label":"k103", "x":2.50, "y":1.50},
18 {"label":"k104", "x":3.50, "y":1.50},
19 {"label":"k105", "x":4.50, "y":1.50},
20 {"label":"k106", "x":5.50, "y":1.50},
21 {"label":"k107", "x":6.50, "y":1.50},
22 {"label":"k108", "x":7.50, "y":1.50},
23 {"label":"k109", "x":8.50, "y":1.50},
24 {"label":"k110", "x":9.50, "y":1.50},
25 {"label":"k111", "x":10.5, "y":1.50},
26 {"label":"k112", "x":11.5, "y":1.50},
27 {"label":"k113", "x":12.5, "y":1.50},
28 {"label":"k201", "x":0.00, "y":2.50},
29 {"label":"k202", "x":1.50, "y":2.50, "w":1.25},
30 {"label":"k203", "x":2.75, "y":2.50},
31 {"label":"k204", "x":3.75, "y":2.50},
32 {"label":"k205", "x":4.75, "y":2.50},
33 {"label":"k206", "x":5.75, "y":2.50},
34 {"label":"k207", "x":6.75, "y":2.50},
35 {"label":"k208", "x":7.75, "y":2.50},
36 {"label":"k209", "x":8.75, "y":2.50},
37 {"label":"k210", "x":9.75, "y":2.50},
38 {"label":"k211", "x":10.75, "y":2.5},
39 {"label":"k213", "x":11.75, "y":2.5, "w":1.75},
40 {"label":"k301", "x":0.00, "y":3.50},
41 {"label":"k302", "x":1.50, "y":3.50, "w":1.75},
42 {"label":"k303", "x":3.25, "y":3.50},
43 {"label":"k304", "x":4.25, "y":3.50},
44 {"label":"k305", "x":5.25, "y":3.50},
45 {"label":"k306", "x":6.25, "y":3.50},
46 {"label":"k307", "x":7.25, "y":3.50},
47 {"label":"k308", "x":8.25, "y":3.50},
48 {"label":"k309", "x":9.25, "y":3.50},
49 {"label":"k310", "x":10.25, "y":3.50},
50 {"label":"k312", "x":11.25, "y":3.50},
51 {"label":"k313", "x":12.25, "y":3.50, "w":1.25},
52 {"label":"k401", "x":0.00, "y":4.50},
53 {"label":"k402", "x":1.50, "y":4.50, "w":1.25},
54 {"label":"k403", "x":2.75, "y":4.50},
55 {"label":"k404", "x":3.75, "y":4.50, "w":1.25},
56 {"label":"k406", "x":5.00, "y":4.50, "w":2.75},
57 {"label":"k408", "x":7.75, "y":4.50, "w":2.25},
58 {"label":"k411", "x":10.0, "y":4.50, "w":1.25},
59 {"label":"k412", "x":11.25, "y":4.50},
60 {"label":"k413", "x":12.25, "y":4.50, "w":1.25}
61 ]
62 },
63 "LAYOUT_staggered_big_boy": {
64 "layout": [
65 {"label":"k001", "x":0.00, "y":0.00},
66 {"label":"k002", "x":1.50, "y":0.00},
67 {"label":"k011", "x":10.5, "y":0.00},
68 {"label":"k012", "x":11.5, "y":0.00},
69 {"label":"k013", "x":12.5, "y":0.00},
70 {"label":"k101", "x":0.00, "y":1.50},
71 {"label":"k102", "x":1.50, "y":1.50},
72 {"label":"k103", "x":2.50, "y":1.50},
73 {"label":"k104", "x":3.50, "y":1.50},
74 {"label":"k105", "x":4.50, "y":1.50},
75 {"label":"k106", "x":5.50, "y":1.50},
76 {"label":"k107", "x":6.50, "y":1.50},
77 {"label":"k108", "x":7.50, "y":1.50},
78 {"label":"k109", "x":8.50, "y":1.50},
79 {"label":"k110", "x":9.50, "y":1.50},
80 {"label":"k111", "x":10.5, "y":1.50},
81 {"label":"k112", "x":11.5, "y":1.50},
82 {"label":"k113", "x":12.5, "y":1.50},
83 {"label":"k201", "x":0.00, "y":2.50},
84 {"label":"k202", "x":1.50, "y":2.50, "w":1.25},
85 {"label":"k203", "x":2.75, "y":2.50},
86 {"label":"k204", "x":3.75, "y":2.50},
87 {"label":"k205", "x":4.75, "y":2.50},
88 {"label":"k206", "x":5.75, "y":2.50},
89 {"label":"k207", "x":6.75, "y":2.50},
90 {"label":"k208", "x":7.75, "y":2.50},
91 {"label":"k209", "x":8.75, "y":2.50},
92 {"label":"k210", "x":9.75, "y":2.50},
93 {"label":"k211", "x":10.75, "y":2.5},
94 {"label":"k213", "x":11.75, "y":2.5, "w":1.75},
95 {"label":"k301", "x":0.00, "y":3.50},
96 {"label":"k302", "x":1.50, "y":3.50, "w":1.75},
97 {"label":"k303", "x":3.25, "y":3.50},
98 {"label":"k304", "x":4.25, "y":3.50},
99 {"label":"k305", "x":5.25, "y":3.50},
100 {"label":"k306", "x":6.25, "y":3.50},
101 {"label":"k307", "x":7.25, "y":3.50},
102 {"label":"k308", "x":8.25, "y":3.50},
103 {"label":"k309", "x":9.25, "y":3.50},
104 {"label":"k310", "x":10.25, "y":3.50},
105 {"label":"k312", "x":11.25, "y":3.50},
106 {"label":"k313", "x":12.25, "y":3.50, "w":1.25},
107 {"label":"k401", "x":0.00, "y":4.50},
108 {"label":"k402", "x":1.50, "y":4.50, "w":1.25},
109 {"label":"k403", "x":2.75, "y":4.50},
110 {"label":"k406", "x":3.75, "y":4.50, "w":6.25},
111 {"label":"k411", "x":10.0, "y":4.50, "w":1.25},
112 {"label":"k412", "x":11.25, "y":4.50},
113 {"label":"k413", "x":12.25, "y":4.50, "w":1.25}
114 ]
115 }
116 }
117}
diff --git a/keyboards/kingly_keys/ave/staggered/keymaps/default/config.h b/keyboards/kingly_keys/ave/staggered/keymaps/default/config.h
new file mode 100644
index 000000000..6fba9d2b9
--- /dev/null
+++ b/keyboards/kingly_keys/ave/staggered/keymaps/default/config.h
@@ -0,0 +1,32 @@
1 /*
2 Copyright 2020 Garret Gartner
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#define TAPPING_TERM_PER_KEY
21
22#ifdef RGBLIGHT_ENABLE
23 /* ws2812 RGB LED */
24 #define RGB_DI_PIN B7
25 #define RGBLED_NUM 2 // Number of LEDs
26
27 #define RGBLIGHT_EFFECT_BREATHING
28/* #define RGBLIGHT_HUE_STEP 6
29* #define RGBLIGHT_SAT_STEP 4
30* #define RGBLIGHT_VAL_STEP 4
31*/
32#endif
diff --git a/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c b/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c
new file mode 100644
index 000000000..16f469b53
--- /dev/null
+++ b/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c
@@ -0,0 +1,241 @@
1 /*
2 Copyright 2020 Garret Gartner
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#include QMK_KEYBOARD_H
19
20enum avenue_layers {
21 _QWERTY,
22 _LOWER,
23 _RAISE,
24 _FUNCTION
25};
26
27
28
29//Tap Dance Declarations:
30enum avenue_tapcodes {
31 TD_RST,
32 TD_DBQT,
33};
34
35void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) { // *Line_Note.001
36 if (state->count >= 2) {
37 reset_keyboard();
38 reset_tap_dance(state);
39 }
40}
41
42//Tap Dance Functions:
43qk_tap_dance_action_t tap_dance_actions[] = {
44 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset), // References "dance_rst_reset" (*Line_Note.001)
45 [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT)
46};
47
48
49
50// Keymap Customization:
51#define LOWR MO(_LOWER)
52#define RISE MO(_RAISE)
53#define FN MO(_FUNCTION)
54#define GUI KC_LGUI
55#define ALT KC_LALT
56#define SPACE KC_SPACE
57
58 /*
59 * ┌────┐
60 * │ │ = "TRANSPARENT" KEY LOCATION
61 * └────┘
62 */
63
64const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
65
66 /* _QWERTY (Base)
67 *
68 * ┌────┐ ┌────┐ ┌────┬────┬────┐
69 * │MUTE│ │Esc │ │ ( │ ) │ ; │
70 * └────┘ └────┘ └────┴────┴────┘
71 * ┌────┐ ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
72 * │Home│ │Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │BkSp│
73 * ├────┤ ├────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴────┤
74 * │PgUp│ │CAPS │ A │ S │ D │ F │ G │ H │ J │ K │ L │ Enter │
75 * ├────┤ ├─────┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─────┤
76 * │PgDn│ │LShft │ Z │ X │ C │ V │ B │ N │ M │ , │ . │RISE │
77 * ├────┤ ├─────┬──┴─┬──┴──┬─┴────┴────┴──┬─┴────┴───┬┴────┼────┼─────┤
78 * │End │ │LCtrl│GUI │ALT │ LOWR │ │RAlt │RCTL│FUNC │
79 * └────┘ └─────┴────┴─────┴──────────────┴──────────┴─────┴────┴─────┘
80 */
81 [_QWERTY] = LAYOUT_staggered(
82 KC_MUTE, KC_ESC, KC_LPRN, KC_RPRN, KC_SCLN,
83 KC_HOME, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC,
84 KC_PGUP, KC_CAPS, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_ENT,
85 KC_PGDN, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, RISE,
86 KC_END, KC_LCTL, GUI, ALT, LOWR, SPACE, KC_RALT, KC_RCTL, FN
87 ),
88
89 /* _LOWER (Symbols / Punctuation)
90 *
91 * ┌────┐ ┌────┐ ┌────┬────┬────┐
92 * │ │ │ │ │ [ │ ] │ : │
93 * └────┘ └────┘ └────┴────┴────┘
94 * ┌────┐ ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
95 * │ - │ │ │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 0 │ │
96 * ├────┤ ├────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴────┤
97 * │ \ │ │ │ ! │ @ │ # │ $ │ % │ ^ │ & │ * │ │ '/" │
98 * ├────┤ ├─────┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─────┤
99 * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
100 * ├────┤ ├─────┬──┴─┬──┴──┬─┴────┴────┴──┬─┴────┴───┬┴────┼────┼─────┤
101 * │ _ │ │ │ │ │ │ │ │ │ │
102 * └────┘ └─────┴────┴─────┴──────────────┴──────────┴─────┴────┴─────┘
103 */
104 [_LOWER] = LAYOUT_staggered(
105 _______, _______, KC_LBRC, KC_RBRC, KC_COLON,
106 KC_MINUS, KC_GRAVE, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, _______,
107 KC_BSLS, KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, _______, TD(TD_DBQT),
108 KC_PIPE, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
109 KC_UNDS, _______, _______, _______, _______, _______, _______, _______, _______
110 ),
111
112 /* _RAISE (Misc Modifiers / Extended Punctuation)
113 *
114 * ┌────┐ ┌────┐ ┌────┬────┬────┐
115 * │PRNT│ │ │ │ { │ } │ + │
116 * └────┘ └────┘ └────┴────┴────┘
117 * ┌────┐ ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
118 * │ │ │ │ │ │ │ │ │ │ │ │ Up │ │ │
119 * ├────┤ ├────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴────┤
120 * │ │ │CAPS │ │ │ │ │ │ │ │Left│Rght│ │
121 * ├────┤ ├─────┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─────┤
122 * │ │ │ │ │ │ │ │ │ │ │Down│ / │ │
123 * ├────┤ ├─────┬──┴─┬──┴──┬─┴────┴────┴──┬─┴────┴───┬┴────┼────┼─────┤
124 * │ │ │ │ │ │ │ │ │ ? │ │
125 * └────┘ └─────┴────┴─────┴──────────────┴──────────┴─────┴────┴─────┘
126 */
127 [_RAISE] = LAYOUT_staggered(
128 KC_PSCR, _______, KC_LCBR, KC_RCBR, KC_PLUS,
129 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_UP, _______, _______,
130 _______, KC_CAPS, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_RIGHT, _______,
131 _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_DOWN, KC_SLSH, _______,
132 _______, _______, _______, _______, _______, _______, _______, KC_QUES, _______
133 ),
134
135 /* _FUNCTION (F-Row / DFU Reset / RGB Toggle)
136 *
137 * ┌────┐ ┌────┐ ┌────┬────┬────┐
138 * │RSET│ │RGB │ │F11 │F12 │F13 │
139 * └────┘ └────┘ └────┴────┴────┘
140 * ┌────┐ ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
141 * │ │ │ │ F1 │ F2 │ F3 │ F4 │ F5 │ F6 │ F7 │ F8 │ F9 │F10 │ │
142 * ├────┤ ├────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴────┤
143 * │ │ │ │ │ │ │ │ │ │ │ │ │ = │
144 * ├────┤ ├─────┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─────┤
145 * │ │ │ │ │ │ │ │ │ │ │ │ │ │
146 * ├────┤ ├─────┬──┴─┬──┴──┬─┴────┴────┴──┬─┴────┴───┬┴────┼────┼─────┤
147 * │ │ │ │ │ │ │ │ │ │ │
148 * └────┘ └─────┴────┴─────┴──────────────┴──────────┴─────┴────┴─────┘
149 */
150 [_FUNCTION] = LAYOUT_staggered(
151 TD(TD_RST), RGB_TOG, KC_F11, KC_F12, KC_F13,
152 _______, _______, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, _______,
153 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_EQUAL,
154 _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
155 _______, _______, _______, _______, _______, _______, _______, _______, _______
156 )
157};
158
159
160
161// KEYMAP TEMPLATE:
162//
163// /* <_LAYER>:
164// *
165// * ┌────┐ ┌────┐ ┌────┬────┬────┐
166// * │ │ │ │ │ │ │ │
167// * └────┘ └────┘ └────┴────┴────┘
168// * ┌────┐ ┌────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┬────┐
169// * │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
170// * ├────┤ ├────┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴┬───┴────┤
171// * │ │ │ │ │ │ │ │ │ │ │ │ │ │
172// * ├────┤ ├─────┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─┴──┬─────┤
173// * │ │ │ │ │ │ │ │ │ │ │ │ │ │
174// * ├────┤ ├─────┬──┴─┬──┴──┬─┴────┴────┴──┬─┴────┴───┬┴────┼────┼─────┤
175// * │ │ │ │ │ │ │ │ │ │ │
176// * └────┘ └─────┴────┴─────┴──────────────┴──────────┴─────┴────┴─────┘
177// */
178// [<_LAYER>] = LAYOUT_staggered(
179// _______, _______, _______, _______, _______,
180// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
181// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
182// _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
183// _______, _______, _______, _______, _______, _______, _______, _______, _______
184// )
185
186
187
188// Per-Key Tapping Term Definitions:
189uint16_t get_tapping_term(uint16_t keycode) {
190 switch (keycode) {
191 case TD(TD_DBQT):
192 return 235;
193 default:
194 return TAPPING_TERM;
195 }
196}
197
198
199
200// Encoder Customization: (*Order-of-Keycode Specific)
201void encoder_update_user(uint8_t index, bool clockwise) {
202 if (index == 0) {
203 if (clockwise) {
204 tap_code(KC_VOLU);
205 } else {
206 tap_code(KC_VOLD);
207 }
208 }
209}
210
211
212
213// RGB Indicator Customization: (100% stolen from Jetpacktuxedo)
214void keyboard_post_init_user(void) {
215 #ifdef RGBLIGHT_ENABLE
216// Set up RGB effects on _only_ the first LED (index 0):
217 rgblight_set_effect_range(0, 1);
218// Set LED effects to breathing mode in a "terminal-green" type color:
219 rgblight_sethsv_noeeprom(50, 255, 100);
220 rgblight_mode_noeeprom(RGBLIGHT_EFFECT_BREATHING + 2);
221// Init the second LED to a static color:
222 setrgb(225, 185, 0, (LED_TYPE *)&led[1]);
223 rgblight_set();
224 #endif // RGBLIGHT_ENABLE
225}
226
227// RGB Indicator Customization: (cont.)
228layer_state_t layer_state_set_user(layer_state_t state){
229 #ifdef RGBLIGHT_ENABLE
230 uint8_t led1r = 0; uint8_t led1g = 0; uint8_t led1b = 0;
231 if (layer_state_cmp(state, 1)) {
232 led1b = 255;
233 }
234 if (layer_state_cmp(state, 3)) {
235 led1r = 200;
236 }
237 setrgb(led1r, led1g, led1b, (LED_TYPE *)&led[1]);
238 rgblight_set();
239 #endif //RGBLIGHT_ENABLE
240 return state;
241}
diff --git a/keyboards/kingly_keys/ave/staggered/keymaps/default/rules.mk b/keyboards/kingly_keys/ave/staggered/keymaps/default/rules.mk
new file mode 100644
index 000000000..a6be46d74
--- /dev/null
+++ b/keyboards/kingly_keys/ave/staggered/keymaps/default/rules.mk
@@ -0,0 +1,2 @@
1# Keymap-Specific Functions
2TAP_DANCE_ENABLE = yes
diff --git a/keyboards/kingly_keys/ave/staggered/rules.mk b/keyboards/kingly_keys/ave/staggered/rules.mk
new file mode 100644
index 000000000..611eb0ce1
--- /dev/null
+++ b/keyboards/kingly_keys/ave/staggered/rules.mk
@@ -0,0 +1,23 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = no # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23ENCODER_ENABLE = yes
diff --git a/keyboards/kingly_keys/ave/staggered/staggered.c b/keyboards/kingly_keys/ave/staggered/staggered.c
new file mode 100644
index 000000000..4aa0d45ea
--- /dev/null
+++ b/keyboards/kingly_keys/ave/staggered/staggered.c
@@ -0,0 +1,18 @@
1 /*
2 Copyright 2020 Garret Gartner
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#include "staggered.h"
diff --git a/keyboards/kingly_keys/ave/staggered/staggered.h b/keyboards/kingly_keys/ave/staggered/staggered.h
new file mode 100644
index 000000000..674122bc0
--- /dev/null
+++ b/keyboards/kingly_keys/ave/staggered/staggered.h
@@ -0,0 +1,52 @@
1 /*
2 Copyright 2020 Garret Gartner
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 "quantum.h"
21
22#define XXXX KC_NO
23
24#define LAYOUT_staggered( \
25 k001, k002, k011, k012, k013, \
26 k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, \
27 k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k213, \
28 k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k312, k313, \
29 k401, k402, k403, k404, k406, k408, k411, k412, k413 \
30) \
31{ \
32 { k001, k002, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, k011, k012, k013 }, \
33 { k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113 }, \
34 { k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, XXXX, k213 }, \
35 { k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, XXXX, k312, k313 }, \
36 { k401, k402, k403, k404, XXXX, k406, XXXX, k408, XXXX, XXXX, k411, k412, k413 } \
37}
38
39#define LAYOUT_staggered_big_boy( \
40 k001, k002, k011, k012, k013, \
41 k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113, \
42 k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, k213, \
43 k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, k312, k313, \
44 k401, k402, k403, k406, k411, k412, k413 \
45) \
46{ \
47 { k001, k002, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, XXXX, k011, k012, k013 }, \
48 { k101, k102, k103, k104, k105, k106, k107, k108, k109, k110, k111, k112, k113 }, \
49 { k201, k202, k203, k204, k205, k206, k207, k208, k209, k210, k211, XXXX, k213 }, \
50 { k301, k302, k303, k304, k305, k306, k307, k308, k309, k310, XXXX, k312, k313 }, \
51 { k401, k402, k403, XXXX, XXXX, k406, XXXX, XXXX, XXXX, XXXX, k411, k412, k413 } \
52}