diff options
Diffstat (limited to 'keyboards/delikeeb/flatbread60')
-rw-r--r-- | keyboards/delikeeb/flatbread60/config.h | 122 | ||||
-rw-r--r-- | keyboards/delikeeb/flatbread60/flatbread60.c | 18 | ||||
-rw-r--r-- | keyboards/delikeeb/flatbread60/flatbread60.h | 42 | ||||
-rw-r--r-- | keyboards/delikeeb/flatbread60/info.json | 251 | ||||
-rw-r--r-- | keyboards/delikeeb/flatbread60/keymaps/default/keymap.c | 187 | ||||
-rw-r--r-- | keyboards/delikeeb/flatbread60/keymaps/default/readme.md | 1 | ||||
-rw-r--r-- | keyboards/delikeeb/flatbread60/keymaps/via/keymap.c | 114 | ||||
-rw-r--r-- | keyboards/delikeeb/flatbread60/keymaps/via/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/delikeeb/flatbread60/readme.md | 19 | ||||
-rw-r--r-- | keyboards/delikeeb/flatbread60/rules.mk | 18 |
10 files changed, 774 insertions, 0 deletions
diff --git a/keyboards/delikeeb/flatbread60/config.h b/keyboards/delikeeb/flatbread60/config.h new file mode 100644 index 000000000..5d63a8f5f --- /dev/null +++ b/keyboards/delikeeb/flatbread60/config.h | |||
@@ -0,0 +1,122 @@ | |||
1 | /* | ||
2 | Copyright 2020 noclew | ||
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 0x9906 | ||
24 | #define PRODUCT_ID 0x0000 | ||
25 | #define DEVICE_VER 0x0001 | ||
26 | #define MANUFACTURER delikeeb | ||
27 | #define PRODUCT Flatbread60 | ||
28 | |||
29 | /* key matrix size */ | ||
30 | #define MATRIX_ROWS 5 | ||
31 | #define MATRIX_COLS 12 | ||
32 | |||
33 | /* | ||
34 | * Keyboard Matrix Assignments | ||
35 | * | ||
36 | * Change this to how you wired your keyboard | ||
37 | * COLS: AVR pins used for columns, left to right | ||
38 | * ROWS: AVR pins used for rows, top to bottom | ||
39 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
40 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
41 | * | ||
42 | */ | ||
43 | #define MATRIX_ROW_PINS { F6, B1, B3, B2, B6 } | ||
44 | #define MATRIX_COL_PINS { F4, F5, B5, B4, E6, D7, C6, D4, D0, D1, D2, D3 } | ||
45 | #define UNUSED_PINS | ||
46 | |||
47 | /* COL2ROW, ROW2COL*/ | ||
48 | #define DIODE_DIRECTION COL2ROW | ||
49 | |||
50 | // #define BACKLIGHT_PIN B7 | ||
51 | // #define BACKLIGHT_BREATHING | ||
52 | // #define BACKLIGHT_LEVELS 3 | ||
53 | |||
54 | #define RGB_DI_PIN F7 | ||
55 | #ifdef RGB_DI_PIN | ||
56 | #define RGBLED_NUM 19 | ||
57 | #define RGBLIGHT_HUE_STEP 8 | ||
58 | #define RGBLIGHT_SAT_STEP 8 | ||
59 | #define RGBLIGHT_VAL_STEP 8 | ||
60 | #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
61 | #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
62 | /*== all animations enable ==*/ | ||
63 | #define RGBLIGHT_ANIMATIONS | ||
64 | |||
65 | #endif | ||
66 | |||
67 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
68 | #define DEBOUNCE 5 | ||
69 | |||
70 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
71 | //#define MATRIX_HAS_GHOST | ||
72 | |||
73 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
74 | #define LOCKING_SUPPORT_ENABLE | ||
75 | /* Locking resynchronize hack */ | ||
76 | #define LOCKING_RESYNC_ENABLE | ||
77 | |||
78 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
79 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
80 | */ | ||
81 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
82 | |||
83 | /* | ||
84 | * Force NKRO | ||
85 | * | ||
86 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
87 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
88 | * makefile for this to work.) | ||
89 | * | ||
90 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
91 | * until the next keyboard reset. | ||
92 | * | ||
93 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
94 | * fully operational during normal computer usage. | ||
95 | * | ||
96 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
97 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
98 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
99 | * power-up. | ||
100 | * | ||
101 | */ | ||
102 | //#define FORCE_NKRO | ||
103 | |||
104 | /* | ||
105 | * Feature disable options | ||
106 | * These options are also useful to firmware size reduction. | ||
107 | */ | ||
108 | |||
109 | /* disable debug print */ | ||
110 | //#define NO_DEBUG | ||
111 | |||
112 | /* disable print */ | ||
113 | //#define NO_PRINT | ||
114 | |||
115 | /* disable action features */ | ||
116 | //#define NO_ACTION_LAYER | ||
117 | //#define NO_ACTION_TAPPING | ||
118 | //#define NO_ACTION_ONESHOT | ||
119 | |||
120 | /* disable these deprecated features by default */ | ||
121 | #define NO_ACTION_MACRO | ||
122 | #define NO_ACTION_FUNCTION | ||
diff --git a/keyboards/delikeeb/flatbread60/flatbread60.c b/keyboards/delikeeb/flatbread60/flatbread60.c new file mode 100644 index 000000000..0cbc26553 --- /dev/null +++ b/keyboards/delikeeb/flatbread60/flatbread60.c | |||
@@ -0,0 +1,18 @@ | |||
1 | /* Copyright 2020 noclew | ||
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 "flatbread60.h" | ||
18 | |||
diff --git a/keyboards/delikeeb/flatbread60/flatbread60.h b/keyboards/delikeeb/flatbread60/flatbread60.h new file mode 100644 index 000000000..3fb8d7a6f --- /dev/null +++ b/keyboards/delikeeb/flatbread60/flatbread60.h | |||
@@ -0,0 +1,42 @@ | |||
1 | /* Copyright 2020 noclew | ||
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 | #pragma once | ||
18 | |||
19 | #include "quantum.h" | ||
20 | |||
21 | /* This is a shortcut to help you visually see your layout. | ||
22 | * | ||
23 | * The first section contains all of the arguments representing the physical | ||
24 | * layout of the board and position of the keys. | ||
25 | * | ||
26 | * The second converts the arguments into a two-dimensional array which | ||
27 | * represents the switch matrix. | ||
28 | */ | ||
29 | #define LAYOUT_ortho_5x12( \ | ||
30 | k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, \ | ||
31 | k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, \ | ||
32 | k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, \ | ||
33 | k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48, \ | ||
34 | k49, k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k60 \ | ||
35 | ) \ | ||
36 | { \ | ||
37 | { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12 }, \ | ||
38 | { k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24 }, \ | ||
39 | { k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36 }, \ | ||
40 | { k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48 }, \ | ||
41 | { k49, k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k60 } \ | ||
42 | } | ||
diff --git a/keyboards/delikeeb/flatbread60/info.json b/keyboards/delikeeb/flatbread60/info.json new file mode 100644 index 000000000..6de1a7e82 --- /dev/null +++ b/keyboards/delikeeb/flatbread60/info.json | |||
@@ -0,0 +1,251 @@ | |||
1 | { | ||
2 | "keyboard_name": "flatbread60", | ||
3 | "url": "", | ||
4 | "maintainer": "noclew", | ||
5 | "layouts": { | ||
6 | "LAYOUT_ortho_5x12": { | ||
7 | "layout": [ | ||
8 | { | ||
9 | "x": 0, | ||
10 | "y": 0 | ||
11 | }, | ||
12 | { | ||
13 | "x": 1, | ||
14 | "y": 0 | ||
15 | }, | ||
16 | { | ||
17 | "x": 2, | ||
18 | "y": 0 | ||
19 | }, | ||
20 | { | ||
21 | "x": 3, | ||
22 | "y": 0 | ||
23 | }, | ||
24 | { | ||
25 | "x": 4, | ||
26 | "y": 0 | ||
27 | }, | ||
28 | { | ||
29 | "x": 5, | ||
30 | "y": 0 | ||
31 | }, | ||
32 | { | ||
33 | "x": 6, | ||
34 | "y": 0 | ||
35 | }, | ||
36 | { | ||
37 | "x": 7, | ||
38 | "y": 0 | ||
39 | }, | ||
40 | { | ||
41 | "x": 8, | ||
42 | "y": 0 | ||
43 | }, | ||
44 | { | ||
45 | "x": 9, | ||
46 | "y": 0 | ||
47 | }, | ||
48 | { | ||
49 | "x": 10, | ||
50 | "y": 0 | ||
51 | }, | ||
52 | { | ||
53 | "x": 11, | ||
54 | "y": 0 | ||
55 | }, | ||
56 | { | ||
57 | "x": 0, | ||
58 | "y": 1 | ||
59 | }, | ||
60 | { | ||
61 | "x": 1, | ||
62 | "y": 1 | ||
63 | }, | ||
64 | { | ||
65 | "x": 2, | ||
66 | "y": 1 | ||
67 | }, | ||
68 | { | ||
69 | "x": 3, | ||
70 | "y": 1 | ||
71 | }, | ||
72 | { | ||
73 | "x": 4, | ||
74 | "y": 1 | ||
75 | }, | ||
76 | { | ||
77 | "x": 5, | ||
78 | "y": 1 | ||
79 | }, | ||
80 | { | ||
81 | "x": 6, | ||
82 | "y": 1 | ||
83 | }, | ||
84 | { | ||
85 | "x": 7, | ||
86 | "y": 1 | ||
87 | }, | ||
88 | { | ||
89 | "x": 8, | ||
90 | "y": 1 | ||
91 | }, | ||
92 | { | ||
93 | "x": 9, | ||
94 | "y": 1 | ||
95 | }, | ||
96 | { | ||
97 | "x": 10, | ||
98 | "y": 1 | ||
99 | }, | ||
100 | { | ||
101 | "x": 11, | ||
102 | "y": 1 | ||
103 | }, | ||
104 | { | ||
105 | "x": 0, | ||
106 | "y": 2 | ||
107 | }, | ||
108 | { | ||
109 | "x": 1, | ||
110 | "y": 2 | ||
111 | }, | ||
112 | { | ||
113 | "x": 2, | ||
114 | "y": 2 | ||
115 | }, | ||
116 | { | ||
117 | "x": 3, | ||
118 | "y": 2 | ||
119 | }, | ||
120 | { | ||
121 | "x": 4, | ||
122 | "y": 2 | ||
123 | }, | ||
124 | { | ||
125 | "x": 5, | ||
126 | "y": 2 | ||
127 | }, | ||
128 | { | ||
129 | "x": 6, | ||
130 | "y": 2 | ||
131 | }, | ||
132 | { | ||
133 | "x": 7, | ||
134 | "y": 2 | ||
135 | }, | ||
136 | { | ||
137 | "x": 8, | ||
138 | "y": 2 | ||
139 | }, | ||
140 | { | ||
141 | "x": 9, | ||
142 | "y": 2 | ||
143 | }, | ||
144 | { | ||
145 | "x": 10, | ||
146 | "y": 2 | ||
147 | }, | ||
148 | { | ||
149 | "x": 11, | ||
150 | "y": 2 | ||
151 | }, | ||
152 | { | ||
153 | "x": 0, | ||
154 | "y": 3 | ||
155 | }, | ||
156 | { | ||
157 | "x": 1, | ||
158 | "y": 3 | ||
159 | }, | ||
160 | { | ||
161 | "x": 2, | ||
162 | "y": 3 | ||
163 | }, | ||
164 | { | ||
165 | "x": 3, | ||
166 | "y": 3 | ||
167 | }, | ||
168 | { | ||
169 | "x": 4, | ||
170 | "y": 3 | ||
171 | }, | ||
172 | { | ||
173 | "x": 5, | ||
174 | "y": 3 | ||
175 | }, | ||
176 | { | ||
177 | "x": 6, | ||
178 | "y": 3 | ||
179 | }, | ||
180 | { | ||
181 | "x": 7, | ||
182 | "y": 3 | ||
183 | }, | ||
184 | { | ||
185 | "x": 8, | ||
186 | "y": 3 | ||
187 | }, | ||
188 | { | ||
189 | "x": 9, | ||
190 | "y": 3 | ||
191 | }, | ||
192 | { | ||
193 | "x": 10, | ||
194 | "y": 3 | ||
195 | }, | ||
196 | { | ||
197 | "x": 11, | ||
198 | "y": 3 | ||
199 | }, | ||
200 | { | ||
201 | "x": 0, | ||
202 | "y": 4 | ||
203 | }, | ||
204 | { | ||
205 | "x": 1, | ||
206 | "y": 4 | ||
207 | }, | ||
208 | { | ||
209 | "x": 2, | ||
210 | "y": 4 | ||
211 | }, | ||
212 | { | ||
213 | "x": 3, | ||
214 | "y": 4 | ||
215 | }, | ||
216 | { | ||
217 | "x": 4, | ||
218 | "y": 4 | ||
219 | }, | ||
220 | { | ||
221 | "x": 5, | ||
222 | "y": 4 | ||
223 | }, | ||
224 | { | ||
225 | "x": 6, | ||
226 | "y": 4 | ||
227 | }, | ||
228 | { | ||
229 | "x": 7, | ||
230 | "y": 4 | ||
231 | }, | ||
232 | { | ||
233 | "x": 8, | ||
234 | "y": 4 | ||
235 | }, | ||
236 | { | ||
237 | "x": 9, | ||
238 | "y": 4 | ||
239 | }, | ||
240 | { | ||
241 | "x": 10, | ||
242 | "y": 4 | ||
243 | }, | ||
244 | { | ||
245 | "x": 11, | ||
246 | "y": 4 | ||
247 | } | ||
248 | ] | ||
249 | } | ||
250 | } | ||
251 | } | ||
diff --git a/keyboards/delikeeb/flatbread60/keymaps/default/keymap.c b/keyboards/delikeeb/flatbread60/keymaps/default/keymap.c new file mode 100644 index 000000000..ed3ed2603 --- /dev/null +++ b/keyboards/delikeeb/flatbread60/keymaps/default/keymap.c | |||
@@ -0,0 +1,187 @@ | |||
1 | /* Copyright 2020 noclew | ||
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 | // Defines names for use in layer keycodes and the keymap | ||
19 | enum layer_names { _QWERTY, _COLEMAK, _DVORAK, _LOWER, _RAISE, _ADJUST }; | ||
20 | |||
21 | enum layer_keycodes { | ||
22 | QWERTY = SAFE_RANGE, | ||
23 | COLEMAK, | ||
24 | DVORAK, | ||
25 | }; | ||
26 | |||
27 | // Defines the keycodes used by our macros in process_record_user | ||
28 | #define LOWER MO(_LOWER) | ||
29 | #define RAISE MO(_RAISE) | ||
30 | |||
31 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
32 | /* BASE | ||
33 | * ,-----------------------------------------------------------------------------------. | ||
34 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
35 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
36 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Del | | ||
37 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
38 | * | Esc | A | S | D | F | G | H | J | K | L | ; | " | | ||
39 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
40 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
41 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
42 | * | | Ctrl | Alt | GUI |Lower | Space|Space |Raise | Left | Down | Up |Right | | ||
43 | * `-----------------------------------------------------------------------------------' | ||
44 | * */ | ||
45 | [_QWERTY] = LAYOUT_ortho_5x12( | ||
46 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
47 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, | ||
48 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
49 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
50 | KC_NO, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
51 | ), | ||
52 | |||
53 | |||
54 | /* Colemak | ||
55 | * ,-----------------------------------------------------------------------------------. | ||
56 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
57 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
58 | * | Tab | Q | W | F | P | G | J | L | U | Y | ; | Del | | ||
59 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
60 | * | Esc | A | R | S | T | D | H | N | E | I | O | " | | ||
61 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
62 | * | Shift| Z | X | C | V | B | K | M | , | . | / |Enter | | ||
63 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
64 | * | | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
65 | * `-----------------------------------------------------------------------------------' | ||
66 | */ | ||
67 | |||
68 | [_COLEMAK] = LAYOUT_ortho_5x12( | ||
69 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
70 | KC_TAB, KC_Q, KC_W, KC_F, KC_P, KC_G, KC_J, KC_L, KC_U, KC_Y, KC_SCLN, KC_DEL, | ||
71 | KC_ESC, KC_A, KC_R, KC_S, KC_T, KC_D, KC_H, KC_N, KC_E, KC_I, KC_O, KC_QUOT, | ||
72 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_K, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
73 | KC_NO, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
74 | ), | ||
75 | |||
76 | /* Dvorak | ||
77 | * ,-----------------------------------------------------------------------------------. | ||
78 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
79 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
80 | * | Tab | " | , | . | P | Y | F | G | C | R | L | Del | | ||
81 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
82 | * | Esc | A | O | E | U | I | D | H | T | N | S | / | | ||
83 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
84 | * | Shift| ; | Q | J | K | X | B | M | W | V | Z |Enter | | ||
85 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
86 | * | | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up |Right | | ||
87 | * `-----------------------------------------------------------------------------------' | ||
88 | */ | ||
89 | [_DVORAK] = LAYOUT_ortho_5x12( | ||
90 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
91 | KC_TAB, KC_QUOT, KC_COMM, KC_DOT, KC_P, KC_Y, KC_F, KC_G, KC_C, KC_R, KC_L, KC_DEL, | ||
92 | KC_ESC, KC_A, KC_O, KC_E, KC_U, KC_I, KC_D, KC_H, KC_T, KC_N, KC_S, KC_SLSH, | ||
93 | KC_LSFT, KC_SCLN, KC_Q, KC_J, KC_K, KC_X, KC_B, KC_M, KC_W, KC_V, KC_Z, KC_ENT, | ||
94 | KC_NO, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
95 | ), | ||
96 | |||
97 | /* Lower | ||
98 | * ,-----------------------------------------------------------------------------------. | ||
99 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
100 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
101 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
102 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
103 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
104 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
105 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | | | ||
106 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
107 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
108 | * `-----------------------------------------------------------------------------------' | ||
109 | */ | ||
110 | [_LOWER] = LAYOUT_ortho_5x12( | ||
111 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
112 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
113 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
114 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, | ||
115 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
116 | ), | ||
117 | |||
118 | /* Raise | ||
119 | * ,-----------------------------------------------------------------------------------. | ||
120 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
121 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
122 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
123 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
124 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
125 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
126 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | PGUP| PGDN| | | ||
127 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
128 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
129 | * `-----------------------------------------------------------------------------------' | ||
130 | */ | ||
131 | [_RAISE] = LAYOUT_ortho_5x12( | ||
132 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
133 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
134 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
135 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
136 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
137 | ), | ||
138 | |||
139 | /* FN (Lower + Raise) | ||
140 | * ,-----------------------------------------------------------------------------------. | ||
141 | * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | | ||
142 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
143 | * | | Reset| Debug| | | | | | | | | Del | | ||
144 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
145 | * | | | | | |AGNorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
146 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
147 | * | | rgb |rgb M | Hue |brt + |brt - |sat + | | | | | | | ||
148 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
149 | * | | | | | | | | | | | | | ||
150 | * `-----------------------------------------------------------------------------------' | ||
151 | */ | ||
152 | [_ADJUST] = LAYOUT_ortho_5x12( | ||
153 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
154 | _______, RESET, DEBUG, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, | ||
155 | _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, QWERTY, COLEMAK, DVORAK, _______, _______, | ||
156 | _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_VAI, RGB_VAD, RGB_SAI, _______, _______, _______, _______, _______, | ||
157 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
158 | ) | ||
159 | |||
160 | }; | ||
161 | |||
162 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
163 | state = update_tri_layer_state(state, _RAISE, _LOWER, _ADJUST); | ||
164 | return state; | ||
165 | } | ||
166 | |||
167 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
168 | switch (keycode) { | ||
169 | case QWERTY: | ||
170 | if (record->event.pressed) { | ||
171 | print("mode just switched to qwerty and this is a huge string\n"); | ||
172 | set_single_persistent_default_layer(_QWERTY); | ||
173 | } | ||
174 | return false; | ||
175 | case COLEMAK: | ||
176 | if (record->event.pressed) { | ||
177 | set_single_persistent_default_layer(_COLEMAK); | ||
178 | } | ||
179 | return false; | ||
180 | case DVORAK: | ||
181 | if (record->event.pressed) { | ||
182 | set_single_persistent_default_layer(_DVORAK); | ||
183 | } | ||
184 | return false; | ||
185 | } | ||
186 | return true; | ||
187 | } | ||
diff --git a/keyboards/delikeeb/flatbread60/keymaps/default/readme.md b/keyboards/delikeeb/flatbread60/keymaps/default/readme.md new file mode 100644 index 000000000..571cfbcd6 --- /dev/null +++ b/keyboards/delikeeb/flatbread60/keymaps/default/readme.md | |||
@@ -0,0 +1 @@ | |||
# The default keymap for flatbread60 | |||
diff --git a/keyboards/delikeeb/flatbread60/keymaps/via/keymap.c b/keyboards/delikeeb/flatbread60/keymaps/via/keymap.c new file mode 100644 index 000000000..cfba3e11c --- /dev/null +++ b/keyboards/delikeeb/flatbread60/keymaps/via/keymap.c | |||
@@ -0,0 +1,114 @@ | |||
1 | /* Copyright 2020 noclew | ||
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 | enum layer_names { _QWERTY, _LOWER, _RAISE, _ADJUST }; | ||
19 | |||
20 | enum layer_keycodes { | ||
21 | QWERTY = SAFE_RANGE, | ||
22 | COLEMAK, | ||
23 | DVORAK, | ||
24 | }; | ||
25 | |||
26 | #define LOWER MO(_LOWER) | ||
27 | #define RAISE MO(_RAISE) | ||
28 | |||
29 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
30 | /* BASE | ||
31 | * ,-----------------------------------------------------------------------------------. | ||
32 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
33 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
34 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Del | | ||
35 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
36 | * | Esc | A | S | D | F | G | H | J | K | L | ; | " | | ||
37 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
38 | * | Shift| Z | X | C | V | B | N | M | , | . | / |Enter | | ||
39 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
40 | * | | Ctrl | Alt | GUI |Lower | Space|Space |Raise | Left | Down | Up |Right | | ||
41 | * `-----------------------------------------------------------------------------------' | ||
42 | * */ | ||
43 | [_QWERTY] = LAYOUT_ortho_5x12( | ||
44 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
45 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_DEL, | ||
46 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, | ||
47 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_ENT, | ||
48 | KC_NO, KC_LCTL, KC_LALT, KC_LGUI, FN_MO13, KC_SPC, KC_SPC, FN_MO23, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
49 | ), | ||
50 | |||
51 | /* Lower | ||
52 | * ,-----------------------------------------------------------------------------------. | ||
53 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
54 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
55 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
56 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
57 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
58 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
59 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | | | ||
60 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
61 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
62 | * `-----------------------------------------------------------------------------------' | ||
63 | */ | ||
64 | [_LOWER] = LAYOUT_ortho_5x12( | ||
65 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
66 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
67 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
68 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, | ||
69 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
70 | ), | ||
71 | |||
72 | /* Raise | ||
73 | * ,-----------------------------------------------------------------------------------. | ||
74 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
75 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
76 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
77 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
78 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
79 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
80 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | PGUP| PGDN| | | ||
81 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
82 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
83 | * `-----------------------------------------------------------------------------------' | ||
84 | */ | ||
85 | [_RAISE] = LAYOUT_ortho_5x12( | ||
86 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
87 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
88 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
89 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
90 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
91 | ), | ||
92 | |||
93 | /* FN (Lower + Raise) | ||
94 | * ,-----------------------------------------------------------------------------------. | ||
95 | * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | | ||
96 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
97 | * | | Reset| Debug| | | | | | | | | Del | | ||
98 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
99 | * | | | | | |AGnorm|AGswap| | | | | | | ||
100 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
101 | * | | rgb |rgb M | Hue |brt + |brt - |sat + | | | | | | | ||
102 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
103 | * | | | | | | | | | | | | | ||
104 | * `-----------------------------------------------------------------------------------' | ||
105 | */ | ||
106 | [_ADJUST] = LAYOUT_ortho_5x12( | ||
107 | KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, | ||
108 | _______, RESET, DEBUG, _______, _______, _______, _______, _______, _______, _______, _______, KC_DEL, | ||
109 | _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, | ||
110 | _______, RGB_TOG, RGB_MOD, RGB_HUI, RGB_VAI, RGB_VAD, RGB_SAI, _______, _______, _______, _______, _______, | ||
111 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
112 | ) | ||
113 | |||
114 | }; | ||
diff --git a/keyboards/delikeeb/flatbread60/keymaps/via/rules.mk b/keyboards/delikeeb/flatbread60/keymaps/via/rules.mk new file mode 100644 index 000000000..bde15290b --- /dev/null +++ b/keyboards/delikeeb/flatbread60/keymaps/via/rules.mk | |||
@@ -0,0 +1,2 @@ | |||
1 | VIA_ENABLE = yes | ||
2 | RGBLIGHT_ENABLE = no | ||
diff --git a/keyboards/delikeeb/flatbread60/readme.md b/keyboards/delikeeb/flatbread60/readme.md new file mode 100644 index 000000000..6f187833a --- /dev/null +++ b/keyboards/delikeeb/flatbread60/readme.md | |||
@@ -0,0 +1,19 @@ | |||
1 | # flatbread60 | ||
2 | |||
3 |  | ||
4 | |||
5 | This is a custom PCB made by a hobbiest, and it has an ortholinear 60 key layout. Flatbread60 supports Pro Micro and its wireless variants, such as Blue Micro. A battery switch slot and extra pinout is on the board. | ||
6 | |||
7 | * Keyboard Maintainer: [noclew](https://github.com/noclew) | ||
8 | * Hardware Supported: flatbread60 PCB | ||
9 | * Hardware Availability: Not commercially available, but the board fabricaion file will be uploaded in the near future. | ||
10 | |||
11 | Make example for this keyboard (after setting up your build environment): | ||
12 | |||
13 | make delikeeb/flatbread60:default | ||
14 | |||
15 | Flashing example for this keyboard: | ||
16 | |||
17 | make delikeeb/flatbread60:default:flash | ||
18 | |||
19 | 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/delikeeb/flatbread60/rules.mk b/keyboards/delikeeb/flatbread60/rules.mk new file mode 100644 index 000000000..6f52ecfc7 --- /dev/null +++ b/keyboards/delikeeb/flatbread60/rules.mk | |||
@@ -0,0 +1,18 @@ | |||
1 | # MCU name | ||
2 | MCU = atmega32u4 | ||
3 | |||
4 | # Bootloader selection | ||
5 | BOOTLOADER = caterina | ||
6 | |||
7 | # Build Options | ||
8 | # change yes to no to disable | ||
9 | # | ||
10 | BOOTMAGIC_ENABLE = yes # Enable Bootmagic Lite | ||
11 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
12 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
13 | CONSOLE_ENABLE = no # Console for debug | ||
14 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
15 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
18 | AUDIO_ENABLE = no # Audio output | ||