diff options
Diffstat (limited to 'keyboards/delikeeb/waaffle')
| -rw-r--r-- | keyboards/delikeeb/waaffle/config.h | 24 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/keymaps/default/keymap.c | 148 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/keymaps/default/readme.md | 1 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/keymaps/via/keymap.c | 78 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/keymaps/via/rules.mk | 1 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/readme.md | 22 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/rev3/config.h | 137 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/rev3/elite_c/rules.mk | 6 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/rev3/info.json | 19 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/rev3/pro_micro/rules.mk | 6 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/rev3/rev3.c | 17 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/rev3/rev3.h | 44 | ||||
| -rw-r--r-- | keyboards/delikeeb/waaffle/rev3/rules.mk | 24 |
13 files changed, 527 insertions, 0 deletions
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 | ||
