diff options
| author | noclew <noclew@users.noreply.github.com> | 2021-05-12 20:19:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-12 17:19:48 -0700 |
| commit | d200e3de8ebba08e374b53063638575e04bff543 (patch) | |
| tree | 66d451fad3c08cf8e9917c5f682364c737fd79c2 /keyboards/delikeeb | |
| parent | 49bc835aa9046806e4e4374e4ad6518d894e358e (diff) | |
| download | qmk_firmware-d200e3de8ebba08e374b53063638575e04bff543.tar.gz qmk_firmware-d200e3de8ebba08e374b53063638575e04bff543.zip | |
[Keyboard] updated a vendor name / fixed minor keymap issues (#12881)
Diffstat (limited to 'keyboards/delikeeb')
73 files changed, 4432 insertions, 0 deletions
diff --git a/keyboards/delikeeb/flatbread60/config.h b/keyboards/delikeeb/flatbread60/config.h new file mode 100644 index 000000000..6c40d46bf --- /dev/null +++ b/keyboards/delikeeb/flatbread60/config.h | |||
| @@ -0,0 +1,175 @@ | |||
| 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 | * Magic Key Options | ||
| 106 | * | ||
| 107 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 108 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 109 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 110 | * | ||
| 111 | * The options below allow the magic key functionality to be changed. This is | ||
| 112 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 113 | * | ||
| 114 | */ | ||
| 115 | |||
| 116 | /* key combination for magic key command */ | ||
| 117 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 118 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | ||
| 119 | |||
| 120 | /* control how magic key switches layers */ | ||
| 121 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 122 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 123 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 124 | |||
| 125 | /* override magic key keymap */ | ||
| 126 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 127 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 128 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 129 | //#define MAGIC_KEY_HELP H | ||
| 130 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 131 | //#define MAGIC_KEY_DEBUG D | ||
| 132 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 133 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 134 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 135 | //#define MAGIC_KEY_VERSION V | ||
| 136 | //#define MAGIC_KEY_STATUS S | ||
| 137 | //#define MAGIC_KEY_CONSOLE C | ||
| 138 | //#define MAGIC_KEY_LAYER0 0 | ||
| 139 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 140 | //#define MAGIC_KEY_LAYER1 1 | ||
| 141 | //#define MAGIC_KEY_LAYER2 2 | ||
| 142 | //#define MAGIC_KEY_LAYER3 3 | ||
| 143 | //#define MAGIC_KEY_LAYER4 4 | ||
| 144 | //#define MAGIC_KEY_LAYER5 5 | ||
| 145 | //#define MAGIC_KEY_LAYER6 6 | ||
| 146 | //#define MAGIC_KEY_LAYER7 7 | ||
| 147 | //#define MAGIC_KEY_LAYER8 8 | ||
| 148 | //#define MAGIC_KEY_LAYER9 9 | ||
| 149 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 150 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 151 | //#define MAGIC_KEY_LOCK CAPS | ||
| 152 | //#define MAGIC_KEY_EEPROM E | ||
| 153 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 154 | //#define MAGIC_KEY_NKRO N | ||
| 155 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 156 | |||
| 157 | /* | ||
| 158 | * Feature disable options | ||
| 159 | * These options are also useful to firmware size reduction. | ||
| 160 | */ | ||
| 161 | |||
| 162 | /* disable debug print */ | ||
| 163 | //#define NO_DEBUG | ||
| 164 | |||
| 165 | /* disable print */ | ||
| 166 | //#define NO_PRINT | ||
| 167 | |||
| 168 | /* disable action features */ | ||
| 169 | //#define NO_ACTION_LAYER | ||
| 170 | //#define NO_ACTION_TAPPING | ||
| 171 | //#define NO_ACTION_ONESHOT | ||
| 172 | |||
| 173 | /* disable these deprecated features by default */ | ||
| 174 | #define NO_ACTION_MACRO | ||
| 175 | #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..ed621e817 --- /dev/null +++ b/keyboards/delikeeb/flatbread60/info.json | |||
| @@ -0,0 +1,253 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "flatbread60", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "noclew", | ||
| 5 | "width": 12, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ortho_5x12": { | ||
| 9 | "layout": [ | ||
| 10 | { | ||
| 11 | "x": 0, | ||
| 12 | "y": 0 | ||
| 13 | }, | ||
| 14 | { | ||
| 15 | "x": 1, | ||
| 16 | "y": 0 | ||
| 17 | }, | ||
| 18 | { | ||
| 19 | "x": 2, | ||
| 20 | "y": 0 | ||
| 21 | }, | ||
| 22 | { | ||
| 23 | "x": 3, | ||
| 24 | "y": 0 | ||
| 25 | }, | ||
| 26 | { | ||
| 27 | "x": 4, | ||
| 28 | "y": 0 | ||
| 29 | }, | ||
| 30 | { | ||
| 31 | "x": 5, | ||
| 32 | "y": 0 | ||
| 33 | }, | ||
| 34 | { | ||
| 35 | "x": 6, | ||
| 36 | "y": 0 | ||
| 37 | }, | ||
| 38 | { | ||
| 39 | "x": 7, | ||
| 40 | "y": 0 | ||
| 41 | }, | ||
| 42 | { | ||
| 43 | "x": 8, | ||
| 44 | "y": 0 | ||
| 45 | }, | ||
| 46 | { | ||
| 47 | "x": 9, | ||
| 48 | "y": 0 | ||
| 49 | }, | ||
| 50 | { | ||
| 51 | "x": 10, | ||
| 52 | "y": 0 | ||
| 53 | }, | ||
| 54 | { | ||
| 55 | "x": 11, | ||
| 56 | "y": 0 | ||
| 57 | }, | ||
| 58 | { | ||
| 59 | "x": 0, | ||
| 60 | "y": 1 | ||
| 61 | }, | ||
| 62 | { | ||
| 63 | "x": 1, | ||
| 64 | "y": 1 | ||
| 65 | }, | ||
| 66 | { | ||
| 67 | "x": 2, | ||
| 68 | "y": 1 | ||
| 69 | }, | ||
| 70 | { | ||
| 71 | "x": 3, | ||
| 72 | "y": 1 | ||
| 73 | }, | ||
| 74 | { | ||
| 75 | "x": 4, | ||
| 76 | "y": 1 | ||
| 77 | }, | ||
| 78 | { | ||
| 79 | "x": 5, | ||
| 80 | "y": 1 | ||
| 81 | }, | ||
| 82 | { | ||
| 83 | "x": 6, | ||
| 84 | "y": 1 | ||
| 85 | }, | ||
| 86 | { | ||
| 87 | "x": 7, | ||
| 88 | "y": 1 | ||
| 89 | }, | ||
| 90 | { | ||
| 91 | "x": 8, | ||
| 92 | "y": 1 | ||
| 93 | }, | ||
| 94 | { | ||
| 95 | "x": 9, | ||
| 96 | "y": 1 | ||
| 97 | }, | ||
| 98 | { | ||
| 99 | "x": 10, | ||
| 100 | "y": 1 | ||
| 101 | }, | ||
| 102 | { | ||
| 103 | "x": 11, | ||
| 104 | "y": 1 | ||
| 105 | }, | ||
| 106 | { | ||
| 107 | "x": 0, | ||
| 108 | "y": 2 | ||
| 109 | }, | ||
| 110 | { | ||
| 111 | "x": 1, | ||
| 112 | "y": 2 | ||
| 113 | }, | ||
| 114 | { | ||
| 115 | "x": 2, | ||
| 116 | "y": 2 | ||
| 117 | }, | ||
| 118 | { | ||
| 119 | "x": 3, | ||
| 120 | "y": 2 | ||
| 121 | }, | ||
| 122 | { | ||
| 123 | "x": 4, | ||
| 124 | "y": 2 | ||
| 125 | }, | ||
| 126 | { | ||
| 127 | "x": 5, | ||
| 128 | "y": 2 | ||
| 129 | }, | ||
| 130 | { | ||
| 131 | "x": 6, | ||
| 132 | "y": 2 | ||
| 133 | }, | ||
| 134 | { | ||
| 135 | "x": 7, | ||
| 136 | "y": 2 | ||
| 137 | }, | ||
| 138 | { | ||
| 139 | "x": 8, | ||
| 140 | "y": 2 | ||
| 141 | }, | ||
| 142 | { | ||
| 143 | "x": 9, | ||
| 144 | "y": 2 | ||
| 145 | }, | ||
| 146 | { | ||
| 147 | "x": 10, | ||
| 148 | "y": 2 | ||
| 149 | }, | ||
| 150 | { | ||
| 151 | "x": 11, | ||
| 152 | "y": 2 | ||
| 153 | }, | ||
| 154 | { | ||
| 155 | "x": 0, | ||
| 156 | "y": 3 | ||
| 157 | }, | ||
| 158 | { | ||
| 159 | "x": 1, | ||
| 160 | "y": 3 | ||
| 161 | }, | ||
| 162 | { | ||
| 163 | "x": 2, | ||
| 164 | "y": 3 | ||
| 165 | }, | ||
| 166 | { | ||
| 167 | "x": 3, | ||
| 168 | "y": 3 | ||
| 169 | }, | ||
| 170 | { | ||
| 171 | "x": 4, | ||
| 172 | "y": 3 | ||
| 173 | }, | ||
| 174 | { | ||
| 175 | "x": 5, | ||
| 176 | "y": 3 | ||
| 177 | }, | ||
| 178 | { | ||
| 179 | "x": 6, | ||
| 180 | "y": 3 | ||
| 181 | }, | ||
| 182 | { | ||
| 183 | "x": 7, | ||
| 184 | "y": 3 | ||
| 185 | }, | ||
| 186 | { | ||
| 187 | "x": 8, | ||
| 188 | "y": 3 | ||
| 189 | }, | ||
| 190 | { | ||
| 191 | "x": 9, | ||
| 192 | "y": 3 | ||
| 193 | }, | ||
| 194 | { | ||
| 195 | "x": 10, | ||
| 196 | "y": 3 | ||
| 197 | }, | ||
| 198 | { | ||
| 199 | "x": 11, | ||
| 200 | "y": 3 | ||
| 201 | }, | ||
| 202 | { | ||
| 203 | "x": 0, | ||
| 204 | "y": 4 | ||
| 205 | }, | ||
| 206 | { | ||
| 207 | "x": 1, | ||
| 208 | "y": 4 | ||
| 209 | }, | ||
| 210 | { | ||
| 211 | "x": 2, | ||
| 212 | "y": 4 | ||
| 213 | }, | ||
| 214 | { | ||
| 215 | "x": 3, | ||
| 216 | "y": 4 | ||
| 217 | }, | ||
| 218 | { | ||
| 219 | "x": 4, | ||
| 220 | "y": 4 | ||
| 221 | }, | ||
| 222 | { | ||
| 223 | "x": 5, | ||
| 224 | "y": 4 | ||
| 225 | }, | ||
| 226 | { | ||
| 227 | "x": 6, | ||
| 228 | "y": 4 | ||
| 229 | }, | ||
| 230 | { | ||
| 231 | "x": 7, | ||
| 232 | "y": 4 | ||
| 233 | }, | ||
| 234 | { | ||
| 235 | "x": 8, | ||
| 236 | "y": 4 | ||
| 237 | }, | ||
| 238 | { | ||
| 239 | "x": 9, | ||
| 240 | "y": 4 | ||
| 241 | }, | ||
| 242 | { | ||
| 243 | "x": 10, | ||
| 244 | "y": 4 | ||
| 245 | }, | ||
| 246 | { | ||
| 247 | "x": 11, | ||
| 248 | "y": 4 | ||
| 249 | } | ||
| 250 | ] | ||
| 251 | } | ||
| 252 | } | ||
| 253 | } | ||
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..4012c6ac3 --- /dev/null +++ b/keyboards/delikeeb/flatbread60/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 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 = lite # Virtual DIP switch configuration | ||
| 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_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 | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/delikeeb/vaguettelite/config.h b/keyboards/delikeeb/vaguettelite/config.h new file mode 100644 index 000000000..ef1aec49e --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/config.h | |||
| @@ -0,0 +1,119 @@ | |||
| 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 0x0011 | ||
| 25 | #define DEVICE_VER 0x0003 | ||
| 26 | #define MANUFACTURER dELIKEEb | ||
| 27 | #define PRODUCT Vaguette Lite | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 6 | ||
| 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 { F4, B3, D1, D2, D3, F5 } | ||
| 44 | #define MATRIX_COL_PINS { F6, F7, B1, B2, B6, B5, B4, E6, D7, C6, D0, D4 } | ||
| 45 | #define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL */ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | /*rotary encoder setting*/ | ||
| 51 | #define ENCODERS_PAD_A { D5, F1 } | ||
| 52 | #define ENCODERS_PAD_B { B7, F0 } | ||
| 53 | |||
| 54 | #define RGB_DI_PIN C7 | ||
| 55 | #ifdef RGB_DI_PIN | ||
| 56 | # define RGBLED_NUM 9 | ||
| 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 | /*== or choose animations ==*/ | ||
| 65 | // # define RGBLIGHT_EFFECT_BREATHING | ||
| 66 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 67 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 68 | // # define RGBLIGHT_EFFECT_SNAKE | ||
| 69 | // # define RGBLIGHT_EFFECT_KNIGHT | ||
| 70 | // # define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 71 | # define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 72 | // # define RGBLIGHT_EFFECT_RGB_TEST | ||
| 73 | // # define RGBLIGHT_EFFECT_ALTERNATING | ||
| 74 | /*== customize breathing effect ==*/ | ||
| 75 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 76 | # define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 77 | /*==== use exp() and sin() ====*/ | ||
| 78 | # define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 79 | # define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 80 | #endif | ||
| 81 | |||
| 82 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 83 | #define DEBOUNCE 5 | ||
| 84 | |||
| 85 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 86 | #define LOCKING_SUPPORT_ENABLE | ||
| 87 | /* Locking resynchronize hack */ | ||
| 88 | #define LOCKING_RESYNC_ENABLE | ||
| 89 | |||
| 90 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 91 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 92 | */ | ||
| 93 | //#define GRAVE_ESC_CTRL_OVERRIDE | ||
| 94 | |||
| 95 | //#define FORCE_NKRO | ||
| 96 | |||
| 97 | /* | ||
| 98 | * Feature disable options | ||
| 99 | * These options are also useful to firmware size reduction. | ||
| 100 | */ | ||
| 101 | |||
| 102 | /* disable debug print */ | ||
| 103 | //#define NO_DEBUG | ||
| 104 | |||
| 105 | /* disable print */ | ||
| 106 | //#define NO_PRINT | ||
| 107 | |||
| 108 | /* disable action features */ | ||
| 109 | //#define NO_ACTION_LAYER | ||
| 110 | //#define NO_ACTION_TAPPING | ||
| 111 | //#define NO_ACTION_ONESHOT | ||
| 112 | |||
| 113 | /* disable these deprecated features by default */ | ||
| 114 | #define NO_ACTION_MACRO | ||
| 115 | #define NO_ACTION_FUNCTION | ||
| 116 | |||
| 117 | /* Bootmagic Lite key configuration */ | ||
| 118 | #define BOOTMAGIC_LITE_ROW 0 | ||
| 119 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/delikeeb/vaguettelite/info.json b/keyboards/delikeeb/vaguettelite/info.json new file mode 100644 index 000000000..0f3d6049a --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/info.json | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "vaguettelite", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "noclew", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1, "w":1.5}, {"x":13, "y":1}, {"x":14, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2, "w":1.25}, {"x":13, "y":2}, {"x":14, "y":2}, {"x":0, "y":3}, {"x":1, "y":3, "w":1.25}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3, "w":1.75}, {"x":14, "y":3}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4}, {"x":2.25, "y":4, "w":1.25}, {"x":3.5, "y":4}, {"x":4.5, "y":4, "w":1.25}, {"x":5.75, "y":4, "w":2}, {"x":7.75, "y":4, "w":1.25}, {"x":9, "y":4}, {"x":10, "y":4}, {"x":11, "y":4}, {"x":12, "y":4}, {"x":13, "y":4}, {"x":14, "y":4}] | ||
| 10 | }, | ||
| 11 | "LAYOUT_625u_universal": { | ||
| 12 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":6, "y":0}, {"x":7, "y":0}, {"x":8, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":0, "y":1, "w":1.5}, {"x":1.5, "y":1}, {"x":2.5, "y":1}, {"x":3.5, "y":1}, {"x":4.5, "y":1}, {"x":5.5, "y":1}, {"x":6.5, "y":1}, {"x":7.5, "y":1}, {"x":8.5, "y":1}, {"x":9.5, "y":1}, {"x":10.5, "y":1}, {"x":11.5, "y":1, "w":1.5}, {"x":13, "y":1}, {"x":14, "y":1}, {"x":0, "y":2, "w":1.75}, {"x":1.75, "y":2}, {"x":2.75, "y":2}, {"x":3.75, "y":2}, {"x":4.75, "y":2}, {"x":5.75, "y":2}, {"x":6.75, "y":2}, {"x":7.75, "y":2}, {"x":8.75, "y":2}, {"x":9.75, "y":2}, {"x":10.75, "y":2}, {"x":11.75, "y":2, "w":2.25}, {"x":14, "y":2}, {"x":0, "y":3, "w":2.25}, {"x":2.25, "y":3}, {"x":3.25, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3, "w":2.75}, {"x":0, "y":4, "w":1.25}, {"x":1.25, "y":4, "w":1.25}, {"x":2.5, "y":4, "w":1.25}, {"x":3.75, "y":4, "w":6.25}, {"x":10, "y":4}, {"x":11, "y":4}, {"x":12, "y":4}, {"x":13, "y":4}, {"x":14, "y":4}] | ||
| 13 | } | ||
| 14 | } | ||
| 15 | } | ||
diff --git a/keyboards/delikeeb/vaguettelite/keymaps/default/keymap.c b/keyboards/delikeeb/vaguettelite/keymaps/default/keymap.c new file mode 100644 index 000000000..8593526aa --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/keymaps/default/keymap.c | |||
| @@ -0,0 +1,134 @@ | |||
| 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 { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _ADJUST | ||
| 24 | }; | ||
| 25 | |||
| 26 | // Defines the keycodes used by our macros in process_record_user | ||
| 27 | enum custom_keycodes { | ||
| 28 | BASE = SAFE_RANGE, | ||
| 29 | LOWER, | ||
| 30 | RAISE, | ||
| 31 | }; | ||
| 32 | |||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 34 | |||
| 35 | /* BASE | ||
| 36 | * --------------------------------------------------------------------------------------------------------- | ||
| 37 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bspc | Mute | | ||
| 38 | * --------------------------------------------------------------------------------------------------------- | ||
| 39 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | \ | [ | ] | | ||
| 40 | *---------------------------------------------------------------------------------------------------------- | ||
| 41 | * | Esc | A | S | D | F | G | H | J | K | L | ; | Enter | N/A | ' | | ||
| 42 | *---------------------------------------------------------------------------------------------------------- | ||
| 43 | * | N/A | Shift | Z | X | C | V | B | N | M | , | . | / | Shift | Del | | ||
| 44 | *---------------------------------------------------------------------------------------------------------- | ||
| 45 | * | Ctrl | GUI | Alt | Lower | Space | Space | Space | Raise | Alt | Left | Down | Up | Right | | ||
| 46 | *---------------------------------------------------------------------------------------------------------- | ||
| 47 | */ | ||
| 48 | |||
| 49 | [_BASE] = LAYOUT_all( | ||
| 50 | KC_GRV , 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_AUDIO_MUTE, | ||
| 51 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSLS, KC_LBRC, KC_RBRC, | ||
| 52 | KC_ESC , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_ENT , KC_NO, KC_QUOT, | ||
| 53 | KC_NO , KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, RSFT_T(KC_QUOT), KC_DEL, | ||
| 54 | KC_LCTL, KC_LGUI, KC_LALT, LOWER , KC_SPC , KC_SPC , KC_SPC , RAISE, KC_RALT, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 55 | ), | ||
| 56 | |||
| 57 | [_LOWER] = LAYOUT_all( | ||
| 58 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , KC_F12 , _______, | ||
| 59 | KC_BSPC, KC_SLSH, KC_7 , KC_8 , KC_9 , KC_PPLS, KC_CIRC, KC_LBRC, KC_RBRC, KC_AT , KC_EXLM, KC_BSLS, _______, _______, | ||
| 60 | KC_EQL , KC_0 , KC_4 , KC_5 , KC_6 , KC_MINS, KC_PIPE, KC_LPRN, KC_RPRN, KC_HASH, KC_DQUO, _______, _______, _______, | ||
| 61 | KC_ENT , _______, KC_PAST, KC_1 , KC_2 , KC_3 , KC_UNDS, KC_DLR , KC_LCBR, KC_RCBR, KC_AMPR, KC_PERC, _______, _______, | ||
| 62 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 63 | ), | ||
| 64 | |||
| 65 | [_RAISE] = LAYOUT_all( | ||
| 66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 67 | _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_BSPC, KC_DEL, KC_END , _______, _______, _______, | ||
| 68 | _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT, _______, _______, _______, | ||
| 69 | _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, _______, _______, KC_PGDN, _______, _______, | ||
| 70 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 71 | ), | ||
| 72 | |||
| 73 | [_ADJUST] = LAYOUT_all( | ||
| 74 | RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, DEBUG, | ||
| 75 | _______, RGB_TOG, RGB_RMOD, RGB_MOD, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 76 | KC_CAPS, _______, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 77 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 78 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 79 | ) | ||
| 80 | }; | ||
| 81 | |||
| 82 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 83 | switch (keycode) { | ||
| 84 | |||
| 85 | case LOWER: | ||
| 86 | if (record->event.pressed) { | ||
| 87 | layer_on(_LOWER); | ||
| 88 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 89 | } else { | ||
| 90 | layer_off(_LOWER); | ||
| 91 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 92 | } | ||
| 93 | return false; | ||
| 94 | |||
| 95 | case RAISE: | ||
| 96 | if (record->event.pressed) { | ||
| 97 | layer_on(_RAISE); | ||
| 98 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 99 | } else { | ||
| 100 | layer_off(_RAISE); | ||
| 101 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 102 | } | ||
| 103 | return false; | ||
| 104 | |||
| 105 | } | ||
| 106 | return true; | ||
| 107 | } | ||
| 108 | |||
| 109 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 110 | /* With an if statement we can check which encoder was turned. */ | ||
| 111 | if (index == 0) { /* First encoder */ | ||
| 112 | /* And with another if statement we can check the direction. */ | ||
| 113 | if (clockwise) { | ||
| 114 | if (IS_LAYER_ON(_LOWER)){ | ||
| 115 | tap_code(KC_RIGHT); | ||
| 116 | } else { | ||
| 117 | tap_code(KC_VOLU); | ||
| 118 | } | ||
| 119 | } else { | ||
| 120 | if (IS_LAYER_ON(_LOWER)){ | ||
| 121 | tap_code(KC_LEFT); | ||
| 122 | } else { | ||
| 123 | tap_code(KC_VOLD); | ||
| 124 | } | ||
| 125 | } | ||
| 126 | |||
| 127 | } else if (index == 1) { /* Second encoder. Only supported by Elite-C */ | ||
| 128 | if (clockwise) { | ||
| 129 | tap_code(KC_RIGHT); | ||
| 130 | } else { | ||
| 131 | tap_code(KC_LEFT); | ||
| 132 | } | ||
| 133 | } | ||
| 134 | } | ||
diff --git a/keyboards/delikeeb/vaguettelite/keymaps/default/readme.md b/keyboards/delikeeb/vaguettelite/keymaps/default/readme.md new file mode 100644 index 000000000..1dc396734 --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for Vaguette LITE | |||
diff --git a/keyboards/delikeeb/vaguettelite/keymaps/default_625u_universal/keymap.c b/keyboards/delikeeb/vaguettelite/keymaps/default_625u_universal/keymap.c new file mode 100644 index 000000000..a1af844bb --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/keymaps/default_625u_universal/keymap.c | |||
| @@ -0,0 +1,134 @@ | |||
| 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 { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _ADJUST | ||
| 24 | }; | ||
| 25 | |||
| 26 | // Defines the keycodes used by our macros in process_record_user | ||
| 27 | enum custom_keycodes { | ||
| 28 | BASE = SAFE_RANGE, | ||
| 29 | LOWER, | ||
| 30 | RAISE, | ||
| 31 | }; | ||
| 32 | |||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 34 | |||
| 35 | /* BASE | ||
| 36 | * --------------------------------------------------------------------------------------------------------- | ||
| 37 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | BSP | Mute | | ||
| 38 | * --------------------------------------------------------------------------------------------------------- | ||
| 39 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | \ | [ | ] | | ||
| 40 | *---------------------------------------------------------------------------------------------------------- | ||
| 41 | * | Esc | A | S | D | F | G | H | J | K | L | ; | Enter | ' | | ||
| 42 | *---------------------------------------------------------------------------------------------------------- | ||
| 43 | * | Shift | Z | X | C | V | B | N | M | , | . | / | Shift | | ||
| 44 | *---------------------------------------------------------------------------------------------------------- | ||
| 45 | * | Ctrl | GUI | Alt | Space | Raise | Left | Down | Up | Right | | ||
| 46 | *---------------------------------------------------------------------------------------------------------- | ||
| 47 | */ | ||
| 48 | |||
| 49 | [_BASE] = LAYOUT_625u_universal( | ||
| 50 | KC_GRV , KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_MINS, KC_MINS, KC_BSPC, KC_AUDIO_MUTE, | ||
| 51 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSLS, KC_LBRC, KC_RBRC, | ||
| 52 | KC_ESC , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_ENT , KC_QUOT, | ||
| 53 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, RSFT_T(KC_QUOT), | ||
| 54 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC , RAISE , KC_LEFT, KC_DOWN, KC_UP , KC_RGHT | ||
| 55 | ), | ||
| 56 | |||
| 57 | [_LOWER] = LAYOUT_625u_universal( | ||
| 58 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10, KC_F11 , KC_F12 , KC_F12 , _______, | ||
| 59 | KC_BSPC, KC_EQL , KC_7 , KC_8 , KC_9 , KC_SLSH, KC_CIRC, KC_LBRC, KC_RBRC, KC_AT , KC_EXLM, KC_BSLS, _______, _______, | ||
| 60 | KC_ENT , KC_0 , KC_4 , KC_5 , KC_6 , KC_MINS, KC_UNDS, KC_LPRN, KC_RPRN, KC_HASH, KC_DQUO, _______, _______, | ||
| 61 | KC_DLR , KC_PAST, KC_1 , KC_2 , KC_3 , KC_PPLS, KC_PIPE, KC_LCBR, KC_RCBR, KC_PERC, KC_AMPR, _______, | ||
| 62 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 63 | ), | ||
| 64 | |||
| 65 | [_RAISE] = LAYOUT_625u_universal( | ||
| 66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 67 | _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_BSPC, KC_DEL, KC_END , _______, _______, _______, | ||
| 68 | _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT, _______, _______, | ||
| 69 | _______, _______, _______, _______, _______, _______, _______, KC_PGUP, _______, _______, KC_PGDN, _______, | ||
| 70 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 71 | ), | ||
| 72 | |||
| 73 | [_ADJUST] = LAYOUT_625u_universal( | ||
| 74 | RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, DEBUG, | ||
| 75 | _______, RGB_TOG, RGB_RMOD, RGB_MOD, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 76 | KC_CAPS, _______, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, _______, _______, _______, _______, _______, _______, _______, | ||
| 77 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 78 | _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 79 | ) | ||
| 80 | }; | ||
| 81 | |||
| 82 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 83 | switch (keycode) { | ||
| 84 | |||
| 85 | case LOWER: | ||
| 86 | if (record->event.pressed) { | ||
| 87 | layer_on(_LOWER); | ||
| 88 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 89 | } else { | ||
| 90 | layer_off(_LOWER); | ||
| 91 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 92 | } | ||
| 93 | return false; | ||
| 94 | |||
| 95 | case RAISE: | ||
| 96 | if (record->event.pressed) { | ||
| 97 | layer_on(_RAISE); | ||
| 98 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 99 | } else { | ||
| 100 | layer_off(_RAISE); | ||
| 101 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 102 | } | ||
| 103 | return false; | ||
| 104 | |||
| 105 | } | ||
| 106 | return true; | ||
| 107 | } | ||
| 108 | |||
| 109 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 110 | /* With an if statement we can check which encoder was turned. */ | ||
| 111 | if (index == 0) { /* First encoder */ | ||
| 112 | /* And with another if statement we can check the direction. */ | ||
| 113 | if (clockwise) { | ||
| 114 | if (IS_LAYER_ON(_LOWER)){ | ||
| 115 | tap_code(KC_RIGHT); | ||
| 116 | } else { | ||
| 117 | tap_code(KC_VOLU); | ||
| 118 | } | ||
| 119 | } else { | ||
| 120 | if (IS_LAYER_ON(_LOWER)){ | ||
| 121 | tap_code(KC_LEFT); | ||
| 122 | } else { | ||
| 123 | tap_code(KC_VOLD); | ||
| 124 | } | ||
| 125 | } | ||
| 126 | |||
| 127 | } else if (index == 1) { /* Second encoder. Only supported by Elite-C */ | ||
| 128 | if (clockwise) { | ||
| 129 | tap_code(KC_RIGHT); | ||
| 130 | } else { | ||
| 131 | tap_code(KC_LEFT); | ||
| 132 | } | ||
| 133 | } | ||
| 134 | } | ||
diff --git a/keyboards/delikeeb/vaguettelite/keymaps/default_625u_universal/readme.md b/keyboards/delikeeb/vaguettelite/keymaps/default_625u_universal/readme.md new file mode 100644 index 000000000..fc537215e --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/keymaps/default_625u_universal/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The keymap using standard 6.25u spacebar for Vaguette LITE | |||
diff --git a/keyboards/delikeeb/vaguettelite/keymaps/noclew/keymap.c b/keyboards/delikeeb/vaguettelite/keymaps/noclew/keymap.c new file mode 100644 index 000000000..d8f470288 --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/keymaps/noclew/keymap.c | |||
| @@ -0,0 +1,154 @@ | |||
| 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 { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _ADJUST, | ||
| 24 | _MAC, | ||
| 25 | _GAME | ||
| 26 | }; | ||
| 27 | |||
| 28 | // Defines the keycodes used by our macros in process_record_user | ||
| 29 | enum custom_keycodes { | ||
| 30 | BASE = SAFE_RANGE, | ||
| 31 | LOWER, | ||
| 32 | RAISE, | ||
| 33 | MAC, | ||
| 34 | GAME | ||
| 35 | }; | ||
| 36 | |||
| 37 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 38 | |||
| 39 | /* BASE | ||
| 40 | * --------------------------------------------------------------------------------------------------------- | ||
| 41 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | Bspc | Mute | | ||
| 42 | * --------------------------------------------------------------------------------------------------------- | ||
| 43 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | \ | [ | ] | | ||
| 44 | *---------------------------------------------------------------------------------------------------------- | ||
| 45 | * | Esc | A | S | D | F | G | H | J | K | L | ; | Enter | N/A | ' | | ||
| 46 | *---------------------------------------------------------------------------------------------------------- | ||
| 47 | * | N/A | Shift | Z | X | C | V | B | N | M | , | . | / | Shift | DEL | | ||
| 48 | *---------------------------------------------------------------------------------------------------------- | ||
| 49 | * | Ctrl | GUI | Alt | Lower | Space | Space | Space | Raise | Alt | Left | Down | Up | Right | | ||
| 50 | *---------------------------------------------------------------------------------------------------------- | ||
| 51 | */ | ||
| 52 | |||
| 53 | [_BASE] = LAYOUT_all( | ||
| 54 | KC_GRV , 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_AUDIO_MUTE, | ||
| 55 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSLS, KC_LBRC, KC_RBRC, | ||
| 56 | KC_ESC , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_ENT , KC_NO, KC_QUOT, | ||
| 57 | KC_NO , KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, RSFT_T(KC_QUOT), KC_DEL, | ||
| 58 | KC_LCTL, KC_LGUI, KC_LALT, LOWER , KC_SPC , KC_SPC , KC_SPC , RAISE, KC_RALT, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 59 | ), | ||
| 60 | |||
| 61 | [_MAC] = LAYOUT_all( | ||
| 62 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 63 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 64 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 65 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 66 | _______, KC_LALT, KC_LGUI, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 67 | ), | ||
| 68 | |||
| 69 | [_GAME] = LAYOUT_all( | ||
| 70 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 71 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 72 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 73 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 74 | _______, _______, MO(_LOWER), KC_LALT, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 75 | ), | ||
| 76 | |||
| 77 | [_LOWER] = LAYOUT_all( | ||
| 78 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , KC_F12 , _______, | ||
| 79 | KC_BSPC, KC_SLSH, KC_7 , KC_8 , KC_9 , KC_PPLS, KC_CIRC, KC_LBRC, KC_RBRC, KC_AT , KC_EXLM, KC_BSLS, _______, _______, | ||
| 80 | KC_EQL , KC_0 , KC_4 , KC_5 , KC_6 , KC_MINS, KC_PIPE, KC_LPRN, KC_RPRN, KC_HASH, KC_DQUO, _______, _______, _______, | ||
| 81 | KC_ENT , _______, KC_PAST, KC_1 , KC_2 , KC_3 , KC_UNDS, KC_DLR , KC_LCBR, KC_RCBR, KC_AMPR, KC_PERC, _______, _______, | ||
| 82 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 83 | ), | ||
| 84 | |||
| 85 | [_RAISE] = LAYOUT_all( | ||
| 86 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 87 | _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_BSPC, KC_DEL, KC_END , _______, _______, _______, | ||
| 88 | _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT, _______, _______, _______, | ||
| 89 | _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, _______, _______, KC_PGDN, _______, _______, | ||
| 90 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 91 | ), | ||
| 92 | |||
| 93 | [_ADJUST] = LAYOUT_all( | ||
| 94 | RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, DEBUG, | ||
| 95 | _______, RGB_TOG, RGB_RMOD, RGB_MOD, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 96 | KC_CAPS, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, _______, _______, TG(_GAME), _______, _______, _______, _______, _______, _______, | ||
| 97 | _______, _______, _______, _______, _______, _______, _______, _______, TG(_MAC), _______, _______, _______, _______, _______, | ||
| 98 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 99 | ) | ||
| 100 | }; | ||
| 101 | |||
| 102 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 103 | switch (keycode) { | ||
| 104 | |||
| 105 | case LOWER: | ||
| 106 | if (record->event.pressed) { | ||
| 107 | layer_on(_LOWER); | ||
| 108 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 109 | } else { | ||
| 110 | layer_off(_LOWER); | ||
| 111 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 112 | } | ||
| 113 | return false; | ||
| 114 | |||
| 115 | case RAISE: | ||
| 116 | if (record->event.pressed) { | ||
| 117 | layer_on(_RAISE); | ||
| 118 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 119 | } else { | ||
| 120 | layer_off(_RAISE); | ||
| 121 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 122 | } | ||
| 123 | return false; | ||
| 124 | |||
| 125 | } | ||
| 126 | return true; | ||
| 127 | } | ||
| 128 | |||
| 129 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 130 | /* With an if statement we can check which encoder was turned. */ | ||
| 131 | if (index == 0) { /* First encoder */ | ||
| 132 | /* And with another if statement we can check the direction. */ | ||
| 133 | if (clockwise) { | ||
| 134 | if (IS_LAYER_ON(_LOWER)){ | ||
| 135 | tap_code(KC_RIGHT); | ||
| 136 | } else { | ||
| 137 | tap_code(KC_VOLU); | ||
| 138 | } | ||
| 139 | } else { | ||
| 140 | if (IS_LAYER_ON(_LOWER)){ | ||
| 141 | tap_code(KC_LEFT); | ||
| 142 | } else { | ||
| 143 | tap_code(KC_VOLD); | ||
| 144 | } | ||
| 145 | } | ||
| 146 | |||
| 147 | } else if (index == 1) { /* Second encoder. Only supported by Elite-C */ | ||
| 148 | if (clockwise) { | ||
| 149 | tap_code(KC_RIGHT); | ||
| 150 | } else { | ||
| 151 | tap_code(KC_LEFT); | ||
| 152 | } | ||
| 153 | } | ||
| 154 | } | ||
diff --git a/keyboards/delikeeb/vaguettelite/keymaps/noclew/readme.md b/keyboards/delikeeb/vaguettelite/keymaps/noclew/readme.md new file mode 100644 index 000000000..bc2bbecb7 --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/keymaps/noclew/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The noclew's keymap for Vaguette LITE | |||
diff --git a/keyboards/delikeeb/vaguettelite/keymaps/via/keymap.c b/keyboards/delikeeb/vaguettelite/keymaps/via/keymap.c new file mode 100644 index 000000000..2993728ea --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/keymaps/via/keymap.c | |||
| @@ -0,0 +1,135 @@ | |||
| 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 QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | // Defines names for use in layer keycodes and the keymap | ||
| 20 | enum layer_names { | ||
| 21 | _BASE, | ||
| 22 | _LOWER, | ||
| 23 | _RAISE, | ||
| 24 | _ADJUST | ||
| 25 | }; | ||
| 26 | |||
| 27 | // Defines the keycodes used by our macros in process_record_user | ||
| 28 | enum custom_keycodes { | ||
| 29 | BASE = SAFE_RANGE, | ||
| 30 | LOWER, | ||
| 31 | RAISE, | ||
| 32 | }; | ||
| 33 | |||
| 34 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 35 | |||
| 36 | /* BASE | ||
| 37 | * --------------------------------------------------------------------------------------------------------- | ||
| 38 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | = | BSpc | Mute | | ||
| 39 | * --------------------------------------------------------------------------------------------------------- | ||
| 40 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | \ | [ | ] | | ||
| 41 | *---------------------------------------------------------------------------------------------------------- | ||
| 42 | * | Esc | A | S | D | F | G | H | J | K | L | ; | Enter | N/A | ' | | ||
| 43 | *---------------------------------------------------------------------------------------------------------- | ||
| 44 | * | N/A | Shift | Z | X | C | V | B | N | M | , | . | / | Shift | Del | | ||
| 45 | *---------------------------------------------------------------------------------------------------------- | ||
| 46 | * | Ctrl | GUI | Alt | Lower | Space | Space | Space | Raise | Alt | Left | Down | Up | Right | | ||
| 47 | *---------------------------------------------------------------------------------------------------------- | ||
| 48 | */ | ||
| 49 | |||
| 50 | [_BASE] = LAYOUT_all( | ||
| 51 | KC_GRV , 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_AUDIO_MUTE, | ||
| 52 | KC_TAB , KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSLS, KC_LBRC, KC_RBRC, | ||
| 53 | KC_ESC , KC_A , KC_S , KC_D , KC_F , KC_G , KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_ENT , KC_NO, KC_QUOT, | ||
| 54 | KC_NO , KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, RSFT_T(KC_QUOT), KC_DEL, | ||
| 55 | KC_LCTL, KC_LGUI, KC_LALT, LOWER , KC_SPC , KC_SPC , KC_SPC , RAISE, KC_RALT, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 56 | ), | ||
| 57 | |||
| 58 | [_LOWER] = LAYOUT_all( | ||
| 59 | _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , KC_F12 , _______, | ||
| 60 | KC_BSPC, KC_SLSH, KC_7 , KC_8 , KC_9 , KC_PPLS, KC_CIRC, KC_LBRC, KC_RBRC, KC_AT , KC_EXLM, KC_BSLS, _______, _______, | ||
| 61 | KC_EQL , KC_0 , KC_4 , KC_5 , KC_6 , KC_MINS, KC_PIPE, KC_LPRN, KC_RPRN, KC_HASH, KC_DQUO, _______, _______, _______, | ||
| 62 | KC_ENT , _______, KC_PAST, KC_1 , KC_2 , KC_3 , KC_UNDS, KC_DLR , KC_LCBR, KC_RCBR, KC_AMPR, KC_PERC, _______, _______, | ||
| 63 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 64 | ), | ||
| 65 | |||
| 66 | [_RAISE] = LAYOUT_all( | ||
| 67 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 68 | _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_BSPC, KC_DEL, KC_END , _______, _______, _______, | ||
| 69 | _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT, _______, _______, _______, | ||
| 70 | _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, _______, _______, KC_PGDN, _______, _______, | ||
| 71 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 72 | ), | ||
| 73 | |||
| 74 | [_ADJUST] = LAYOUT_all( | ||
| 75 | RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, DEBUG, | ||
| 76 | _______, RGB_TOG, RGB_RMOD, RGB_MOD, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 77 | KC_CAPS, _______, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 78 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 79 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 80 | ) | ||
| 81 | }; | ||
| 82 | |||
| 83 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 84 | switch (keycode) { | ||
| 85 | |||
| 86 | case LOWER: | ||
| 87 | if (record->event.pressed) { | ||
| 88 | layer_on(_LOWER); | ||
| 89 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 90 | } else { | ||
| 91 | layer_off(_LOWER); | ||
| 92 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 93 | } | ||
| 94 | return false; | ||
| 95 | |||
| 96 | case RAISE: | ||
| 97 | if (record->event.pressed) { | ||
| 98 | layer_on(_RAISE); | ||
| 99 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 100 | } else { | ||
| 101 | layer_off(_RAISE); | ||
| 102 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 103 | } | ||
| 104 | return false; | ||
| 105 | |||
| 106 | } | ||
| 107 | return true; | ||
| 108 | } | ||
| 109 | |||
| 110 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 111 | /* With an if statement we can check which encoder was turned. */ | ||
| 112 | if (index == 0) { /* First encoder */ | ||
| 113 | /* And with another if statement we can check the direction. */ | ||
| 114 | if (clockwise) { | ||
| 115 | if (IS_LAYER_ON(_LOWER)){ | ||
| 116 | tap_code(KC_RIGHT); | ||
| 117 | } else { | ||
| 118 | tap_code(KC_VOLU); | ||
| 119 | } | ||
| 120 | } else { | ||
| 121 | if (IS_LAYER_ON(_LOWER)){ | ||
| 122 | tap_code(KC_LEFT); | ||
| 123 | } else { | ||
| 124 | tap_code(KC_VOLD); | ||
| 125 | } | ||
| 126 | } | ||
| 127 | |||
| 128 | } else if (index == 1) { /* Second encoder. Only supported by Elite-C */ | ||
| 129 | if (clockwise) { | ||
| 130 | tap_code(KC_RIGHT); | ||
| 131 | } else { | ||
| 132 | tap_code(KC_LEFT); | ||
| 133 | } | ||
| 134 | } | ||
| 135 | } | ||
diff --git a/keyboards/delikeeb/vaguettelite/keymaps/via/rules.mk b/keyboards/delikeeb/vaguettelite/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/delikeeb/vaguettelite/readme.md b/keyboards/delikeeb/vaguettelite/readme.md new file mode 100644 index 000000000..f076df2e1 --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # Vaguette Lite | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | Vaguette Lite is a 60% keyboard that has a reduced alphas area, and it is a variation of Vaguette, which is a 40% keyboard with a detachable Numpad. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [noclew](https://github.com/noclew) | ||
| 8 | * Hardware Supported: Vaguette Lite PCB | ||
| 9 | * Hardware Availability: Not commercially available. GB on Reddit and Geekhack time to times. | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make delikeeb/vaguettelite:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make delikee/vaguettelite: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/vaguettelite/rules.mk b/keyboards/delikeeb/vaguettelite/rules.mk new file mode 100644 index 000000000..5fff90dec --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/rules.mk | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | # change yes to no to disable | ||
| 9 | # | ||
| 10 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_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 | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | ENCODER_ENABLE = yes | ||
diff --git a/keyboards/delikeeb/vaguettelite/vaguettelite.c b/keyboards/delikeeb/vaguettelite/vaguettelite.c new file mode 100644 index 000000000..a91dae9a3 --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/vaguettelite.c | |||
| @@ -0,0 +1,17 @@ | |||
| 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 "vaguettelite.h" | ||
diff --git a/keyboards/delikeeb/vaguettelite/vaguettelite.h b/keyboards/delikeeb/vaguettelite/vaguettelite.h new file mode 100644 index 000000000..20a0e5972 --- /dev/null +++ b/keyboards/delikeeb/vaguettelite/vaguettelite.h | |||
| @@ -0,0 +1,57 @@ | |||
| 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_all( \ | ||
| 30 | k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, k65, k66, k69,\ | ||
| 31 | k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k67, k68,\ | ||
| 32 | k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, k61, k70,\ | ||
| 33 | k60, k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48, k62,\ | ||
| 34 | k49, k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k63, k64 \ | ||
| 35 | ) { \ | ||
| 36 | { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12 }, \ | ||
| 37 | { k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24 }, \ | ||
| 38 | { k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36 }, \ | ||
| 39 | { k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48 }, \ | ||
| 40 | { k49, k50, k51, k52, k53, k54, KC_NO, k55, k56, k57, k58, k59}, \ | ||
| 41 | { k60, KC_NO, k61, k62, k63, k64, k65, k66, k67, k68, k69, k70 } \ | ||
| 42 | } | ||
| 43 | |||
| 44 | #define LAYOUT_625u_universal( \ | ||
| 45 | k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, k65, k66, k69,\ | ||
| 46 | k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, k67, k68,\ | ||
| 47 | k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, k70,\ | ||
| 48 | k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48,\ | ||
| 49 | k49, k50, k51, k54, k57, k58, k59, k63, k64 \ | ||
| 50 | ) { \ | ||
| 51 | { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12 }, \ | ||
| 52 | { k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24 }, \ | ||
| 53 | { k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36 }, \ | ||
| 54 | { k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48 }, \ | ||
| 55 | { k49, k50, k51, KC_NO, KC_NO, k54, KC_NO, KC_NO, KC_NO, k57, k58, k59}, \ | ||
| 56 | { KC_NO, KC_NO, KC_NO, KC_NO, k63, k64, k65, k66, k67, k68, k69, k70 } \ | ||
| 57 | } | ||
diff --git a/keyboards/delikeeb/vanana/config.h b/keyboards/delikeeb/vanana/config.h new file mode 100644 index 000000000..3a5a88894 --- /dev/null +++ b/keyboards/delikeeb/vanana/config.h | |||
| @@ -0,0 +1,24 @@ | |||
| 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 | #define VENDOR_ID 0x9906 | ||
| 23 | #define PRODUCT_ID 0x0013 | ||
| 24 | #define MANUFACTURER dELIKEEb | ||
diff --git a/keyboards/delikeeb/vanana/info.json b/keyboards/delikeeb/vanana/info.json new file mode 100644 index 000000000..486e8a767 --- /dev/null +++ b/keyboards/delikeeb/vanana/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "vanana", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "noclew", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":9, "y":0}, {"x":10, "y":0}, {"x":11, "y":0}, {"x":12, "y":0}, {"x":13, "y":0}, {"x":14, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":9, "y":1}, {"x":10, "y":1}, {"x":11, "y":1}, {"x":12, "y":1}, {"x":13, "y":1}, {"x":14, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":7, "y":2}, {"x":9, "y":2}, {"x":10, "y":2}, {"x":11, "y":2}, {"x":12, "y":2}, {"x":13, "y":2}, {"x":14, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":7, "y":3}, {"x":9, "y":3}, {"x":10, "y":3}, {"x":11, "y":3}, {"x":12, "y":3}, {"x":13, "y":3}, {"x":14, "y":3}, {"x":1, "y":4}, {"x":2, "y":4}, {"x":3, "y":4}, {"x":4, "y":4, "w":1.25}, {"x":5.25, "y":4, "w":1.5}, {"x":8.25, "y":4, "w":1.5}, {"x":9.75, "y":4, "w":1.25}, {"x":11, "y":4}, {"x":12, "y":4}, {"x":13, "y":4}] | ||
| 10 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/delikeeb/vanana/keymaps/default/keymap.c b/keyboards/delikeeb/vanana/keymaps/default/keymap.c new file mode 100644 index 000000000..af7a706cc --- /dev/null +++ b/keyboards/delikeeb/vanana/keymaps/default/keymap.c | |||
| @@ -0,0 +1,161 @@ | |||
| 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 | #ifdef AUDIO_ENABLE | ||
| 19 | float song_coin[][2] = SONG(COIN_SOUND); | ||
| 20 | #endif | ||
| 21 | |||
| 22 | // Defines names for use in layer keycodes and the keymap | ||
| 23 | enum layer_names { | ||
| 24 | _BASE, | ||
| 25 | _LOWER, | ||
| 26 | _RAISE, | ||
| 27 | _ADJUST | ||
| 28 | }; | ||
| 29 | |||
| 30 | // Defines the keycodes used by our macros in process_record_user | ||
| 31 | enum custom_keycodes { | ||
| 32 | BASE = SAFE_RANGE, | ||
| 33 | LOWER, | ||
| 34 | RAISE, | ||
| 35 | }; | ||
| 36 | |||
| 37 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 38 | /* BASE | ||
| 39 | * ------------------------------------------- ------------------------------------------- | ||
| 40 | * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 41 | * ------------------------------------------- ------------------------------------------- | ||
| 42 | * | Tab | Q | W | E | R | T | | Y | U | I | O | P | \ | | ||
| 43 | * ------------------------------------------- --------- -------------------------------------------- | ||
| 44 | * | Esc | A | S | D | F | G | | Bksp | | H | J | K | L | ; |Enter | | ||
| 45 | * ------------------------------------------- --------- ------------------------------------------- | ||
| 46 | * | Shift| Z | X | C | V | B | | Del | | N | M | , | . | / |Sft(')| | ||
| 47 | * ------------------------------------------- --------- ------------------------------------------- | ||
| 48 | * | GUI | Alt | Ctrl |Lower |Space | |Space |Raise |Alt | Left | Right| | ||
| 49 | * ------------------------------------ ------------------------------------ | ||
| 50 | */ | ||
| 51 | |||
| 52 | [_BASE] = LAYOUT( | ||
| 53 | KC_GRV, KC_1 , KC_2 , KC_3 , KC_4 , KC_5 , KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSPC, | ||
| 54 | KC_TAB, KC_Q , KC_W , KC_E , KC_R , KC_T , KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSLS, | ||
| 55 | KC_ESC, KC_A , KC_S , KC_D , KC_F , KC_G , KC_BSPC, KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_ENT , | ||
| 56 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B , KC_DEL , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, RSFT_T(KC_QUOT), | ||
| 57 | KC_LGUI, KC_LALT, KC_LCTL, LOWER , KC_SPC, KC_SPC , RAISE , KC_RALT, KC_LEFT, KC_RGHT | ||
| 58 | ), | ||
| 59 | |||
| 60 | [_LOWER] = LAYOUT( | ||
| 61 | KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , | ||
| 62 | KC_BSPC, KC_SLSH, KC_7 , KC_8 , KC_9 , KC_PPLS, KC_CIRC, KC_LBRC, KC_RBRC, KC_AT , KC_EXLM, _______, | ||
| 63 | KC_EQL , KC_0 , KC_4 , KC_5 , KC_6 , KC_MINS, KC_LEFT, KC_PIPE, KC_LPRN, KC_RPRN, KC_HASH, KC_DQUO, _______, | ||
| 64 | KC_ENT , KC_PAST, KC_1 , KC_2 , KC_3 , KC_UNDS, KC_RGHT, KC_DLR , KC_LCBR, KC_RCBR, KC_AMPR, KC_PERC, _______, | ||
| 65 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 66 | ), | ||
| 67 | |||
| 68 | [_RAISE] = LAYOUT( | ||
| 69 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 70 | _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_BSPC, KC_DEL , KC_END , _______, | ||
| 71 | _______, _______, _______, _______, _______, _______, KC_UP , KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, KC_QUOT, _______, | ||
| 72 | _______, _______, _______, _______, _______, _______, KC_DOWN, _______, KC_PGUP, _______, KC_PGDN, _______, _______, | ||
| 73 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 74 | ), | ||
| 75 | |||
| 76 | [_ADJUST] = LAYOUT( | ||
| 77 | RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, DEBUG , | ||
| 78 | _______, RGB_TOG, RGB_RMOD, RGB_MOD, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, | ||
| 79 | KC_CAPS, _______, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, KC_VOLU, _______, _______, _______, _______, _______, _______, | ||
| 80 | _______, AU_ON , AU_OFF , _______, _______, _______, KC_VOLD, _______, _______, _______, _______, _______, _______, | ||
| 81 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 82 | ) | ||
| 83 | }; | ||
| 84 | |||
| 85 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 86 | switch (keycode) { | ||
| 87 | |||
| 88 | case LOWER: | ||
| 89 | if (record->event.pressed) { | ||
| 90 | layer_on(_LOWER); | ||
| 91 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 92 | } else { | ||
| 93 | layer_off(_LOWER); | ||
| 94 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 95 | } | ||
| 96 | return false; | ||
| 97 | |||
| 98 | case RAISE: | ||
| 99 | if (record->event.pressed) { | ||
| 100 | layer_on(_RAISE); | ||
| 101 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 102 | } else { | ||
| 103 | layer_off(_RAISE); | ||
| 104 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 105 | } | ||
| 106 | return false; | ||
| 107 | |||
| 108 | case RESET: | ||
| 109 | if (record->event.pressed) { | ||
| 110 | #ifdef AUDIO_ENABLE | ||
| 111 | stop_all_notes(); | ||
| 112 | PLAY_SONG(song_coin); | ||
| 113 | #endif | ||
| 114 | } | ||
| 115 | return false; | ||
| 116 | } | ||
| 117 | return true; | ||
| 118 | } | ||
| 119 | |||
| 120 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 121 | /* With an if statement we can check which encoder was turned. */ | ||
| 122 | if (index == 0) { /* First encoder */ | ||
| 123 | /* And with another if statement we can check the direction. */ | ||
| 124 | if (clockwise) { | ||
| 125 | if (IS_LAYER_ON(_LOWER)){ | ||
| 126 | tap_code(KC_RIGHT); | ||
| 127 | } else if (IS_LAYER_ON(_RAISE)){ | ||
| 128 | tap_code(KC_DOWN); | ||
| 129 | } else { | ||
| 130 | tap_code(KC_VOLU); | ||
| 131 | } | ||
| 132 | } else { | ||
| 133 | if (IS_LAYER_ON(_LOWER)){ | ||
| 134 | tap_code(KC_LEFT); | ||
| 135 | } else if (IS_LAYER_ON(_RAISE)){ | ||
| 136 | tap_code(KC_UP); | ||
| 137 | } else { | ||
| 138 | tap_code(KC_VOLD); | ||
| 139 | } | ||
| 140 | } | ||
| 141 | |||
| 142 | } else if (index == 1) { /* Second encoder. Only supported by Elite-C */ | ||
| 143 | if (clockwise) { | ||
| 144 | if (IS_LAYER_ON(_LOWER)){ | ||
| 145 | tap_code(KC_RIGHT); | ||
| 146 | } else if (IS_LAYER_ON(_RAISE)){ | ||
| 147 | tap_code(KC_DOWN); | ||
| 148 | } else { | ||
| 149 | tap_code(KC_VOLU); | ||
| 150 | } | ||
| 151 | } else { | ||
| 152 | if (IS_LAYER_ON(_LOWER)){ | ||
| 153 | tap_code(KC_LEFT); | ||
| 154 | } else if (IS_LAYER_ON(_RAISE)){ | ||
| 155 | tap_code(KC_UP); | ||
| 156 | } else { | ||
| 157 | tap_code(KC_VOLD); | ||
| 158 | } | ||
| 159 | } | ||
| 160 | } | ||
| 161 | } | ||
diff --git a/keyboards/delikeeb/vanana/keymaps/default/readme.md b/keyboards/delikeeb/vanana/keymaps/default/readme.md new file mode 100644 index 000000000..4fb4d2183 --- /dev/null +++ b/keyboards/delikeeb/vanana/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for vanana | |||
diff --git a/keyboards/delikeeb/vanana/keymaps/via/keymap.c b/keyboards/delikeeb/vanana/keymaps/via/keymap.c new file mode 100644 index 000000000..6d04898f3 --- /dev/null +++ b/keyboards/delikeeb/vanana/keymaps/via/keymap.c | |||
| @@ -0,0 +1,81 @@ | |||
| 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 { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _ADJUST | ||
| 24 | }; | ||
| 25 | |||
| 26 | // Defines the keycodes used by our macros in process_record_user | ||
| 27 | enum custom_keycodes { | ||
| 28 | BASE = SAFE_RANGE, | ||
| 29 | LOWER, | ||
| 30 | RAISE, | ||
| 31 | }; | ||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 36 | /* BASE | ||
| 37 | * ------------------------------------------- ------------------------------------------- | ||
| 38 | * | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 39 | * ------------------------------------------- ------------------------------------------- | ||
| 40 | * | Tab | Q | W | E | R | T | | Y | U | I | O | P | \ | | ||
| 41 | * ------------------------------------------- --------- -------------------------------------------- | ||
| 42 | * | Esc | A | S | D | F | G | | Bksp | | H | J | K | L | ; |Enter | | ||
| 43 | * ------------------------------------------- --------- ------------------------------------------- | ||
| 44 | * | Shift| Z | X | C | V | B | | Del | | N | M | , | . | / | " | | ||
| 45 | * ------------------------------------------- --------- ------------------------------------------- | ||
| 46 | * | Ctrl | GUI | Alt |Lower |Space | |Space |Raise |Alt | DOWN | UP | | ||
| 47 | * ------------------------------------ ------------------------------------ | ||
| 48 | */ | ||
| 49 | |||
| 50 | [_BASE] = LAYOUT( | ||
| 51 | KC_GRV, KC_1 , KC_2 , KC_3 , KC_4 , KC_5, KC_6 , KC_7 , KC_8 , KC_9 , KC_0 , KC_BSPC, | ||
| 52 | KC_TAB, KC_Q , KC_W , KC_E , KC_R , KC_T, KC_Y , KC_U , KC_I , KC_O , KC_P , KC_BSLS, | ||
| 53 | KC_ESC, KC_A , KC_S , KC_D , KC_F , KC_G, KC_BSPC, KC_H , KC_J , KC_K , KC_L , KC_SCLN, KC_ENT , | ||
| 54 | KC_LSFT, KC_Z , KC_X , KC_C , KC_V , KC_B, KC_DEL , KC_N , KC_M , KC_COMM, KC_DOT , KC_SLSH, RSFT_T(KC_QUOT), | ||
| 55 | KC_LCTL, KC_LALT, KC_LGUI, LOWER , KC_SPC, KC_SPC , RAISE , KC_RALT, KC_DOWN, KC_UP | ||
| 56 | ), | ||
| 57 | |||
| 58 | [_LOWER] = LAYOUT( | ||
| 59 | KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , | ||
| 60 | KC_BSPC, KC_SLSH, KC_7 , KC_8 , KC_9 , KC_PPLS, KC_CIRC, KC_LBRC, KC_RBRC, KC_AT , KC_EXLM, _______, | ||
| 61 | KC_EQL , KC_0 , KC_4 , KC_5 , KC_6 , KC_MINS, KC_LEFT, KC_PIPE, KC_LPRN, KC_RPRN, KC_HASH, KC_DQUO, _______, | ||
| 62 | KC_ENT , KC_PAST, KC_1 , KC_2 , KC_3 , KC_UNDS, KC_RGHT, KC_DLR , KC_LCBR, KC_RCBR, KC_AMPR, KC_PERC, _______, | ||
| 63 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 64 | ), | ||
| 65 | |||
| 66 | [_RAISE] = LAYOUT( | ||
| 67 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 68 | _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_BSPC, KC_DEL , KC_END , _______, | ||
| 69 | _______, _______, _______, _______, _______, _______, KC_UP , KC_LEFT, KC_DOWN, KC_UP , KC_RGHT, KC_QUOT, _______, | ||
| 70 | _______, _______, _______, _______, _______, _______, KC_DOWN, _______, KC_PGUP, _______, KC_PGDN, _______, _______, | ||
| 71 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 72 | ), | ||
| 73 | |||
| 74 | [_ADJUST] = LAYOUT( | ||
| 75 | RESET , _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, DEBUG , | ||
| 76 | _______, RGB_TOG, RGB_RMOD, RGB_MOD, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, | ||
| 77 | KC_CAPS, _______, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, KC_VOLU, _______, _______, _______, _______, _______, _______, | ||
| 78 | _______, AU_ON , AU_OFF , _______, _______, _______, KC_VOLD, _______, _______, _______, _______, _______, _______, | ||
| 79 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 80 | ) | ||
| 81 | }; | ||
diff --git a/keyboards/delikeeb/vanana/keymaps/via/rules.mk b/keyboards/delikeeb/vanana/keymaps/via/rules.mk new file mode 100644 index 000000000..9b19aff09 --- /dev/null +++ b/keyboards/delikeeb/vanana/keymaps/via/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | VIA_ENABLE = yes | ||
| 2 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/delikeeb/vanana/readme.md b/keyboards/delikeeb/vanana/readme.md new file mode 100644 index 000000000..9872b6ed1 --- /dev/null +++ b/keyboards/delikeeb/vanana/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # Vanana | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | Vanana is a non-split ergonomic keyboard with RGB underglow and on-board pinouts for a Bluetooth setup. Designed by dELIKEEb. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [noclew](https://github.com/noclew) | ||
| 8 | * Hardware Supported: Vanana PCB | ||
| 9 | * Hardware Availability: Not commercially available. GB on Reddit and Geekhack time to times. | ||
| 10 | |||
| 11 | Make example for this keyboard (after setting up your build environment): | ||
| 12 | |||
| 13 | make delikeeb/vanana/rev2:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make delikeeb/vanana/rev2: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/vanana/rev1/config.h b/keyboards/delikeeb/vanana/rev1/config.h new file mode 100644 index 000000000..d584e32a3 --- /dev/null +++ b/keyboards/delikeeb/vanana/rev1/config.h | |||
| @@ -0,0 +1,100 @@ | |||
| 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 | /* USB Device descriptor parameter */ | ||
| 21 | #define DEVICE_VER 0x0001 | ||
| 22 | #define PRODUCT Vanana rev1 | ||
| 23 | |||
| 24 | /* key matrix size */ | ||
| 25 | #define MATRIX_ROWS 5 | ||
| 26 | #define MATRIX_COLS 12 | ||
| 27 | |||
| 28 | /* | ||
| 29 | * Keyboard Matrix Assignments | ||
| 30 | * | ||
| 31 | * Change this to how you wired your keyboard | ||
| 32 | * COLS: AVR pins used for columns, left to right | ||
| 33 | * ROWS: AVR pins used for rows, top to bottom | ||
| 34 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 35 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 36 | * | ||
| 37 | */ | ||
| 38 | #define MATRIX_ROW_PINS { D2, D7, B4, B5, B6 } | ||
| 39 | #define MATRIX_COL_PINS { B2, B3, B1, F7, F5, F6, D3, D1, D0, D4, C6, E6 } | ||
| 40 | #define UNUSED_PINS | ||
| 41 | |||
| 42 | /* COL2ROW, ROW2COL */ | ||
| 43 | #define DIODE_DIRECTION COL2ROW | ||
| 44 | |||
| 45 | /* Rotary Encoder and Buzzer */ | ||
| 46 | #define ENCODERS_PAD_A { C7, F1 } | ||
| 47 | #define ENCODERS_PAD_B { D5, F0 } | ||
| 48 | #define B7_AUDIO | ||
| 49 | |||
| 50 | #define RGB_DI_PIN F0 | ||
| 51 | #ifdef RGB_DI_PIN | ||
| 52 | # define RGBLED_NUM 16 | ||
| 53 | # define RGBLIGHT_HUE_STEP 8 | ||
| 54 | # define RGBLIGHT_SAT_STEP 8 | ||
| 55 | # define RGBLIGHT_VAL_STEP 8 | ||
| 56 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 57 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 58 | /*== all animations enable ==*/ | ||
| 59 | // # define RGBLIGHT_ANIMATIONS | ||
| 60 | /*== or choose animations ==*/ | ||
| 61 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 62 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 63 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 64 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 65 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 66 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 67 | # define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 68 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 69 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 70 | /*== customize breathing effect ==*/ | ||
| 71 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 72 | # define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 73 | /*==== use exp() and sin() ====*/ | ||
| 74 | # define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 75 | # define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 76 | #endif | ||
| 77 | |||
| 78 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 79 | #define DEBOUNCE 5 | ||
| 80 | |||
| 81 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 82 | //#define MATRIX_HAS_GHOST | ||
| 83 | |||
| 84 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 85 | #define LOCKING_SUPPORT_ENABLE | ||
| 86 | /* Locking resynchronize hack */ | ||
| 87 | #define LOCKING_RESYNC_ENABLE | ||
| 88 | |||
| 89 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 90 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 91 | */ | ||
| 92 | #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 93 | |||
| 94 | /* disable these deprecated features by default */ | ||
| 95 | #define NO_ACTION_MACRO | ||
| 96 | #define NO_ACTION_FUNCTION | ||
| 97 | |||
| 98 | /* Bootmagic Lite key configuration */ | ||
| 99 | #define BOOTMAGIC_LITE_ROW 0 | ||
| 100 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/delikeeb/vanana/rev1/rev1.c b/keyboards/delikeeb/vanana/rev1/rev1.c new file mode 100644 index 000000000..73b5039eb --- /dev/null +++ b/keyboards/delikeeb/vanana/rev1/rev1.c | |||
| @@ -0,0 +1,17 @@ | |||
| 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 "rev1.h" | ||
diff --git a/keyboards/delikeeb/vanana/rev1/rev1.h b/keyboards/delikeeb/vanana/rev1/rev1.h new file mode 100644 index 000000000..3b125b3ca --- /dev/null +++ b/keyboards/delikeeb/vanana/rev1/rev1.h | |||
| @@ -0,0 +1,40 @@ | |||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | /* This is a shortcut to help you visually see your layout. | ||
| 21 | * | ||
| 22 | * The first section contains all of the arguments representing the physical | ||
| 23 | * layout of the board and position of the keys. | ||
| 24 | * | ||
| 25 | * The second converts the arguments into a two-dimensional array which | ||
| 26 | * represents the switch matrix. | ||
| 27 | */ | ||
| 28 | #define LAYOUT( \ | ||
| 29 | k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, \ | ||
| 30 | k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, \ | ||
| 31 | k25, k26, k27, k28, k29, k30, k49, k31, k32, k33, k34, k35, k36, \ | ||
| 32 | k37, k38, k39, k40, k41, k42, k60, k43, k44, k45, k46, k47, k48, \ | ||
| 33 | k50, k51, k52, k53, k54, k55, k56, k57, k58, k59 \ | ||
| 34 | ) { \ | ||
| 35 | { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12 }, \ | ||
| 36 | { k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24 }, \ | ||
| 37 | { k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36 }, \ | ||
| 38 | { k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48 }, \ | ||
| 39 | { k49, k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k60 } \ | ||
| 40 | } | ||
diff --git a/keyboards/delikeeb/vanana/rev1/rules.mk b/keyboards/delikeeb/vanana/rev1/rules.mk new file mode 100644 index 000000000..eee766eca --- /dev/null +++ b/keyboards/delikeeb/vanana/rev1/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 2 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/delikeeb/vanana/rev2/config.h b/keyboards/delikeeb/vanana/rev2/config.h new file mode 100644 index 000000000..8893bb09f --- /dev/null +++ b/keyboards/delikeeb/vanana/rev2/config.h | |||
| @@ -0,0 +1,100 @@ | |||
| 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 | /* USB Device descriptor parameter */ | ||
| 21 | #define DEVICE_VER 0x0002 | ||
| 22 | #define PRODUCT Vanana rev2 | ||
| 23 | |||
| 24 | /* key matrix size */ | ||
| 25 | #define MATRIX_ROWS 6 | ||
| 26 | #define MATRIX_COLS 10 | ||
| 27 | |||
| 28 | /* | ||
| 29 | * Keyboard Matrix Assignments | ||
| 30 | * | ||
| 31 | * Change this to how you wired your keyboard | ||
| 32 | * COLS: AVR pins used for columns, left to right | ||
| 33 | * ROWS: AVR pins used for rows, top to bottom | ||
| 34 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 35 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 36 | * | ||
| 37 | */ | ||
| 38 | #define MATRIX_ROW_PINS { D1, C6, E6, B4, B5, F5} | ||
| 39 | #define MATRIX_COL_PINS { B3, B1, F7, F6, F4, D2, D3, D0, D4, D7 } | ||
| 40 | #define UNUSED_PINS | ||
| 41 | |||
| 42 | /* COL2ROW, ROW2COL */ | ||
| 43 | #define DIODE_DIRECTION COL2ROW | ||
| 44 | |||
| 45 | /* Rotary Encoder and Buzzer */ | ||
| 46 | #define ENCODERS_PAD_A { B6, F0 } | ||
| 47 | #define ENCODERS_PAD_B { B2, F1 } | ||
| 48 | #define B7_AUDIO | ||
| 49 | |||
| 50 | #define RGB_DI_PIN C7 | ||
| 51 | #ifdef RGB_DI_PIN | ||
| 52 | # define RGBLED_NUM 16 | ||
| 53 | # define RGBLIGHT_HUE_STEP 8 | ||
| 54 | # define RGBLIGHT_SAT_STEP 8 | ||
| 55 | # define RGBLIGHT_VAL_STEP 8 | ||
| 56 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 57 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 58 | /*== all animations enable ==*/ | ||
| 59 | // # define RGBLIGHT_ANIMATIONS | ||
| 60 | /*== or choose animations ==*/ | ||
| 61 | //# define RGBLIGHT_EFFECT_BREATHING | ||
| 62 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 63 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 64 | //# define RGBLIGHT_EFFECT_SNAKE | ||
| 65 | //# define RGBLIGHT_EFFECT_KNIGHT | ||
| 66 | //# define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 67 | # define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 68 | //# define RGBLIGHT_EFFECT_RGB_TEST | ||
| 69 | //# define RGBLIGHT_EFFECT_ALTERNATING | ||
| 70 | /*== customize breathing effect ==*/ | ||
| 71 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 72 | # define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 73 | /*==== use exp() and sin() ====*/ | ||
| 74 | # define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 75 | # define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 76 | #endif | ||
| 77 | |||
| 78 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 79 | #define DEBOUNCE 5 | ||
| 80 | |||
| 81 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 82 | //#define MATRIX_HAS_GHOST | ||
| 83 | |||
| 84 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 85 | #define LOCKING_SUPPORT_ENABLE | ||
| 86 | /* Locking resynchronize hack */ | ||
| 87 | #define LOCKING_RESYNC_ENABLE | ||
| 88 | |||
| 89 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 90 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 91 | */ | ||
| 92 | #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 93 | |||
| 94 | /* disable these deprecated features by default */ | ||
| 95 | #define NO_ACTION_MACRO | ||
| 96 | #define NO_ACTION_FUNCTION | ||
| 97 | |||
| 98 | /* Bootmagic Lite key configuration */ | ||
| 99 | #define BOOTMAGIC_LITE_ROW 0 | ||
| 100 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/delikeeb/vanana/rev2/rev2.c b/keyboards/delikeeb/vanana/rev2/rev2.c new file mode 100644 index 000000000..8f2a25992 --- /dev/null +++ b/keyboards/delikeeb/vanana/rev2/rev2.c | |||
| @@ -0,0 +1,17 @@ | |||
| 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 "rev2.h" | ||
diff --git a/keyboards/delikeeb/vanana/rev2/rev2.h b/keyboards/delikeeb/vanana/rev2/rev2.h new file mode 100644 index 000000000..7f8d16b57 --- /dev/null +++ b/keyboards/delikeeb/vanana/rev2/rev2.h | |||
| @@ -0,0 +1,41 @@ | |||
| 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 | #pragma once | ||
| 17 | |||
| 18 | #include "quantum.h" | ||
| 19 | |||
| 20 | /* This is a shortcut to help you visually see your layout. | ||
| 21 | * | ||
| 22 | * The first section contains all of the arguments representing the physical | ||
| 23 | * layout of the board and position of the keys. | ||
| 24 | * | ||
| 25 | * The second converts the arguments into a two-dimensional array which | ||
| 26 | * represents the switch matrix. | ||
| 27 | */ | ||
| 28 | #define LAYOUT( \ | ||
| 29 | k01, k02, k03, k04, k05, k55, k60, k06, k07, k08, k09, k10, \ | ||
| 30 | k11, k12, k13, k14, k15, k54, k59, k16, k17, k18, k19, k20, \ | ||
| 31 | k21, k22, k23, k24, k25, k53, k56, k58, k26, k27, k28, k29, k30, \ | ||
| 32 | k31, k32, k33, k34, k35, k52, k51, k57, k36, k37, k38, k39, k40, \ | ||
| 33 | k41, k42, k43, k44, k45, k46, k47, k48, k49, k50 \ | ||
| 34 | ) { \ | ||
| 35 | { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10 }, \ | ||
| 36 | { k11, k12, k13, k14, k15, k16, k17, k18, k19, k20 }, \ | ||
| 37 | { k21, k22, k23, k24, k25, k26, k27, k28, k29, k30 }, \ | ||
| 38 | { k31, k32, k33, k34, k35, k36, k37, k38, k39, k40 }, \ | ||
| 39 | { k41, k42, k43, k44, k45, k46, k47, k48, k49, k50 }, \ | ||
| 40 | { k51, k52, k53, k54, k55, k56, k57, k58, k59, k60 } \ | ||
| 41 | } | ||
diff --git a/keyboards/delikeeb/vanana/rev2/rules.mk b/keyboards/delikeeb/vanana/rev2/rules.mk new file mode 100644 index 000000000..8bb6ab5d9 --- /dev/null +++ b/keyboards/delikeeb/vanana/rev2/rules.mk | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 2 | AUDIO_ENABLE = yes # Audio output | ||
diff --git a/keyboards/delikeeb/vanana/rules.mk b/keyboards/delikeeb/vanana/rules.mk new file mode 100644 index 000000000..f4aa79909 --- /dev/null +++ b/keyboards/delikeeb/vanana/rules.mk | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = atmel-dfu | ||
| 6 | |||
| 7 | # Build Options | ||
| 8 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 9 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 10 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 11 | CONSOLE_ENABLE = no # Console for debug | ||
| 12 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 13 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 14 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 15 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 16 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 17 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 18 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 19 | ENCODER_ENABLE = yes # Enable Rotary Encoder | ||
| 20 | |||
| 21 | # additional features for ELITE-C | ||
| 22 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 23 | AUDIO_ENABLE = no # Audio output | ||
| 24 | |||
| 25 | DEFAULT_FOLDER = delikeeb/vanana/rev2 | ||
diff --git a/keyboards/delikeeb/vaneela/config.h b/keyboards/delikeeb/vaneela/config.h new file mode 100644 index 000000000..b8f031d7c --- /dev/null +++ b/keyboards/delikeeb/vaneela/config.h | |||
| @@ -0,0 +1,163 @@ | |||
| 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 0x0001 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER noclew | ||
| 27 | #define PRODUCT Vaneela | ||
| 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, F7, 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 | |||
| 51 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 52 | #define DEBOUNCE 5 | ||
| 53 | |||
| 54 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 55 | //#define MATRIX_HAS_GHOST | ||
| 56 | |||
| 57 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 58 | #define LOCKING_SUPPORT_ENABLE | ||
| 59 | /* Locking resynchronize hack */ | ||
| 60 | #define LOCKING_RESYNC_ENABLE | ||
| 61 | |||
| 62 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 63 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 64 | */ | ||
| 65 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 66 | |||
| 67 | /* | ||
| 68 | * Force NKRO | ||
| 69 | * | ||
| 70 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 71 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 72 | * makefile for this to work.) | ||
| 73 | * | ||
| 74 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 75 | * until the next keyboard reset. | ||
| 76 | * | ||
| 77 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 78 | * fully operational during normal computer usage. | ||
| 79 | * | ||
| 80 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 81 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 82 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 83 | * power-up. | ||
| 84 | * | ||
| 85 | */ | ||
| 86 | //#define FORCE_NKRO | ||
| 87 | |||
| 88 | /* | ||
| 89 | * Magic Key Options | ||
| 90 | * | ||
| 91 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 92 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 93 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 94 | * | ||
| 95 | * The options below allow the magic key functionality to be changed. This is | ||
| 96 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 97 | * | ||
| 98 | */ | ||
| 99 | |||
| 100 | /* key combination for magic key command */ | ||
| 101 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 102 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | ||
| 103 | |||
| 104 | /* control how magic key switches layers */ | ||
| 105 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 106 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 107 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 108 | |||
| 109 | /* override magic key keymap */ | ||
| 110 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 111 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 112 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 113 | //#define MAGIC_KEY_HELP H | ||
| 114 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 115 | //#define MAGIC_KEY_DEBUG D | ||
| 116 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 117 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 118 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 119 | //#define MAGIC_KEY_VERSION V | ||
| 120 | //#define MAGIC_KEY_STATUS S | ||
| 121 | //#define MAGIC_KEY_CONSOLE C | ||
| 122 | //#define MAGIC_KEY_LAYER0 0 | ||
| 123 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 124 | //#define MAGIC_KEY_LAYER1 1 | ||
| 125 | //#define MAGIC_KEY_LAYER2 2 | ||
| 126 | //#define MAGIC_KEY_LAYER3 3 | ||
| 127 | //#define MAGIC_KEY_LAYER4 4 | ||
| 128 | //#define MAGIC_KEY_LAYER5 5 | ||
| 129 | //#define MAGIC_KEY_LAYER6 6 | ||
| 130 | //#define MAGIC_KEY_LAYER7 7 | ||
| 131 | //#define MAGIC_KEY_LAYER8 8 | ||
| 132 | //#define MAGIC_KEY_LAYER9 9 | ||
| 133 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 134 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 135 | //#define MAGIC_KEY_LOCK CAPS | ||
| 136 | //#define MAGIC_KEY_EEPROM E | ||
| 137 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 138 | //#define MAGIC_KEY_NKRO N | ||
| 139 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 140 | |||
| 141 | /* | ||
| 142 | * Feature disable options | ||
| 143 | * These options are also useful to firmware size reduction. | ||
| 144 | */ | ||
| 145 | |||
| 146 | /* disable debug print */ | ||
| 147 | //#define NO_DEBUG | ||
| 148 | |||
| 149 | /* disable print */ | ||
| 150 | //#define NO_PRINT | ||
| 151 | |||
| 152 | /* disable action features */ | ||
| 153 | //#define NO_ACTION_LAYER | ||
| 154 | //#define NO_ACTION_TAPPING | ||
| 155 | //#define NO_ACTION_ONESHOT | ||
| 156 | |||
| 157 | /* disable these deprecated features by default */ | ||
| 158 | #define NO_ACTION_MACRO | ||
| 159 | #define NO_ACTION_FUNCTION | ||
| 160 | |||
| 161 | /* Bootmagic Lite key configuration */ | ||
| 162 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 163 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/delikeeb/vaneela/info.json b/keyboards/delikeeb/vaneela/info.json new file mode 100644 index 000000000..9faf7ceff --- /dev/null +++ b/keyboards/delikeeb/vaneela/info.json | |||
| @@ -0,0 +1,313 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Vaneela", | ||
| 3 | "url": "http://www.keyboard-layout-editor.com/#/gists/be89ff3a761a44280296994d459bd0a9", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 12.5, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 9 | "layout": [ | ||
| 10 | { | ||
| 11 | "label": "`", | ||
| 12 | "x": 0, | ||
| 13 | "y": 0 | ||
| 14 | }, | ||
| 15 | { | ||
| 16 | "label": "1", | ||
| 17 | "x": 1, | ||
| 18 | "y": 0 | ||
| 19 | }, | ||
| 20 | { | ||
| 21 | "label": "2", | ||
| 22 | "x": 2, | ||
| 23 | "y": 0 | ||
| 24 | }, | ||
| 25 | { | ||
| 26 | "label": "3", | ||
| 27 | "x": 3, | ||
| 28 | "y": 0 | ||
| 29 | }, | ||
| 30 | { | ||
| 31 | "label": "4", | ||
| 32 | "x": 4, | ||
| 33 | "y": 0 | ||
| 34 | }, | ||
| 35 | { | ||
| 36 | "label": "5", | ||
| 37 | "x": 5, | ||
| 38 | "y": 0 | ||
| 39 | }, | ||
| 40 | { | ||
| 41 | "label": "6", | ||
| 42 | "x": 6, | ||
| 43 | "y": 0 | ||
| 44 | }, | ||
| 45 | { | ||
| 46 | "label": "7", | ||
| 47 | "x": 7, | ||
| 48 | "y": 0 | ||
| 49 | }, | ||
| 50 | { | ||
| 51 | "label": "8", | ||
| 52 | "x": 8, | ||
| 53 | "y": 0 | ||
| 54 | }, | ||
| 55 | { | ||
| 56 | "label": "9", | ||
| 57 | "x": 9, | ||
| 58 | "y": 0 | ||
| 59 | }, | ||
| 60 | { | ||
| 61 | "label": "0", | ||
| 62 | "x": 10, | ||
| 63 | "y": 0 | ||
| 64 | }, | ||
| 65 | { | ||
| 66 | "label": ":)", | ||
| 67 | "x": 11, | ||
| 68 | "y": 0, | ||
| 69 | "w": 1.5 | ||
| 70 | }, | ||
| 71 | { | ||
| 72 | "label": "TAB", | ||
| 73 | "x": 0, | ||
| 74 | "y": 1 | ||
| 75 | }, | ||
| 76 | { | ||
| 77 | "label": "Q", | ||
| 78 | "x": 1, | ||
| 79 | "y": 1 | ||
| 80 | }, | ||
| 81 | { | ||
| 82 | "label": "W", | ||
| 83 | "x": 2, | ||
| 84 | "y": 1 | ||
| 85 | }, | ||
| 86 | { | ||
| 87 | "label": "E", | ||
| 88 | "x": 3, | ||
| 89 | "y": 1 | ||
| 90 | }, | ||
| 91 | { | ||
| 92 | "label": "R", | ||
| 93 | "x": 4, | ||
| 94 | "y": 1 | ||
| 95 | }, | ||
| 96 | { | ||
| 97 | "label": "T", | ||
| 98 | "x": 5, | ||
| 99 | "y": 1 | ||
| 100 | }, | ||
| 101 | { | ||
| 102 | "label": "Y", | ||
| 103 | "x": 6, | ||
| 104 | "y": 1 | ||
| 105 | }, | ||
| 106 | { | ||
| 107 | "label": "U", | ||
| 108 | "x": 7, | ||
| 109 | "y": 1 | ||
| 110 | }, | ||
| 111 | { | ||
| 112 | "label": "I", | ||
| 113 | "x": 8, | ||
| 114 | "y": 1 | ||
| 115 | }, | ||
| 116 | { | ||
| 117 | "label": "O", | ||
| 118 | "x": 9, | ||
| 119 | "y": 1 | ||
| 120 | }, | ||
| 121 | { | ||
| 122 | "label": "P", | ||
| 123 | "x": 10, | ||
| 124 | "y": 1 | ||
| 125 | }, | ||
| 126 | { | ||
| 127 | "label": "BS", | ||
| 128 | "x": 11, | ||
| 129 | "y": 1, | ||
| 130 | "w": 1.5 | ||
| 131 | }, | ||
| 132 | { | ||
| 133 | "label": "ESC", | ||
| 134 | "x": 0, | ||
| 135 | "y": 2, | ||
| 136 | "w": 1.25 | ||
| 137 | }, | ||
| 138 | { | ||
| 139 | "label": "A", | ||
| 140 | "x": 1.25, | ||
| 141 | "y": 2 | ||
| 142 | }, | ||
| 143 | { | ||
| 144 | "label": "S", | ||
| 145 | "x": 2.25, | ||
| 146 | "y": 2 | ||
| 147 | }, | ||
| 148 | { | ||
| 149 | "label": "D", | ||
| 150 | "x": 3.25, | ||
| 151 | "y": 2 | ||
| 152 | }, | ||
| 153 | { | ||
| 154 | "label": "F", | ||
| 155 | "x": 4.25, | ||
| 156 | "y": 2 | ||
| 157 | }, | ||
| 158 | { | ||
| 159 | "label": "G", | ||
| 160 | "x": 5.25, | ||
| 161 | "y": 2 | ||
| 162 | }, | ||
| 163 | { | ||
| 164 | "label": "H", | ||
| 165 | "x": 6.25, | ||
| 166 | "y": 2 | ||
| 167 | }, | ||
| 168 | { | ||
| 169 | "label": "J", | ||
| 170 | "x": 7.25, | ||
| 171 | "y": 2 | ||
| 172 | }, | ||
| 173 | { | ||
| 174 | "label": "K", | ||
| 175 | "x": 8.25, | ||
| 176 | "y": 2 | ||
| 177 | }, | ||
| 178 | { | ||
| 179 | "label": "L", | ||
| 180 | "x": 9.25, | ||
| 181 | "y": 2 | ||
| 182 | }, | ||
| 183 | { | ||
| 184 | "label": ";", | ||
| 185 | "x": 10.25, | ||
| 186 | "y": 2 | ||
| 187 | }, | ||
| 188 | { | ||
| 189 | "label": "ENTER", | ||
| 190 | "x": 11.25, | ||
| 191 | "y": 2, | ||
| 192 | "w": 1.25 | ||
| 193 | }, | ||
| 194 | { | ||
| 195 | "label": "SHIFT", | ||
| 196 | "x": 0, | ||
| 197 | "y": 3, | ||
| 198 | "w": 1.5 | ||
| 199 | }, | ||
| 200 | { | ||
| 201 | "label": "Z", | ||
| 202 | "x": 1.5, | ||
| 203 | "y": 3 | ||
| 204 | }, | ||
| 205 | { | ||
| 206 | "label": "X", | ||
| 207 | "x": 2.5, | ||
| 208 | "y": 3 | ||
| 209 | }, | ||
| 210 | { | ||
| 211 | "label": "C", | ||
| 212 | "x": 3.5, | ||
| 213 | "y": 3 | ||
| 214 | }, | ||
| 215 | { | ||
| 216 | "label": "V", | ||
| 217 | "x": 4.5, | ||
| 218 | "y": 3 | ||
| 219 | }, | ||
| 220 | { | ||
| 221 | "label": "B", | ||
| 222 | "x": 5.5, | ||
| 223 | "y": 3 | ||
| 224 | }, | ||
| 225 | { | ||
| 226 | "label": "N", | ||
| 227 | "x": 6.5, | ||
| 228 | "y": 3 | ||
| 229 | }, | ||
| 230 | { | ||
| 231 | "label": "M", | ||
| 232 | "x": 7.5, | ||
| 233 | "y": 3 | ||
| 234 | }, | ||
| 235 | { | ||
| 236 | "label": ",", | ||
| 237 | "x": 8.5, | ||
| 238 | "y": 3 | ||
| 239 | }, | ||
| 240 | { | ||
| 241 | "label": ".", | ||
| 242 | "x": 9.5, | ||
| 243 | "y": 3 | ||
| 244 | }, | ||
| 245 | { | ||
| 246 | "label": "/", | ||
| 247 | "x": 10.5, | ||
| 248 | "y": 3 | ||
| 249 | }, | ||
| 250 | { | ||
| 251 | "label": "SHIFT", | ||
| 252 | "x": 11.5, | ||
| 253 | "y": 3 | ||
| 254 | }, | ||
| 255 | { | ||
| 256 | "label": "CTRL", | ||
| 257 | "x": 0, | ||
| 258 | "y": 4 | ||
| 259 | }, | ||
| 260 | { | ||
| 261 | "label": "GUI", | ||
| 262 | "x": 1, | ||
| 263 | "y": 4 | ||
| 264 | }, | ||
| 265 | { | ||
| 266 | "label": "ALT", | ||
| 267 | "x": 2, | ||
| 268 | "y": 4 | ||
| 269 | }, | ||
| 270 | { | ||
| 271 | "x": 3, | ||
| 272 | "y": 4 | ||
| 273 | }, | ||
| 274 | { | ||
| 275 | "label": "LOWER", | ||
| 276 | "x": 4, | ||
| 277 | "y": 4, | ||
| 278 | "w": 1.25 | ||
| 279 | }, | ||
| 280 | { | ||
| 281 | "x": 5.25, | ||
| 282 | "y": 4 | ||
| 283 | }, | ||
| 284 | { | ||
| 285 | "x": 6.25, | ||
| 286 | "y": 4 | ||
| 287 | }, | ||
| 288 | { | ||
| 289 | "label": "RAISE", | ||
| 290 | "x": 7.25, | ||
| 291 | "y": 4, | ||
| 292 | "w": 1.25 | ||
| 293 | }, | ||
| 294 | { | ||
| 295 | "x": 8.5, | ||
| 296 | "y": 4 | ||
| 297 | }, | ||
| 298 | { | ||
| 299 | "x": 9.5, | ||
| 300 | "y": 4 | ||
| 301 | }, | ||
| 302 | { | ||
| 303 | "x": 10.5, | ||
| 304 | "y": 4 | ||
| 305 | }, | ||
| 306 | { | ||
| 307 | "x": 11.5, | ||
| 308 | "y": 4 | ||
| 309 | } | ||
| 310 | ] | ||
| 311 | } | ||
| 312 | } | ||
| 313 | } | ||
diff --git a/keyboards/delikeeb/vaneela/keymaps/default/keymap.c b/keyboards/delikeeb/vaneela/keymaps/default/keymap.c new file mode 100644 index 000000000..ce0cd88e7 --- /dev/null +++ b/keyboards/delikeeb/vaneela/keymaps/default/keymap.c | |||
| @@ -0,0 +1,120 @@ | |||
| 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 { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _FN | ||
| 24 | }; | ||
| 25 | |||
| 26 | // Defines the keycodes used by our macros in process_record_user | ||
| 27 | #define LOWER MO(_LOWER) | ||
| 28 | #define RAISE MO(_RAISE) | ||
| 29 | |||
| 30 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 31 | /* BASE | ||
| 32 | * ,-----------------------------------------------------------------------------------. | ||
| 33 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | del | | ||
| 34 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 35 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 36 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 37 | * | Esc | A | S | D | F | G | H | J | K | L | ; |Enter | | ||
| 38 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 39 | * | Shift| Z | X | C | V | B | N | M | , | . | / | " | | ||
| 40 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 41 | * | Ctrl | Ctrl | Alt | GUI |Lower | Space|Space |Raise | Left | Down | Up |Right | | ||
| 42 | * `-----------------------------------------------------------------------------------' | ||
| 43 | * */ | ||
| 44 | [_BASE] = LAYOUT_ortho_5x12( | ||
| 45 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 46 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 47 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
| 48 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_QUOT, | ||
| 49 | KC_LCTL, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 50 | ), | ||
| 51 | |||
| 52 | /* Lower | ||
| 53 | * ,-----------------------------------------------------------------------------------. | ||
| 54 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Bksp | | ||
| 55 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 56 | * | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
| 57 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 58 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
| 59 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 60 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | | | ||
| 61 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 62 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 63 | * `-----------------------------------------------------------------------------------' | ||
| 64 | */ | ||
| 65 | [_LOWER] = LAYOUT_ortho_5x12( | ||
| 66 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_BSPC, | ||
| 67 | KC_TILD, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
| 68 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 69 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, | ||
| 70 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 71 | ), | ||
| 72 | |||
| 73 | /* Raise | ||
| 74 | * ,-----------------------------------------------------------------------------------. | ||
| 75 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Bksp | | ||
| 76 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 77 | * | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
| 78 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 79 | * | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 80 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 81 | * | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | PGUP| PGDN| | | ||
| 82 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 83 | * | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 84 | * `-----------------------------------------------------------------------------------' | ||
| 85 | */ | ||
| 86 | [_RAISE] = LAYOUT_ortho_5x12( | ||
| 87 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 88 | KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_BSPC, KC_9, KC_0, KC_DEL, | ||
| 89 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, KC_BSLS, | ||
| 90 | _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
| 91 | _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 92 | ), | ||
| 93 | |||
| 94 | /* FN (Lower + Raise) | ||
| 95 | * ,-----------------------------------------------------------------------------------. | ||
| 96 | * | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | | ||
| 97 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 98 | * | | Reset| Debug| | | | | | | | | Del | | ||
| 99 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 100 | * | | | |Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
| 101 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 102 | * | |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | | | ||
| 103 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 104 | * | | | | | | | | | | | | | ||
| 105 | * `-----------------------------------------------------------------------------------' | ||
| 106 | */ | ||
| 107 | [_FN] = LAYOUT_ortho_5x12( | ||
| 108 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 109 | _______, RESET, DEBUG, _______, _______, _______, _______, _______, _______,TERM_ON, TERM_OFF, KC_DEL, | ||
| 110 | _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, | ||
| 111 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 112 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 113 | ) | ||
| 114 | |||
| 115 | }; | ||
| 116 | |||
| 117 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 118 | state = update_tri_layer_state(state, _RAISE, _LOWER, _FN); | ||
| 119 | return state; | ||
| 120 | } | ||
diff --git a/keyboards/delikeeb/vaneela/keymaps/default/readme.md b/keyboards/delikeeb/vaneela/keymaps/default/readme.md new file mode 100644 index 000000000..597cee4fa --- /dev/null +++ b/keyboards/delikeeb/vaneela/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for vaneela | |||
diff --git a/keyboards/delikeeb/vaneela/keymaps/via/keymap.c b/keyboards/delikeeb/vaneela/keymaps/via/keymap.c new file mode 100644 index 000000000..1dfad3f8e --- /dev/null +++ b/keyboards/delikeeb/vaneela/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 | // Defines names for use in layer keycodes and the keymap | ||
| 19 | enum layer_names { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _FN | ||
| 24 | }; | ||
| 25 | // Defines the keycodes used by our macros in process_record_user | ||
| 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 | del | | ||
| 33 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 34 | * | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 35 | * |------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 36 | * | Esc | A | S | D | F | G | H | J | K | L | ; |Enter | | ||
| 37 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 38 | * | Shift| Z | X | C | V | B | N | M | , | . | / | " | | ||
| 39 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 40 | * | Ctrl | Ctrl | Alt | GUI |Lower | Space|Space |Raise | Left | Down | Up |Right | | ||
| 41 | * `-----------------------------------------------------------------------------------' | ||
| 42 | * */ | ||
| 43 | [_BASE] = 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_DEL, | ||
| 45 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 46 | KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
| 47 | KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_QUOT, | ||
| 48 | KC_LCTL, 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_BSPC, KC_9, KC_0, KC_DEL, | ||
| 88 | KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, _______, 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 | * | | | |Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
| 100 | * |------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 101 | * | |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | | | ||
| 102 | * |------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 103 | * | | | | | | | | | | | | | ||
| 104 | * `-----------------------------------------------------------------------------------' | ||
| 105 | */ | ||
| 106 | [_FN] = LAYOUT_ortho_5x12( | ||
| 107 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 108 | _______, RESET, DEBUG, _______, _______, _______, _______, _______, _______,TERM_ON, TERM_OFF, KC_DEL, | ||
| 109 | _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, | ||
| 110 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 111 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 112 | ) | ||
| 113 | |||
| 114 | }; | ||
diff --git a/keyboards/delikeeb/vaneela/keymaps/via/rules.mk b/keyboards/delikeeb/vaneela/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/delikeeb/vaneela/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/delikeeb/vaneela/readme.md b/keyboards/delikeeb/vaneela/readme.md new file mode 100644 index 000000000..0e8f89469 --- /dev/null +++ b/keyboards/delikeeb/vaneela/readme.md | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # Vaneela | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | This is a semi-staggered 5x12 keyboard made by a hobbist. Vaneela runs on Pro Micro and its compatible variants, such as elite-C. In matrix wise, it has the same key layout as other 5 x 12 ortholinear boards. | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [noclew](https://github.com/noclew) | ||
| 8 | * Hardware Supported: Vaneela | ||
| 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/vaneela:default | ||
| 14 | |||
| 15 | Flashing example for this keyboard: | ||
| 16 | |||
| 17 | make delikeeb/vaneela: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/vaneela/rules.mk b/keyboards/delikeeb/vaneela/rules.mk new file mode 100644 index 000000000..fd76a5247 --- /dev/null +++ b/keyboards/delikeeb/vaneela/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 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 = lite # Virtual DIP switch configuration | ||
| 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_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 | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/delikeeb/vaneela/vaneela.c b/keyboards/delikeeb/vaneela/vaneela.c new file mode 100644 index 000000000..ca5d513a0 --- /dev/null +++ b/keyboards/delikeeb/vaneela/vaneela.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 "vaneela.h" | ||
| 18 | |||
diff --git a/keyboards/delikeeb/vaneela/vaneela.h b/keyboards/delikeeb/vaneela/vaneela.h new file mode 100644 index 000000000..3fb8d7a6f --- /dev/null +++ b/keyboards/delikeeb/vaneela/vaneela.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/vaneelaex/config.h b/keyboards/delikeeb/vaneelaex/config.h new file mode 100644 index 000000000..0b96918cb --- /dev/null +++ b/keyboards/delikeeb/vaneelaex/config.h | |||
| @@ -0,0 +1,162 @@ | |||
| 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 0x0002 | ||
| 25 | #define DEVICE_VER 0x0001 | ||
| 26 | #define MANUFACTURER delikeeb | ||
| 27 | #define PRODUCT VaneelaEx | ||
| 28 | |||
| 29 | /* key matrix size */ | ||
| 30 | #define MATRIX_ROWS 6 | ||
| 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 { D3, D2, D1, D0, B2, B6 } | ||
| 44 | #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B5, B4, E6, D7, C6, D4 } | ||
| 45 | //#define UNUSED_PINS | ||
| 46 | |||
| 47 | /* COL2ROW, ROW2COL*/ | ||
| 48 | #define DIODE_DIRECTION COL2ROW | ||
| 49 | |||
| 50 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 51 | #define DEBOUNCE 5 | ||
| 52 | |||
| 53 | /* define if matrix has ghost (lacks anti-ghosting diodes) */ | ||
| 54 | //#define MATRIX_HAS_GHOST | ||
| 55 | |||
| 56 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 57 | #define LOCKING_SUPPORT_ENABLE | ||
| 58 | /* Locking resynchronize hack */ | ||
| 59 | #define LOCKING_RESYNC_ENABLE | ||
| 60 | |||
| 61 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 62 | * This is userful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 63 | */ | ||
| 64 | // #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 65 | |||
| 66 | /* | ||
| 67 | * Force NKRO | ||
| 68 | * | ||
| 69 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 70 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 71 | * makefile for this to work.) | ||
| 72 | * | ||
| 73 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 74 | * until the next keyboard reset. | ||
| 75 | * | ||
| 76 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 77 | * fully operational during normal computer usage. | ||
| 78 | * | ||
| 79 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 80 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 81 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 82 | * power-up. | ||
| 83 | * | ||
| 84 | */ | ||
| 85 | //#define FORCE_NKRO | ||
| 86 | |||
| 87 | /* | ||
| 88 | * Magic Key Options | ||
| 89 | * | ||
| 90 | * Magic keys are hotkey commands that allow control over firmware functions of | ||
| 91 | * the keyboard. They are best used in combination with the HID Listen program, | ||
| 92 | * found here: https://www.pjrc.com/teensy/hid_listen.html | ||
| 93 | * | ||
| 94 | * The options below allow the magic key functionality to be changed. This is | ||
| 95 | * useful if your keyboard/keypad is missing keys and you want magic key support. | ||
| 96 | * | ||
| 97 | */ | ||
| 98 | |||
| 99 | /* key combination for magic key command */ | ||
| 100 | /* defined by default; to change, uncomment and set to the combination you want */ | ||
| 101 | // #define IS_COMMAND() (get_mods() == MOD_MASK_SHIFT) | ||
| 102 | |||
| 103 | /* control how magic key switches layers */ | ||
| 104 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS true | ||
| 105 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS true | ||
| 106 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM false | ||
| 107 | |||
| 108 | /* override magic key keymap */ | ||
| 109 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_FKEYS | ||
| 110 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_NKEYS | ||
| 111 | //#define MAGIC_KEY_SWITCH_LAYER_WITH_CUSTOM | ||
| 112 | //#define MAGIC_KEY_HELP H | ||
| 113 | //#define MAGIC_KEY_HELP_ALT SLASH | ||
| 114 | //#define MAGIC_KEY_DEBUG D | ||
| 115 | //#define MAGIC_KEY_DEBUG_MATRIX X | ||
| 116 | //#define MAGIC_KEY_DEBUG_KBD K | ||
| 117 | //#define MAGIC_KEY_DEBUG_MOUSE M | ||
| 118 | //#define MAGIC_KEY_VERSION V | ||
| 119 | //#define MAGIC_KEY_STATUS S | ||
| 120 | //#define MAGIC_KEY_CONSOLE C | ||
| 121 | //#define MAGIC_KEY_LAYER0 0 | ||
| 122 | //#define MAGIC_KEY_LAYER0_ALT GRAVE | ||
| 123 | //#define MAGIC_KEY_LAYER1 1 | ||
| 124 | //#define MAGIC_KEY_LAYER2 2 | ||
| 125 | //#define MAGIC_KEY_LAYER3 3 | ||
| 126 | //#define MAGIC_KEY_LAYER4 4 | ||
| 127 | //#define MAGIC_KEY_LAYER5 5 | ||
| 128 | //#define MAGIC_KEY_LAYER6 6 | ||
| 129 | //#define MAGIC_KEY_LAYER7 7 | ||
| 130 | //#define MAGIC_KEY_LAYER8 8 | ||
| 131 | //#define MAGIC_KEY_LAYER9 9 | ||
| 132 | //#define MAGIC_KEY_BOOTLOADER B | ||
| 133 | //#define MAGIC_KEY_BOOTLOADER_ALT ESC | ||
| 134 | //#define MAGIC_KEY_LOCK CAPS | ||
| 135 | //#define MAGIC_KEY_EEPROM E | ||
| 136 | //#define MAGIC_KEY_EEPROM_CLEAR BSPACE | ||
| 137 | //#define MAGIC_KEY_NKRO N | ||
| 138 | //#define MAGIC_KEY_SLEEP_LED Z | ||
| 139 | |||
| 140 | /* | ||
| 141 | * Feature disable options | ||
| 142 | * These options are also useful to firmware size reduction. | ||
| 143 | */ | ||
| 144 | |||
| 145 | /* disable debug print */ | ||
| 146 | //#define NO_DEBUG | ||
| 147 | |||
| 148 | /* disable print */ | ||
| 149 | //#define NO_PRINT | ||
| 150 | |||
| 151 | /* disable action features */ | ||
| 152 | //#define NO_ACTION_LAYER | ||
| 153 | //#define NO_ACTION_TAPPING | ||
| 154 | //#define NO_ACTION_ONESHOT | ||
| 155 | |||
| 156 | /* disable these deprecated features by default */ | ||
| 157 | #define NO_ACTION_MACRO | ||
| 158 | #define NO_ACTION_FUNCTION | ||
| 159 | |||
| 160 | /* Bootmagic Lite key configuration */ | ||
| 161 | // #define BOOTMAGIC_LITE_ROW 0 | ||
| 162 | // #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/delikeeb/vaneelaex/info.json b/keyboards/delikeeb/vaneelaex/info.json new file mode 100644 index 000000000..aa5b81f4d --- /dev/null +++ b/keyboards/delikeeb/vaneelaex/info.json | |||
| @@ -0,0 +1,326 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "VaneelaEx", | ||
| 3 | "url": "http://www.keyboard-layout-editor.com/#/gists/f605c1a2cb2fea256161964740bd2a52", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 16.5, | ||
| 6 | "height": 4, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ss_6x12": { | ||
| 9 | "layout": [ | ||
| 10 | { | ||
| 11 | "x": 0, | ||
| 12 | "y": 0 | ||
| 13 | }, | ||
| 14 | { | ||
| 15 | "label": "7", | ||
| 16 | "x": 1, | ||
| 17 | "y": 0 | ||
| 18 | }, | ||
| 19 | { | ||
| 20 | "label": "8", | ||
| 21 | "x": 2, | ||
| 22 | "y": 0 | ||
| 23 | }, | ||
| 24 | { | ||
| 25 | "label": "9", | ||
| 26 | "x": 3, | ||
| 27 | "y": 0 | ||
| 28 | }, | ||
| 29 | { | ||
| 30 | "label": "TAB", | ||
| 31 | "x": 4, | ||
| 32 | "y": 0 | ||
| 33 | }, | ||
| 34 | { | ||
| 35 | "label": "Q", | ||
| 36 | "x": 5, | ||
| 37 | "y": 0 | ||
| 38 | }, | ||
| 39 | { | ||
| 40 | "label": "W", | ||
| 41 | "x": 6, | ||
| 42 | "y": 0 | ||
| 43 | }, | ||
| 44 | { | ||
| 45 | "label": "E", | ||
| 46 | "x": 7, | ||
| 47 | "y": 0 | ||
| 48 | }, | ||
| 49 | { | ||
| 50 | "label": "R", | ||
| 51 | "x": 8, | ||
| 52 | "y": 0 | ||
| 53 | }, | ||
| 54 | { | ||
| 55 | "label": "T", | ||
| 56 | "x": 9, | ||
| 57 | "y": 0 | ||
| 58 | }, | ||
| 59 | { | ||
| 60 | "label": "Y", | ||
| 61 | "x": 10, | ||
| 62 | "y": 0 | ||
| 63 | }, | ||
| 64 | { | ||
| 65 | "label": "U", | ||
| 66 | "x": 11, | ||
| 67 | "y": 0 | ||
| 68 | }, | ||
| 69 | { | ||
| 70 | "label": "I", | ||
| 71 | "x": 12, | ||
| 72 | "y": 0 | ||
| 73 | }, | ||
| 74 | { | ||
| 75 | "label": "O", | ||
| 76 | "x": 13, | ||
| 77 | "y": 0 | ||
| 78 | }, | ||
| 79 | { | ||
| 80 | "label": "P", | ||
| 81 | "x": 14, | ||
| 82 | "y": 0 | ||
| 83 | }, | ||
| 84 | { | ||
| 85 | "label": "BS", | ||
| 86 | "x": 15, | ||
| 87 | "y": 0, | ||
| 88 | "w": 1.5 | ||
| 89 | }, | ||
| 90 | { | ||
| 91 | "x": 0, | ||
| 92 | "y": 1 | ||
| 93 | }, | ||
| 94 | { | ||
| 95 | "label": "4", | ||
| 96 | "x": 1, | ||
| 97 | "y": 1 | ||
| 98 | }, | ||
| 99 | { | ||
| 100 | "label": "5", | ||
| 101 | "x": 2, | ||
| 102 | "y": 1 | ||
| 103 | }, | ||
| 104 | { | ||
| 105 | "label": "6", | ||
| 106 | "x": 3, | ||
| 107 | "y": 1 | ||
| 108 | }, | ||
| 109 | { | ||
| 110 | "label": "ESC", | ||
| 111 | "x": 4, | ||
| 112 | "y": 1, | ||
| 113 | "w": 1.25 | ||
| 114 | }, | ||
| 115 | { | ||
| 116 | "label": "A", | ||
| 117 | "x": 5.25, | ||
| 118 | "y": 1 | ||
| 119 | }, | ||
| 120 | { | ||
| 121 | "label": "S", | ||
| 122 | "x": 6.25, | ||
| 123 | "y": 1 | ||
| 124 | }, | ||
| 125 | { | ||
| 126 | "label": "D", | ||
| 127 | "x": 7.25, | ||
| 128 | "y": 1 | ||
| 129 | }, | ||
| 130 | { | ||
| 131 | "label": "F", | ||
| 132 | "x": 8.25, | ||
| 133 | "y": 1 | ||
| 134 | }, | ||
| 135 | { | ||
| 136 | "label": "G", | ||
| 137 | "x": 9.25, | ||
| 138 | "y": 1 | ||
| 139 | }, | ||
| 140 | { | ||
| 141 | "label": "H", | ||
| 142 | "x": 10.25, | ||
| 143 | "y": 1 | ||
| 144 | }, | ||
| 145 | { | ||
| 146 | "label": "J", | ||
| 147 | "x": 11.25, | ||
| 148 | "y": 1 | ||
| 149 | }, | ||
| 150 | { | ||
| 151 | "label": "K", | ||
| 152 | "x": 12.25, | ||
| 153 | "y": 1 | ||
| 154 | }, | ||
| 155 | { | ||
| 156 | "label": "L", | ||
| 157 | "x": 13.25, | ||
| 158 | "y": 1 | ||
| 159 | }, | ||
| 160 | { | ||
| 161 | "label": ";", | ||
| 162 | "x": 14.25, | ||
| 163 | "y": 1 | ||
| 164 | }, | ||
| 165 | { | ||
| 166 | "label": "ENTER", | ||
| 167 | "x": 15.25, | ||
| 168 | "y": 1, | ||
| 169 | "w": 1.25 | ||
| 170 | }, | ||
| 171 | { | ||
| 172 | "x": 0, | ||
| 173 | "y": 2 | ||
| 174 | }, | ||
| 175 | { | ||
| 176 | "label": "1", | ||
| 177 | "x": 1, | ||
| 178 | "y": 2 | ||
| 179 | }, | ||
| 180 | { | ||
| 181 | "label": "2", | ||
| 182 | "x": 2, | ||
| 183 | "y": 2 | ||
| 184 | }, | ||
| 185 | { | ||
| 186 | "label": "3", | ||
| 187 | "x": 3, | ||
| 188 | "y": 2 | ||
| 189 | }, | ||
| 190 | { | ||
| 191 | "label": "SHIFT", | ||
| 192 | "x": 4, | ||
| 193 | "y": 2, | ||
| 194 | "w": 1.5 | ||
| 195 | }, | ||
| 196 | { | ||
| 197 | "label": "Z", | ||
| 198 | "x": 5.5, | ||
| 199 | "y": 2 | ||
| 200 | }, | ||
| 201 | { | ||
| 202 | "label": "X", | ||
| 203 | "x": 6.5, | ||
| 204 | "y": 2 | ||
| 205 | }, | ||
| 206 | { | ||
| 207 | "label": "C", | ||
| 208 | "x": 7.5, | ||
| 209 | "y": 2 | ||
| 210 | }, | ||
| 211 | { | ||
| 212 | "label": "V", | ||
| 213 | "x": 8.5, | ||
| 214 | "y": 2 | ||
| 215 | }, | ||
| 216 | { | ||
| 217 | "label": "B", | ||
| 218 | "x": 9.5, | ||
| 219 | "y": 2 | ||
| 220 | }, | ||
| 221 | { | ||
| 222 | "label": "N", | ||
| 223 | "x": 10.5, | ||
| 224 | "y": 2 | ||
| 225 | }, | ||
| 226 | { | ||
| 227 | "label": "M", | ||
| 228 | "x": 11.5, | ||
| 229 | "y": 2 | ||
| 230 | }, | ||
| 231 | { | ||
| 232 | "label": ",", | ||
| 233 | "x": 12.5, | ||
| 234 | "y": 2 | ||
| 235 | }, | ||
| 236 | { | ||
| 237 | "label": ".", | ||
| 238 | "x": 13.5, | ||
| 239 | "y": 2 | ||
| 240 | }, | ||
| 241 | { | ||
| 242 | "label": "/", | ||
| 243 | "x": 14.5, | ||
| 244 | "y": 2 | ||
| 245 | }, | ||
| 246 | { | ||
| 247 | "label": "SHIFT", | ||
| 248 | "x": 15.5, | ||
| 249 | "y": 2 | ||
| 250 | }, | ||
| 251 | { | ||
| 252 | "x": 0, | ||
| 253 | "y": 3 | ||
| 254 | }, | ||
| 255 | { | ||
| 256 | "x": 1, | ||
| 257 | "y": 3 | ||
| 258 | }, | ||
| 259 | { | ||
| 260 | "x": 2, | ||
| 261 | "y": 3 | ||
| 262 | }, | ||
| 263 | { | ||
| 264 | "label": "0", | ||
| 265 | "x": 3, | ||
| 266 | "y": 3 | ||
| 267 | }, | ||
| 268 | { | ||
| 269 | "label": "CTRL", | ||
| 270 | "x": 4, | ||
| 271 | "y": 3 | ||
| 272 | }, | ||
| 273 | { | ||
| 274 | "label": "GUI", | ||
| 275 | "x": 5, | ||
| 276 | "y": 3 | ||
| 277 | }, | ||
| 278 | { | ||
| 279 | "label": "ALT", | ||
| 280 | "x": 6, | ||
| 281 | "y": 3 | ||
| 282 | }, | ||
| 283 | { | ||
| 284 | "x": 7, | ||
| 285 | "y": 3 | ||
| 286 | }, | ||
| 287 | { | ||
| 288 | "label": "LOWER", | ||
| 289 | "x": 8, | ||
| 290 | "y": 3, | ||
| 291 | "w": 1.25 | ||
| 292 | }, | ||
| 293 | { | ||
| 294 | "x": 9.25, | ||
| 295 | "y": 3 | ||
| 296 | }, | ||
| 297 | { | ||
| 298 | "x": 10.25, | ||
| 299 | "y": 3 | ||
| 300 | }, | ||
| 301 | { | ||
| 302 | "label": "RAISE", | ||
| 303 | "x": 11.25, | ||
| 304 | "y": 3, | ||
| 305 | "w": 1.25 | ||
| 306 | }, | ||
| 307 | { | ||
| 308 | "x": 12.5, | ||
| 309 | "y": 3 | ||
| 310 | }, | ||
| 311 | { | ||
| 312 | "x": 13.5, | ||
| 313 | "y": 3 | ||
| 314 | }, | ||
| 315 | { | ||
| 316 | "x": 14.5, | ||
| 317 | "y": 3 | ||
| 318 | }, | ||
| 319 | { | ||
| 320 | "x": 15.5, | ||
| 321 | "y": 3 | ||
| 322 | } | ||
| 323 | ] | ||
| 324 | } | ||
| 325 | } | ||
| 326 | } | ||
diff --git a/keyboards/delikeeb/vaneelaex/keymaps/default/keymap.c b/keyboards/delikeeb/vaneelaex/keymaps/default/keymap.c new file mode 100644 index 000000000..6e98c9b8a --- /dev/null +++ b/keyboards/delikeeb/vaneelaex/keymaps/default/keymap.c | |||
| @@ -0,0 +1,108 @@ | |||
| 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 { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _FN | ||
| 24 | }; | ||
| 25 | |||
| 26 | // Defines the keycodes used by our macros in process_record_user | ||
| 27 | #define LOWER MO(_LOWER) | ||
| 28 | #define RAISE MO(_RAISE) | ||
| 29 | |||
| 30 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 31 | /* BASE | ||
| 32 | * ,---------------------------------------------------------------------------------------------------------------. | ||
| 33 | * | = | 7 | 8 | 9 | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 34 | * |------+------+------+------+------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 35 | * | - | 4 | 5 | 6 | Esc | A | S | D | F | G | H | J | K | L | ; |Enter | | ||
| 36 | * |------+------+------+------+------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 37 | * | + | 1 | 2 | 3 | Shift| Z | X | C | V | B | N | M | , | . | / | " | | ||
| 38 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 39 | * | / | * | . | 0 | Brite| Ctrl | Alt | GUI |Lower | Space|Space |Raise | Left | Down | Up |Right | | ||
| 40 | * '---------------------------------------------------------------------------------------------------------------' | ||
| 41 | * */ | ||
| 42 | [_BASE] = LAYOUT_ss_6x12( | ||
| 43 | KC_KP_EQUAL, KC_7, KC_8, KC_9, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 44 | KC_KP_MINUS, KC_4, KC_5, KC_6, KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
| 45 | KC_KP_PLUS, KC_1, KC_2, KC_3, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_QUOT, | ||
| 46 | KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_DOT, KC_0, KC_LCTL, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 47 | ), | ||
| 48 | |||
| 49 | /* Lower | ||
| 50 | * ,---------------------------------------------------------------------------------------------------------------. | ||
| 51 | * | = | 7 | 8 | 9 | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
| 52 | * |------+------+------+------+------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 53 | * | - | 4 | 5 | 6 | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
| 54 | * |------+------+------+------+------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 55 | * | + | 1 | 2 | 3 | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | | | ||
| 56 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 57 | * | / | * | . | 0 | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 58 | * `---------------------------------------------------------------------------------------------------------------' | ||
| 59 | */ | ||
| 60 | [_LOWER] = LAYOUT_ss_6x12( | ||
| 61 | KC_KP_EQUAL, KC_7, KC_8, KC_TILDE, KC_9, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
| 62 | KC_KP_MINUS, KC_4, KC_5, KC_DEL, KC_6, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 63 | KC_KP_PLUS, KC_1, KC_2, _______, KC_3, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, | ||
| 64 | KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_DOT, _______, KC_0, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 65 | ), | ||
| 66 | |||
| 67 | /* Raise | ||
| 68 | * ,---------------------------------------------------------------------------------------------------------------. | ||
| 69 | * | = | 7 | 8 | 9 | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
| 70 | * |------+------+------+------+------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 71 | * | - | 4 | 5 | 6 | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 72 | * |------+------+------+------+------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 73 | * | + | 1 | 2 | 3 | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | PGUP| PGDN| | | ||
| 74 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 75 | * | / | * | . | 0 | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 76 | * `---------------------------------------------------------------------------------------------------------------' | ||
| 77 | */ | ||
| 78 | [_RAISE] = LAYOUT_ss_6x12( | ||
| 79 | KC_KP_EQUAL, KC_7, KC_8, KC_9, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 80 | KC_KP_MINUS, KC_4, KC_5, KC_6, KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 81 | KC_KP_PLUS, KC_1, KC_2, KC_3, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
| 82 | KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_DOT, KC_0, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 83 | ), | ||
| 84 | |||
| 85 | /* FN (Lower + Raise) | ||
| 86 | * ,---------------------------------------------------------------------------------------------------------------. | ||
| 87 | * | = | 7 | 8 | 9 | Reset| | Debug| | | | | | | | | Del | | ||
| 88 | * |------+------+------+------+------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 89 | * | - | 4 | 5 | 6 | | | |Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
| 90 | * |------+------+------+------+------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 91 | * | + | 1 | 2 | 3 | |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | | | ||
| 92 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 93 | * | / | * | . | 0 | | | | | | | | | | | | | ||
| 94 | * `---------------------------------------------------------------------------------------------------------------' | ||
| 95 | */ | ||
| 96 | [_FN] = LAYOUT_ss_6x12( | ||
| 97 | KC_KP_EQUAL, KC_7, KC_8, KC_9, RESET , RGB_TOG, RGB_MOD, RGB_HUI, RGB_VAI, RGB_VAD, RGB_SAI, RGB_SAD, _______, _______, _______, KC_DEL, | ||
| 98 | KC_KP_MINUS, KC_4, KC_5, KC_6, _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, | ||
| 99 | KC_KP_PLUS, KC_1, KC_2, KC_3, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 100 | KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_DOT, KC_0, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 101 | ) | ||
| 102 | |||
| 103 | }; | ||
| 104 | |||
| 105 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 106 | state = update_tri_layer_state(state, _RAISE, _LOWER, _FN); | ||
| 107 | return state; | ||
| 108 | } | ||
diff --git a/keyboards/delikeeb/vaneelaex/keymaps/default/readme.md b/keyboards/delikeeb/vaneelaex/keymaps/default/readme.md new file mode 100644 index 000000000..89c3c8c2a --- /dev/null +++ b/keyboards/delikeeb/vaneelaex/keymaps/default/readme.md | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | # The default keymap for vaneela Ex | ||
| 2 | |||
diff --git a/keyboards/delikeeb/vaneelaex/keymaps/via/keymap.c b/keyboards/delikeeb/vaneelaex/keymaps/via/keymap.c new file mode 100644 index 000000000..e23cf96a2 --- /dev/null +++ b/keyboards/delikeeb/vaneelaex/keymaps/via/keymap.c | |||
| @@ -0,0 +1,103 @@ | |||
| 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 { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _FN | ||
| 24 | }; | ||
| 25 | // Defines the keycodes used by our macros in process_record_user | ||
| 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 | * | = | 7 | 8 | 9 | Tab | Q | W | E | R | T | Y | U | I | O | P | Bksp | | ||
| 35 | * |------+------+------+------+------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 36 | * | - | 4 | 5 | 6 | Esc | A | S | D | F | G | H | J | K | L | ; |Enter | | ||
| 37 | * |------+------+------+------+------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 38 | * | + | 1 | 2 | 3 | Shift| Z | X | C | V | B | N | M | , | . | / | " | | ||
| 39 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 40 | * | / | * | . | 0 | Brite| Ctrl | Alt | GUI |Lower | Space|Space |Raise | Left | Down | Up |Right | | ||
| 41 | * '---------------------------------------------------------------------------------------------------------------' | ||
| 42 | * */ | ||
| 43 | [_BASE] = LAYOUT_ss_6x12( | ||
| 44 | KC_KP_EQUAL, KC_7, KC_8, KC_9, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSPC, | ||
| 45 | KC_KP_MINUS, KC_4, KC_5, KC_6, KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
| 46 | KC_KP_PLUS, KC_1, KC_2, KC_3, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_QUOT, | ||
| 47 | KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_DOT, KC_0, KC_LCTL, KC_LCTL, KC_LALT, KC_LGUI, FN_MO13, KC_SPC, KC_SPC, FN_MO23, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 48 | ), | ||
| 49 | |||
| 50 | /* Lower | ||
| 51 | * ,---------------------------------------------------------------------------------------------------------------. | ||
| 52 | * | = | 7 | 8 | 9 | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | Del | | ||
| 53 | * |------+------+------+------+------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 54 | * | - | 4 | 5 | 6 | Del | F1 | F2 | F3 | F4 | F5 | F6 | _ | + | { | } | | | | ||
| 55 | * |------+------+------+------+------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 56 | * | + | 1 | 2 | 3 | | F7 | F8 | F9 | F10 | F11 | F12 |ISO ~ |ISO | | | | | | ||
| 57 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 58 | * | / | * | . | 0 | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 59 | * `---------------------------------------------------------------------------------------------------------------' | ||
| 60 | */ | ||
| 61 | [_LOWER] = LAYOUT_ss_6x12( | ||
| 62 | KC_KP_EQUAL, KC_7, KC_8, KC_TILDE, KC_9, KC_EXLM, KC_AT, KC_HASH, KC_DLR, KC_PERC, KC_CIRC, KC_AMPR, KC_ASTR, KC_LPRN, KC_RPRN, KC_DEL, | ||
| 63 | KC_KP_MINUS, KC_4, KC_5, KC_DEL, KC_6, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_UNDS, KC_PLUS, KC_LCBR, KC_RCBR, KC_PIPE, | ||
| 64 | KC_KP_PLUS, KC_1, KC_2, _______, KC_3, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12,S(KC_NUHS),S(KC_NUBS),KC_HOME, KC_END, _______, | ||
| 65 | KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_DOT, _______, KC_0, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 66 | ), | ||
| 67 | |||
| 68 | /* Raise | ||
| 69 | * ,---------------------------------------------------------------------------------------------------------------. | ||
| 70 | * | = | 7 | 8 | 9 | ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | Del | | ||
| 71 | * |------+------+------+------+------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 72 | * | - | 4 | 5 | 6 | Del | F1 | F2 | F3 | F4 | F5 | F6 | - | = | [ | ] | \ | | ||
| 73 | * |------+------+------+------+------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 74 | * | + | 1 | 2 | 3 | | F7 | F8 | F9 | F10 | F11 | F12 |ISO # |ISO / | PGUP| PGDN| | | ||
| 75 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 76 | * | / | * | . | 0 | | | | | | | | Next | Vol- | Vol+ | Play | | ||
| 77 | * `---------------------------------------------------------------------------------------------------------------' | ||
| 78 | */ | ||
| 79 | [_RAISE] = LAYOUT_ss_6x12( | ||
| 80 | KC_KP_EQUAL, KC_7, KC_8, KC_9, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_DEL, | ||
| 81 | KC_KP_MINUS, KC_4, KC_5, KC_6, KC_DEL, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, KC_MINS, KC_EQL, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 82 | KC_KP_PLUS, KC_1, KC_2, KC_3, _______, KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_NUHS, KC_NUBS, KC_PGUP, KC_PGDN, _______, | ||
| 83 | KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_DOT, KC_0, _______, _______, _______, _______, _______, _______, _______, _______, KC_MNXT, KC_VOLD, KC_VOLU, KC_MPLY | ||
| 84 | ), | ||
| 85 | |||
| 86 | /* FN (Lower + Raise) | ||
| 87 | * ,---------------------------------------------------------------------------------------------------------------. | ||
| 88 | * | = | 7 | 8 | 9 | Reset| | Debug| | | | | | | | | Del | | ||
| 89 | * |------+------+------+------+------+------+------+------+------+-------------+------+------+------+------+------| | ||
| 90 | * | - | 4 | 5 | 6 | | | |Aud on|AudOff|AGnorm|AGswap|Qwerty|Colemk|Dvorak| | | | ||
| 91 | * |------+------+------+------+------+------+------+------+------+------|------+------+------+------+------+------| | ||
| 92 | * | + | 1 | 2 | 3 | |Voice-|Voice+|Mus on|MusOff|MidiOn|MidOff| | | | | | | ||
| 93 | * |------+------+------+------+------+------+------+------+------+------+------+------+------+------+------+------| | ||
| 94 | * | / | * | . | 0 | | | | | | | | | | | | | ||
| 95 | * `---------------------------------------------------------------------------------------------------------------' | ||
| 96 | */ | ||
| 97 | [_FN] = LAYOUT_ss_6x12( | ||
| 98 | KC_KP_EQUAL, KC_7, KC_8, KC_9, RESET , RGB_TOG, RGB_MOD, RGB_HUI, RGB_VAI, RGB_VAD, RGB_SAI, RGB_SAD, _______, _______, _______, KC_DEL, | ||
| 99 | KC_KP_MINUS, KC_4, KC_5, KC_6, _______, _______, _______, _______, _______, AG_NORM, AG_SWAP, _______, _______, _______, _______, _______, | ||
| 100 | KC_KP_PLUS, KC_1, KC_2, KC_3, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 101 | KC_KP_SLASH, KC_KP_ASTERISK, KC_KP_DOT, KC_0, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 102 | ) | ||
| 103 | }; | ||
diff --git a/keyboards/delikeeb/vaneelaex/keymaps/via/rules.mk b/keyboards/delikeeb/vaneelaex/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/delikeeb/vaneelaex/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/delikeeb/vaneelaex/readme.md b/keyboards/delikeeb/vaneelaex/readme.md new file mode 100644 index 000000000..9bd39b510 --- /dev/null +++ b/keyboards/delikeeb/vaneelaex/readme.md | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | # Vaneela Ex | ||
| 2 | |||
| 3 |  | ||
| 4 | |||
| 5 | Vaneela Ex is a custom keyboard made by a hobbist. It has a semi-staggered layout with an optional 4x4 keys on the left or right. | ||
| 6 | Vaneela Ex supports Pro Micro and its compatible variants, such as elite-C. | ||
| 7 | |||
| 8 | * Keyboard Maintainer: [noclew](https://github.com/noclew) | ||
| 9 | * Hardware Supported: Vaneela Ex PCB | ||
| 10 | * Hardware Availability: Not commercially available, but the board fabricaion file will be uploaded in the near future. | ||
| 11 | |||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make delikeeb/vaneelaex:default | ||
| 15 | |||
| 16 | Flashing example for this keyboard: | ||
| 17 | |||
| 18 | make delikeeb/vaneelaex:default:flash | ||
| 19 | |||
| 20 | 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/vaneelaex/rules.mk b/keyboards/delikeeb/vaneelaex/rules.mk new file mode 100644 index 000000000..fd76a5247 --- /dev/null +++ b/keyboards/delikeeb/vaneelaex/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 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 = lite # Virtual DIP switch configuration | ||
| 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_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 | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
diff --git a/keyboards/delikeeb/vaneelaex/vaneelaex.c b/keyboards/delikeeb/vaneelaex/vaneelaex.c new file mode 100644 index 000000000..e82cd5487 --- /dev/null +++ b/keyboards/delikeeb/vaneelaex/vaneelaex.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 "vaneelaex.h" | ||
| 18 | |||
diff --git a/keyboards/delikeeb/vaneelaex/vaneelaex.h b/keyboards/delikeeb/vaneelaex/vaneelaex.h new file mode 100644 index 000000000..9b2d74ece --- /dev/null +++ b/keyboards/delikeeb/vaneelaex/vaneelaex.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_ss_6x12( \ | ||
| 30 | k62, k63, k64, k65, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12, \ | ||
| 31 | k58, k59, k60, k61, k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24, \ | ||
| 32 | k54, k55, k56, k57, k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36, \ | ||
| 33 | k50, k51, k52, k53, k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48 \ | ||
| 34 | ) \ | ||
| 35 | { \ | ||
| 36 | { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, k11, k12 }, \ | ||
| 37 | { k13, k14, k15, k16, k17, k18, k19, k20, k21, k22, k23, k24 }, \ | ||
| 38 | { k25, k26, k27, k28, k29, k30, k31, k32, k33, k34, k35, k36 }, \ | ||
| 39 | { k37, k38, k39, k40, k41, k42, k43, k44, k45, k46, k47, k48 }, \ | ||
| 40 | { k50, k51, k52, k53, k54, k55, k56, k57, k58, k59, k60, k61 }, \ | ||
| 41 | { k62, k63, k64, k65, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO } \ | ||
| 42 | } | ||
diff --git a/keyboards/delikeeb/waaffle/config.h b/keyboards/delikeeb/waaffle/config.h new file mode 100644 index 000000000..1b02e32c6 --- /dev/null +++ b/keyboards/delikeeb/waaffle/config.h | |||
| @@ -0,0 +1,24 @@ | |||
| 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 | #define VENDOR_ID 0x9906 | ||
| 23 | #define PRODUCT_ID 0x0012 | ||
| 24 | #define MANUFACTURER dELIKEEb | ||
diff --git a/keyboards/delikeeb/waaffle/keymaps/default/keymap.c b/keyboards/delikeeb/waaffle/keymaps/default/keymap.c new file mode 100644 index 000000000..5d572ec89 --- /dev/null +++ b/keyboards/delikeeb/waaffle/keymaps/default/keymap.c | |||
| @@ -0,0 +1,148 @@ | |||
| 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 { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _ADJUST | ||
| 24 | }; | ||
| 25 | |||
| 26 | // Defines the keycodes used by our macros in process_record_user | ||
| 27 | enum custom_keycodes { | ||
| 28 | BASE = SAFE_RANGE, | ||
| 29 | LOWER, | ||
| 30 | RAISE, | ||
| 31 | }; | ||
| 32 | |||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 34 | /* BASE | ||
| 35 | * ------------------------------------------------------------------------------------------------------------------ | ||
| 36 | * | * | / | = | Del || ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | BSpc | | ||
| 37 | * ------------------------------------------------------------------------------------------------------------------ | ||
| 38 | * | + | 7 | 8 | 9 || Tab | Q | W | E | R | T | Y | U | I | O | P | \ | | ||
| 39 | *------------------------------------------------------------------------------------------------------------------- | ||
| 40 | * | + | 4 | 5 | 6 || Esc | A | S | D | F | G | H | J | K | L | ; | Enter| | ||
| 41 | *------------------------------------------------------------------------------------------------------------------ | ||
| 42 | * | Enter| 1 | 2 | 3 || Shift| Z | X | C | V | B | N | M | , | . | / | Shift| | ||
| 43 | *------------------------------------------------------------------------------------------------------------------- | ||
| 44 | * | Enter| . | 0 | 0 || Ctrl | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up | Right| | ||
| 45 | *------------------------------------------------------------------------------------------------------------------- | ||
| 46 | */ | ||
| 47 | [_BASE] = LAYOUT_ortho_5x16( | ||
| 48 | KC_PAST, KC_PSLS, KC_EQL, KC_DEL, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 49 | KC_PPLS, KC_7, KC_8, KC_9, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 50 | KC_PPLS, KC_4, KC_5, KC_6, KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
| 51 | KC_ENT, KC_1, KC_2, KC_3, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_QUOT), | ||
| 52 | KC_ENT, KC_PDOT, KC_0, KC_0, KC_LCTL, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 53 | ), | ||
| 54 | |||
| 55 | [_LOWER] = LAYOUT_ortho_5x16( | ||
| 56 | _______, _______, _______, _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , | ||
| 57 | _______, _______, _______, _______, KC_BSPC, KC_SLSH, KC_7 , KC_8 , KC_9 , KC_PPLS, KC_CIRC, KC_LBRC, KC_RBRC, KC_AT , KC_EXLM, KC_BSLS, | ||
| 58 | _______, _______, _______, _______, KC_EQL , KC_0 , KC_4 , KC_5 , KC_6 , KC_MINS, KC_PIPE, KC_LPRN, KC_RPRN, KC_HASH, KC_DQUO, _______, | ||
| 59 | _______, _______, _______, _______, KC_ENT , KC_PAST, KC_1 , KC_2 , KC_3 , KC_UNDS, KC_DLR , KC_LCBR, KC_RCBR, KC_AMPR, KC_PERC, _______, | ||
| 60 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 61 | ), | ||
| 62 | |||
| 63 | [_RAISE] = LAYOUT_ortho_5x16( | ||
| 64 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 65 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_BSPC, KC_DEL , KC_END , _______, | ||
| 66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT, _______, | ||
| 67 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, _______, _______, KC_PGDN, _______, | ||
| 68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 69 | ), | ||
| 70 | |||
| 71 | [_ADJUST] = LAYOUT_ortho_5x16( | ||
| 72 | _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, DEBUG , | ||
| 73 | _______, _______, _______, _______, _______, RGB_TOG, RGB_RMOD, RGB_MOD, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, | ||
| 74 | _______, _______, _______, _______, KC_CAPS, _______, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, _______, _______, _______, _______, _______, _______, | ||
| 75 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 76 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 77 | ) | ||
| 78 | }; | ||
| 79 | |||
| 80 | bool process_record_user(uint16_t keycode, keyrecord_t *record) { | ||
| 81 | switch (keycode) { | ||
| 82 | |||
| 83 | case LOWER: | ||
| 84 | if (record->event.pressed) { | ||
| 85 | layer_on(_LOWER); | ||
| 86 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 87 | } else { | ||
| 88 | layer_off(_LOWER); | ||
| 89 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 90 | } | ||
| 91 | return false; | ||
| 92 | |||
| 93 | case RAISE: | ||
| 94 | if (record->event.pressed) { | ||
| 95 | layer_on(_RAISE); | ||
| 96 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 97 | } else { | ||
| 98 | layer_off(_RAISE); | ||
| 99 | update_tri_layer(_LOWER, _RAISE, _ADJUST); | ||
| 100 | } | ||
| 101 | return false; | ||
| 102 | |||
| 103 | } | ||
| 104 | return true; | ||
| 105 | } | ||
| 106 | |||
| 107 | void encoder_update_user(uint8_t index, bool clockwise) { | ||
| 108 | /* With an if statement we can check which encoder was turned. */ | ||
| 109 | if (index == 0) { /* First encoder */ | ||
| 110 | /* And with another if statement we can check the direction. */ | ||
| 111 | if (clockwise) { | ||
| 112 | if (IS_LAYER_ON(_LOWER)){ | ||
| 113 | tap_code(KC_RIGHT); | ||
| 114 | } else if (IS_LAYER_ON(_RAISE)){ | ||
| 115 | tap_code(KC_DOWN); | ||
| 116 | } else { | ||
| 117 | tap_code(KC_VOLU); | ||
| 118 | } | ||
| 119 | } else { | ||
| 120 | if (IS_LAYER_ON(_LOWER)){ | ||
| 121 | tap_code(KC_LEFT); | ||
| 122 | } else if (IS_LAYER_ON(_RAISE)){ | ||
| 123 | tap_code(KC_UP); | ||
| 124 | } else { | ||
| 125 | tap_code(KC_VOLD); | ||
| 126 | } | ||
| 127 | } | ||
| 128 | |||
| 129 | } else if (index == 1) { /* Second encoder. Only supported by Elite-C */ | ||
| 130 | if (clockwise) { | ||
| 131 | if (IS_LAYER_ON(_LOWER)){ | ||
| 132 | tap_code(KC_RIGHT); | ||
| 133 | } else if (IS_LAYER_ON(_RAISE)){ | ||
| 134 | tap_code(KC_DOWN); | ||
| 135 | } else { | ||
| 136 | tap_code(KC_VOLU); | ||
| 137 | } | ||
| 138 | } else { | ||
| 139 | if (IS_LAYER_ON(_LOWER)){ | ||
| 140 | tap_code(KC_LEFT); | ||
| 141 | } else if (IS_LAYER_ON(_RAISE)){ | ||
| 142 | tap_code(KC_UP); | ||
| 143 | } else { | ||
| 144 | tap_code(KC_VOLD); | ||
| 145 | } | ||
| 146 | } | ||
| 147 | } | ||
| 148 | } | ||
diff --git a/keyboards/delikeeb/waaffle/keymaps/default/readme.md b/keyboards/delikeeb/waaffle/keymaps/default/readme.md new file mode 100644 index 000000000..4cf5c435b --- /dev/null +++ b/keyboards/delikeeb/waaffle/keymaps/default/readme.md | |||
| @@ -0,0 +1 @@ | |||
| # The default keymap for waaffle | |||
diff --git a/keyboards/delikeeb/waaffle/keymaps/via/keymap.c b/keyboards/delikeeb/waaffle/keymaps/via/keymap.c new file mode 100644 index 000000000..73d29ec14 --- /dev/null +++ b/keyboards/delikeeb/waaffle/keymaps/via/keymap.c | |||
| @@ -0,0 +1,78 @@ | |||
| 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 { | ||
| 20 | _BASE, | ||
| 21 | _LOWER, | ||
| 22 | _RAISE, | ||
| 23 | _ADJUST | ||
| 24 | }; | ||
| 25 | |||
| 26 | // Defines the keycodes used by our macros in process_record_user | ||
| 27 | enum custom_keycodes { | ||
| 28 | BASE = SAFE_RANGE, | ||
| 29 | LOWER, | ||
| 30 | RAISE, | ||
| 31 | }; | ||
| 32 | |||
| 33 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 34 | /* BASE | ||
| 35 | * ------------------------------------------------------------------------------------------------------------------ | ||
| 36 | * | * | / | = | Del || ` | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | BSpc | | ||
| 37 | * ------------------------------------------------------------------------------------------------------------------ | ||
| 38 | * | + | 7 | 8 | 9 || Tab | Q | W | E | R | T | Y | U | I | O | P | \ | | ||
| 39 | *------------------------------------------------------------------------------------------------------------------- | ||
| 40 | * | + | 4 | 5 | 6 || Esc | A | S | D | F | G | H | J | K | L | ; | Enter| | ||
| 41 | *------------------------------------------------------------------------------------------------------------------ | ||
| 42 | * | Enter| 1 | 2 | 3 || Shift| Z | X | C | V | B | N | M | , | . | / | Shift| | ||
| 43 | *------------------------------------------------------------------------------------------------------------------- | ||
| 44 | * | Enter| . | 0 | 0 || Ctrl | Ctrl | Alt | GUI |Lower | Space |Raise | Left | Down | Up | Right| | ||
| 45 | *------------------------------------------------------------------------------------------------------------------- | ||
| 46 | */ | ||
| 47 | [_BASE] = LAYOUT_ortho_5x16( | ||
| 48 | KC_PAST, KC_PSLS, KC_EQL, KC_DEL, KC_GRV, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_BSPC, | ||
| 49 | KC_PPLS, KC_7, KC_8, KC_9, KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_BSLS, | ||
| 50 | KC_PPLS, KC_4, KC_5, KC_6, KC_ESC, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_ENT, | ||
| 51 | KC_ENT, KC_1, KC_2, KC_3, KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, RSFT_T(KC_QUOT), | ||
| 52 | KC_ENT, KC_PDOT, KC_0, KC_0, KC_LCTL, KC_LCTL, KC_LALT, KC_LGUI, LOWER, KC_SPC, KC_SPC, RAISE, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT | ||
| 53 | ), | ||
| 54 | |||
| 55 | [_LOWER] = LAYOUT_ortho_5x16( | ||
| 56 | _______, _______, _______, _______, KC_F1 , KC_F2 , KC_F3 , KC_F4 , KC_F5 , KC_F6 , KC_F7 , KC_F8 , KC_F9 , KC_F10 , KC_F11 , KC_F12 , | ||
| 57 | _______, _______, _______, _______, KC_BSPC, KC_SLSH, KC_7 , KC_8 , KC_9 , KC_PPLS, KC_CIRC, KC_LBRC, KC_RBRC, KC_AT , KC_EXLM, KC_BSLS, | ||
| 58 | _______, _______, _______, _______, KC_EQL , KC_0 , KC_4 , KC_5 , KC_6 , KC_MINS, KC_PIPE, KC_LPRN, KC_RPRN, KC_HASH, KC_DQUO, _______, | ||
| 59 | _______, _______, _______, _______, KC_ENT , KC_PAST, KC_1 , KC_2 , KC_3 , KC_UNDS, KC_DLR , KC_LCBR, KC_RCBR, KC_AMPR, KC_PERC, _______, | ||
| 60 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 61 | ), | ||
| 62 | |||
| 63 | [_RAISE] = LAYOUT_ortho_5x16( | ||
| 64 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 65 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_HOME, KC_BSPC, KC_DEL , KC_END , _______, | ||
| 66 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_LEFT, KC_DOWN, KC_UP, KC_RGHT, KC_QUOT, _______, | ||
| 67 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC_PGUP, _______, _______, KC_PGDN, _______, | ||
| 68 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 69 | ), | ||
| 70 | |||
| 71 | [_ADJUST] = LAYOUT_ortho_5x16( | ||
| 72 | _______, _______, _______, _______, RESET, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, DEBUG , | ||
| 73 | _______, _______, _______, _______, _______, RGB_TOG, RGB_RMOD, RGB_MOD, RGB_VAD, RGB_VAI, _______, _______, _______, _______, _______, _______, | ||
| 74 | _______, _______, _______, _______, KC_CAPS, _______, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, _______, _______, _______, _______, _______, _______, | ||
| 75 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, | ||
| 76 | _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______ | ||
| 77 | ) | ||
| 78 | }; | ||
diff --git a/keyboards/delikeeb/waaffle/keymaps/via/rules.mk b/keyboards/delikeeb/waaffle/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/delikeeb/waaffle/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/delikeeb/waaffle/readme.md b/keyboards/delikeeb/waaffle/readme.md new file mode 100644 index 000000000..0e8d9c437 --- /dev/null +++ b/keyboards/delikeeb/waaffle/readme.md | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # Waaffle | ||
| 2 | |||
| 3 |  | ||
| 4 |  | ||
| 5 | |||
| 6 | Waaffle is an ortholinear keyboard that supports 60 key and 80 key layouts. The base PCB has a 60 key ortholinear layout, and it can be expanded to an 80 key ortholinear keyboard simply by adding an extension PCB. Waaffle features RGB underglow and on-board pinouts including a power switch and battery connection for a Bluetooth setup. Designed by dELIKEEb | ||
| 7 | |||
| 8 | * Keyboard Maintainer: [noclew](https://github.com/noclew) | ||
| 9 | * Hardware Supported: Waaffle PCB | ||
| 10 | * Hardware Availability: Not commercially available. GB on Reddit and Geekhack time to times. | ||
| 11 | |||
| 12 | Make example for this keyboard (after setting up your build environment): | ||
| 13 | |||
| 14 | make delikeeb/waaffle/rev3/pro_micro:default # for Pro Micro builds | ||
| 15 | make delikeeb/waaffle/rev3/elite_c:default # for Elite-C builds | ||
| 16 | |||
| 17 | Flashing example for this keyboard: | ||
| 18 | |||
| 19 | make delikeeb/waaffle/rev3/pro_micro:default:flash # for Pro Micro builds | ||
| 20 | make delikeeb/waaffle/rev3/elite_c:default:flash # for Elite-C builds | ||
| 21 | |||
| 22 | 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/waaffle/rev3/config.h b/keyboards/delikeeb/waaffle/rev3/config.h new file mode 100644 index 000000000..0c4327623 --- /dev/null +++ b/keyboards/delikeeb/waaffle/rev3/config.h | |||
| @@ -0,0 +1,137 @@ | |||
| 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 | /* USB Device descriptor parameter */ | ||
| 21 | #define DEVICE_VER 0x0003 | ||
| 22 | #define PRODUCT Waaffle_rev3 | ||
| 23 | |||
| 24 | /* key matrix size */ | ||
| 25 | #define MATRIX_ROWS 8 | ||
| 26 | #define MATRIX_COLS 10 | ||
| 27 | |||
| 28 | /* | ||
| 29 | * Keyboard Matrix Assignments | ||
| 30 | * | ||
| 31 | * Change this to how you wired your keyboard | ||
| 32 | * COLS: AVR pins used for columns, left to right | ||
| 33 | * ROWS: AVR pins used for rows, top to bottom | ||
| 34 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 35 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 36 | * | ||
| 37 | */ | ||
| 38 | #define MATRIX_ROW_PINS { F4, B6, B2, B3, B1, F5, F6, F7 } | ||
| 39 | #define MATRIX_COL_PINS { D3, D2, B5, B4, E6, D7, C6, D4, D0, D1 } | ||
| 40 | #define UNUSED_PINS | ||
| 41 | |||
| 42 | /* COL2ROW, ROW2COL */ | ||
| 43 | #define DIODE_DIRECTION COL2ROW | ||
| 44 | |||
| 45 | //#define BACKLIGHT_PIN B7 | ||
| 46 | //#define BACKLIGHT_LEVELS 3 | ||
| 47 | //#define BACKLIGHT_BREATHING | ||
| 48 | |||
| 49 | /*rotary encoder setting*/ | ||
| 50 | #define ENCODERS_PAD_A { B7, F1 } | ||
| 51 | #define ENCODERS_PAD_B { D5, F0 } | ||
| 52 | |||
| 53 | #define RGB_DI_PIN C7 | ||
| 54 | #ifdef RGB_DI_PIN | ||
| 55 | # define RGBLED_NUM 10 | ||
| 56 | # define RGBLIGHT_HUE_STEP 8 | ||
| 57 | # define RGBLIGHT_SAT_STEP 8 | ||
| 58 | # define RGBLIGHT_VAL_STEP 8 | ||
| 59 | # define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */ | ||
| 60 | # define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */ | ||
| 61 | /*== all animations enable ==*/ | ||
| 62 | // # define RGBLIGHT_ANIMATIONS | ||
| 63 | /*== or choose animations ==*/ | ||
| 64 | // # define RGBLIGHT_EFFECT_BREATHING | ||
| 65 | # define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 66 | # define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 67 | // # define RGBLIGHT_EFFECT_SNAKE | ||
| 68 | // # define RGBLIGHT_EFFECT_KNIGHT | ||
| 69 | // # define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 70 | # define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 71 | // # define RGBLIGHT_EFFECT_RGB_TEST | ||
| 72 | // # define RGBLIGHT_EFFECT_ALTERNATING | ||
| 73 | /*== customize breathing effect ==*/ | ||
| 74 | /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/ | ||
| 75 | # define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64 | ||
| 76 | /*==== use exp() and sin() ====*/ | ||
| 77 | # define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7 | ||
| 78 | # define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255 | ||
| 79 | #endif | ||
| 80 | |||
| 81 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 82 | #define DEBOUNCE 5 | ||
| 83 | |||
| 84 | /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */ | ||
| 85 | #define LOCKING_SUPPORT_ENABLE | ||
| 86 | /* Locking resynchronize hack */ | ||
| 87 | #define LOCKING_RESYNC_ENABLE | ||
| 88 | |||
| 89 | /* If defined, GRAVE_ESC will always act as ESC when CTRL is held. | ||
| 90 | * This is useful for the Windows task manager shortcut (ctrl+shift+esc). | ||
| 91 | */ | ||
| 92 | #define GRAVE_ESC_CTRL_OVERRIDE | ||
| 93 | |||
| 94 | /* | ||
| 95 | * Force NKRO | ||
| 96 | * | ||
| 97 | * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved | ||
| 98 | * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the | ||
| 99 | * makefile for this to work.) | ||
| 100 | * | ||
| 101 | * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N) | ||
| 102 | * until the next keyboard reset. | ||
| 103 | * | ||
| 104 | * NKRO may prevent your keystrokes from being detected in the BIOS, but it is | ||
| 105 | * fully operational during normal computer usage. | ||
| 106 | * | ||
| 107 | * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N) | ||
| 108 | * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by | ||
| 109 | * bootmagic, NKRO mode will always be enabled until it is toggled again during a | ||
| 110 | * power-up. | ||
| 111 | * | ||
| 112 | */ | ||
| 113 | //#define FORCE_NKRO | ||
| 114 | |||
| 115 | /* | ||
| 116 | * Feature disable options | ||
| 117 | * These options are also useful to firmware size reduction. | ||
| 118 | */ | ||
| 119 | |||
| 120 | /* disable debug print */ | ||
| 121 | //#define NO_DEBUG | ||
| 122 | |||
| 123 | /* disable print */ | ||
| 124 | //#define NO_PRINT | ||
| 125 | |||
| 126 | /* disable action features */ | ||
| 127 | //#define NO_ACTION_LAYER | ||
| 128 | //#define NO_ACTION_TAPPING | ||
| 129 | //#define NO_ACTION_ONESHOT | ||
| 130 | |||
| 131 | /* disable these deprecated features by default */ | ||
| 132 | #define NO_ACTION_MACRO | ||
| 133 | #define NO_ACTION_FUNCTION | ||
| 134 | |||
| 135 | /* Bootmagic Lite key configuration */ | ||
| 136 | #define BOOTMAGIC_LITE_ROW 6 | ||
| 137 | #define BOOTMAGIC_LITE_COLUMN 0 | ||
diff --git a/keyboards/delikeeb/waaffle/rev3/elite_c/rules.mk b/keyboards/delikeeb/waaffle/rev3/elite_c/rules.mk new file mode 100644 index 000000000..8b5026cb0 --- /dev/null +++ b/keyboards/delikeeb/waaffle/rev3/elite_c/rules.mk | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # Bootloader selection | ||
| 2 | BOOTLOADER = atmel-dfu | ||
| 3 | |||
| 4 | # supported on Elite-C controllers | ||
| 5 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 6 | ENCODER_ENABLE = yes # Enable Rotary Encoder | ||
diff --git a/keyboards/delikeeb/waaffle/rev3/info.json b/keyboards/delikeeb/waaffle/rev3/info.json new file mode 100644 index 000000000..200dce5a2 --- /dev/null +++ b/keyboards/delikeeb/waaffle/rev3/info.json | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "waaffle", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "noclew", | ||
| 5 | "width": 16.25, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_ortho_5x16": { | ||
| 9 | "layout": | ||
| 10 | [ | ||
| 11 | {"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4.25, "y":0}, {"x":5.25, "y":0}, {"x":6.25, "y":0}, {"x":7.25, "y":0}, {"x":8.25, "y":0}, {"x":9.25, "y":0}, {"x":10.25, "y":0}, {"x":11.25, "y":0}, {"x":12.25, "y":0}, {"x":13.25, "y":0}, {"x":14.25, "y":0}, {"x":15.25, "y":0}, | ||
| 12 | {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4.25, "y":1}, {"x":5.25, "y":1}, {"x":6.25, "y":1}, {"x":7.25, "y":1}, {"x":8.25, "y":1}, {"x":9.25, "y":1}, {"x":10.25, "y":1}, {"x":11.25, "y":1}, {"x":12.25, "y":1}, {"x":13.25, "y":1}, {"x":14.25, "y":1}, {"x":15.25, "y":1}, | ||
| 13 | {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4.25, "y":2}, {"x":5.25, "y":2}, {"x":6.25, "y":2}, {"x":7.25, "y":2}, {"x":8.25, "y":2}, {"x":9.25, "y":2}, {"x":10.25, "y":2}, {"x":11.25, "y":2}, {"x":12.25, "y":2}, {"x":13.25, "y":2}, {"x":14.25, "y":2}, {"x":15.25, "y":2}, | ||
| 14 | {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4.25, "y":3}, {"x":5.25, "y":3}, {"x":6.25, "y":3}, {"x":7.25, "y":3}, {"x":8.25, "y":3}, {"x":9.25, "y":3}, {"x":10.25, "y":3}, {"x":11.25, "y":3}, {"x":12.25, "y":3}, {"x":13.25, "y":3}, {"x":14.25, "y":3}, {"x":15.25, "y":3}, | ||
| 15 | {"x":0, "y":4}, {"x":1, "y":4}, {"x":2, "y":4}, {"x":3, "y":4}, {"x":4.25, "y":4}, {"x":5.25, "y":4}, {"x":6.25, "y":4}, {"x":7.25, "y":4}, {"x":8.25, "y":4}, {"x":9.25, "y":4}, {"x":10.25, "y":4}, {"x":11.25, "y":4}, {"x":12.25, "y":4}, {"x":13.25, "y":4}, {"x":14.25, "y":4}, {"x":15.25, "y":4} | ||
| 16 | ] | ||
| 17 | } | ||
| 18 | } | ||
| 19 | } | ||
diff --git a/keyboards/delikeeb/waaffle/rev3/pro_micro/rules.mk b/keyboards/delikeeb/waaffle/rev3/pro_micro/rules.mk new file mode 100644 index 000000000..bdc4842c5 --- /dev/null +++ b/keyboards/delikeeb/waaffle/rev3/pro_micro/rules.mk | |||
| @@ -0,0 +1,6 @@ | |||
| 1 | # Bootloader selection | ||
| 2 | BOOTLOADER = caterina | ||
| 3 | |||
| 4 | # not supported on Pro Micro controllers | ||
| 5 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 6 | ENCODER_ENABLE = no # Enable Rotary Encoder | ||
diff --git a/keyboards/delikeeb/waaffle/rev3/rev3.c b/keyboards/delikeeb/waaffle/rev3/rev3.c new file mode 100644 index 000000000..bf7f5a109 --- /dev/null +++ b/keyboards/delikeeb/waaffle/rev3/rev3.c | |||
| @@ -0,0 +1,17 @@ | |||
| 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 "rev3.h" | ||
diff --git a/keyboards/delikeeb/waaffle/rev3/rev3.h b/keyboards/delikeeb/waaffle/rev3/rev3.h new file mode 100644 index 000000000..8ca245d84 --- /dev/null +++ b/keyboards/delikeeb/waaffle/rev3/rev3.h | |||
| @@ -0,0 +1,44 @@ | |||
| 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_5x16( \ | ||
| 30 | k76, k66, k56, k71, k61, k51, k01, k02, k03, k04, k05, k06, k07, k08, k09, k10, \ | ||
| 31 | k77, k67, k57, k72, k62, k52, k11, k12, k13, k14, k15, k16, k17, k18, k19, k20, \ | ||
| 32 | k78, k68, k58, k73, k63, k53, k21, k22, k23, k24, k25, k26, k27, k28, k29, k30, \ | ||
| 33 | k79, k69, k59, k74, k64, k54, k31, k32, k33, k34, k35, k36, k37, k38, k39, k40, \ | ||
| 34 | k80, k70, k60, k75, k65, k55, k41, k42, k43, k44, k45, k46, k47, k48, k49, k50 \ | ||
| 35 | ) { \ | ||
| 36 | { k01, k02, k03, k04, k05, k06, k07, k08, k09, k10 }, \ | ||
| 37 | { k11, k12, k13, k14, k15, k16, k17, k18, k19, k20 }, \ | ||
| 38 | { k21, k22, k23, k24, k25, k26, k27, k28, k29, k30 }, \ | ||
| 39 | { k31, k32, k33, k34, k35, k36, k37, k38, k39, k40 }, \ | ||
| 40 | { k41, k42, k43, k44, k45, k46, k47, k48, k49, k50 }, \ | ||
| 41 | { k51, k52, k53, k54, k55, k56, k57, k58, k59, k60 }, \ | ||
| 42 | { k61, k62, k63, k64, k65, k66, k67, k68, k69, k70 }, \ | ||
| 43 | { k71, k72, k73, k74, k75, k76, k77, k78, k79, k80 } \ | ||
| 44 | } | ||
diff --git a/keyboards/delikeeb/waaffle/rev3/rules.mk b/keyboards/delikeeb/waaffle/rev3/rules.mk new file mode 100644 index 000000000..775a28193 --- /dev/null +++ b/keyboards/delikeeb/waaffle/rev3/rules.mk | |||
| @@ -0,0 +1,24 @@ | |||
| 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 = lite # Virtual DIP switch configuration | ||
| 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 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 16 | SLEEP_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 | ||
| 18 | NKRO_ENABLE = no # USB Nkey Rollover | ||
| 19 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 20 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 21 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 22 | AUDIO_ENABLE = no # Audio output | ||
| 23 | |||
| 24 | DEFAULT_FOLDER = delikeeb/waaffle/rev3/pro_micro | ||
