diff options
| author | 4pplet <stefan.ess@gmail.com> | 2020-12-01 12:23:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-01 22:23:58 +1100 |
| commit | c7dab4bb25a90b3a7375504e0c132a730d80cd47 (patch) | |
| tree | c7210c37cc90c4b18828103834f3cc59655bddc4 | |
| parent | cc08e3082eeadcb75719ec5b5128e94a910a0fcb (diff) | |
| download | qmk_firmware-c7dab4bb25a90b3a7375504e0c132a730d80cd47.tar.gz qmk_firmware-c7dab4bb25a90b3a7375504e0c132a730d80cd47.zip | |
Adding bootleg and waffling60 rev b (#10846)
Co-authored-by: Ryan <fauxpark@gmail.com>
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Co-authored-by: Drashna Jaelre <drashna@live.com>
20 files changed, 592 insertions, 3 deletions
diff --git a/keyboards/4pplet/bootleg/info.json b/keyboards/4pplet/bootleg/info.json new file mode 100644 index 000000000..4abffda37 --- /dev/null +++ b/keyboards/4pplet/bootleg/info.json | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "bootleg Rev A", | ||
| 3 | "url": "https://github.com/4pplet/bootlegs", | ||
| 4 | "maintainer": "4pplet", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [ | ||
| 10 | { "label": "Esc", "x": 0, "y": 0 }, | ||
| 11 | { "label": "!", "x": 1, "y": 0 }, | ||
| 12 | { "label": "@", "x": 2, "y": 0 }, | ||
| 13 | { "label": "#", "x": 3, "y": 0 }, | ||
| 14 | { "label": "$", "x": 4, "y": 0 }, | ||
| 15 | { "label": "%", "x": 5, "y": 0 }, | ||
| 16 | { "label": "^", "x": 6, "y": 0 }, | ||
| 17 | { "label": "&", "x": 7, "y": 0 }, | ||
| 18 | { "label": "*", "x": 8, "y": 0 }, | ||
| 19 | { "label": "(", "x": 9, "y": 0 }, | ||
| 20 | { "label": ")", "x": 10, "y": 0 }, | ||
| 21 | { "label": "_", "x": 11, "y": 0 }, | ||
| 22 | { "label": "+", "x": 12, "y": 0 }, | ||
| 23 | { "label": "|", "x": 13, "y": 0 }, | ||
| 24 | { "label": "~", "x": 14, "y": 0 }, | ||
| 25 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
| 26 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
| 27 | { "label": "W", "x": 2.5, "y": 1 }, | ||
| 28 | { "label": "E", "x": 3.5, "y": 1 }, | ||
| 29 | { "label": "R", "x": 4.5, "y": 1 }, | ||
| 30 | { "label": "T", "x": 5.5, "y": 1 }, | ||
| 31 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
| 32 | { "label": "U", "x": 7.5, "y": 1 }, | ||
| 33 | { "label": "I", "x": 8.5, "y": 1 }, | ||
| 34 | { "label": "O", "x": 9.5, "y": 1 }, | ||
| 35 | { "label": "P", "x": 10.5, "y": 1 }, | ||
| 36 | { "label": "{", "x": 11.5, "y": 1 }, | ||
| 37 | { "label": "}", "x": 12.5, "y": 1 }, | ||
| 38 | { "label": "Backsp.", "x": 13.5, "y": 1, "w": 1.5 }, | ||
| 39 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
| 40 | { "label": "A", "x": 1.75, "y": 2 }, | ||
| 41 | { "label": "S", "x": 2.75, "y": 2 }, | ||
| 42 | { "label": "D", "x": 3.75, "y": 2 }, | ||
| 43 | { "label": "F", "x": 4.75, "y": 2 }, | ||
| 44 | { "label": "G", "x": 5.75, "y": 2 }, | ||
| 45 | { "label": "H", "x": 6.75, "y": 2 }, | ||
| 46 | { "label": "J", "x": 7.75, "y": 2 }, | ||
| 47 | { "label": "K", "x": 8.75, "y": 2 }, | ||
| 48 | { "label": "L", "x": 9.75, "y": 2 }, | ||
| 49 | { "label": ":", "x": 10.75, "y": 2 }, | ||
| 50 | { "label": "\"", "x": 11.75, "y": 2 }, | ||
| 51 | { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 }, | ||
| 52 | { "label": "Shift", "x": 0, "y": 3, "w": 1.25 }, | ||
| 53 | { "label": "|", "x": 1.25, "y": 3 }, | ||
| 54 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
| 55 | { "label": "X", "x": 3.25, "y": 3 }, | ||
| 56 | { "label": "C", "x": 4.25, "y": 3 }, | ||
| 57 | { "label": "V", "x": 5.25, "y": 3 }, | ||
| 58 | { "label": "B", "x": 6.25, "y": 3 }, | ||
| 59 | { "label": "N", "x": 7.25, "y": 3 }, | ||
| 60 | { "label": "M", "x": 8.25, "y": 3 }, | ||
| 61 | { "label": "<", "x": 9.25, "y": 3 }, | ||
| 62 | { "label": ">", "x": 10.25, "y": 3 }, | ||
| 63 | { "label": "?", "x": 11.25, "y": 3 }, | ||
| 64 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
| 65 | { "label": "Fn", "x": 14, "y": 3, "w": 1 }, | ||
| 66 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
| 67 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
| 68 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
| 69 | { "label": "Space1", "x": 3.75, "y": 4, "w": 2.25 }, | ||
| 70 | { "label": "Space2", "x": 6, "y": 4, "w": 1.25 }, | ||
| 71 | { "label": "Space3", "x": 7.25, "y": 4, "w": 2.75 }, | ||
| 72 | { "label": "Alt", "x": 10, "y": 4, "w": 1.25 }, | ||
| 73 | { "label": "Menu", "x": 11.25, "y": 4, "w": 1.25 }, | ||
| 74 | { "label": "Win", "x": 12.5, "y": 4, "w": 1.25 }, | ||
| 75 | { "label": "Ctrl", "x": 13.75, "y": 4, "w": 1.25 } | ||
| 76 | ] | ||
| 77 | } | ||
| 78 | } | ||
| 79 | } | ||
diff --git a/keyboards/4pplet/bootleg/keymaps/default/keymap.c b/keyboards/4pplet/bootleg/keymaps/default/keymap.c new file mode 100644 index 000000000..c9ae421af --- /dev/null +++ b/keyboards/4pplet/bootleg/keymaps/default/keymap.c | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | // main layer | ||
| 21 | [0] = LAYOUT_all( | ||
| 22 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_NO, KC_BSPC, | ||
| 23 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 24 | KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 25 | KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_NO, | ||
| 26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_APP, MO(1)), | ||
| 27 | // basic function layer | ||
| 28 | [1] = LAYOUT_all( | ||
| 29 | RESET, 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_TRNS, KC_TRNS, | ||
| 30 | KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 31 | KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) | ||
| 34 | }; | ||
diff --git a/keyboards/4pplet/bootleg/keymaps/via/keymap.c b/keyboards/4pplet/bootleg/keymaps/via/keymap.c new file mode 100644 index 000000000..b83266d8c --- /dev/null +++ b/keyboards/4pplet/bootleg/keymaps/via/keymap.c | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> | ||
| 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 | #include QMK_KEYBOARD_H | ||
| 18 | |||
| 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | ||
| 20 | // main layer | ||
| 21 | [0] = LAYOUT_all( | ||
| 22 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_NO, KC_BSPC, | ||
| 23 | KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, KC_Y, KC_U, KC_I, KC_O, KC_P, KC_LBRC, KC_RBRC, KC_BSLS, | ||
| 24 | KC_LCTRL, KC_A, KC_S, KC_D, KC_F, KC_G, KC_H, KC_J, KC_K, KC_L, KC_SCLN, KC_QUOT, KC_ENT, | ||
| 25 | KC_LSFT, KC_NO, KC_Z, KC_X, KC_C, KC_V, KC_B, KC_N, KC_M, KC_COMM, KC_DOT, KC_SLSH, KC_RSFT, KC_NO, | ||
| 26 | KC_LCTL, KC_LGUI, KC_LALT, KC_SPC, KC_SPC, KC_SPC, KC_RALT, KC_RGUI, KC_APP, MO(1)), | ||
| 27 | // basic function layer | ||
| 28 | [1] = LAYOUT_all( | ||
| 29 | RESET, 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_TRNS, KC_TRNS, | ||
| 30 | KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 31 | KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 32 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 33 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 34 | // extra layer for VIA | ||
| 35 | [2] = LAYOUT_all( | ||
| 36 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 37 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 38 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 39 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 40 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS), | ||
| 41 | // extra layer for VIA | ||
| 42 | [3] = LAYOUT_all( | ||
| 43 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 44 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | ||
| 47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) | ||
| 48 | }; | ||
diff --git a/keyboards/4pplet/bootleg/keymaps/via/rules.mk b/keyboards/4pplet/bootleg/keymaps/via/rules.mk new file mode 100644 index 000000000..1e5b99807 --- /dev/null +++ b/keyboards/4pplet/bootleg/keymaps/via/rules.mk | |||
| @@ -0,0 +1 @@ | |||
| VIA_ENABLE = yes | |||
diff --git a/keyboards/4pplet/bootleg/readme.md b/keyboards/4pplet/bootleg/readme.md new file mode 100644 index 000000000..3ced86e61 --- /dev/null +++ b/keyboards/4pplet/bootleg/readme.md | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # bootleg | ||
| 2 | |||
| 3 | A 60% PCB for non tray-mount keyboards | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [4pplet](https://github.com/4pplet) | ||
| 6 | * Hardware Supported: bootleg Rev A | ||
| 7 | |||
| 8 | Make example for this keyboard (after setting up your build environment): | ||
| 9 | |||
| 10 | make 4pplet/bootleg/rev_a:default | ||
| 11 | |||
| 12 | 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/4pplet/bootleg/rev_a/config.h b/keyboards/4pplet/bootleg/rev_a/config.h new file mode 100644 index 000000000..4d3122afd --- /dev/null +++ b/keyboards/4pplet/bootleg/rev_a/config.h | |||
| @@ -0,0 +1,42 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x4444 | ||
| 23 | #define PRODUCT_ID 0x0004 | ||
| 24 | #define DEVICE_VER 0x0001 | ||
| 25 | #define MANUFACTURER 4pplet | ||
| 26 | #define PRODUCT bootleg Rev A | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 5 | ||
| 30 | #define MATRIX_COLS 15 | ||
| 31 | // ROWS: Top to bottom, COLS: Left to right | ||
| 32 | #define MATRIX_ROW_PINS {D0,C2,C4,D4,D2} | ||
| 33 | #define MATRIX_COL_PINS {C5,C6,C7,B7,B6,B5,B4,B3,B2,B1,B0,D6,D5,D3,D1} | ||
| 34 | |||
| 35 | /* COL2ROW or ROW2COL */ | ||
| 36 | #define DIODE_DIRECTION COL2ROW | ||
| 37 | |||
| 38 | /* Set 0 if debouncing isn't needed */ | ||
| 39 | #define DEBOUNCE 5 | ||
| 40 | |||
| 41 | #define QMK_ESC_OUTPUT C4 // usually COL | ||
| 42 | #define QMK_ESC_INPUT D0 // usually ROW | ||
diff --git a/keyboards/4pplet/bootleg/rev_a/readme.md b/keyboards/4pplet/bootleg/rev_a/readme.md new file mode 100644 index 000000000..3ced86e61 --- /dev/null +++ b/keyboards/4pplet/bootleg/rev_a/readme.md | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # bootleg | ||
| 2 | |||
| 3 | A 60% PCB for non tray-mount keyboards | ||
| 4 | |||
| 5 | * Keyboard Maintainer: [4pplet](https://github.com/4pplet) | ||
| 6 | * Hardware Supported: bootleg Rev A | ||
| 7 | |||
| 8 | Make example for this keyboard (after setting up your build environment): | ||
| 9 | |||
| 10 | make 4pplet/bootleg/rev_a:default | ||
| 11 | |||
| 12 | 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/4pplet/bootleg/rev_a/rev_a.c b/keyboards/4pplet/bootleg/rev_a/rev_a.c new file mode 100644 index 000000000..b4f233d37 --- /dev/null +++ b/keyboards/4pplet/bootleg/rev_a/rev_a.c | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> | ||
| 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 | #include "rev_a.h" | ||
diff --git a/keyboards/4pplet/bootleg/rev_a/rev_a.h b/keyboards/4pplet/bootleg/rev_a/rev_a.h new file mode 100644 index 000000000..f9bbb445c --- /dev/null +++ b/keyboards/4pplet/bootleg/rev_a/rev_a.h | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "quantum.h" | ||
| 20 | |||
| 21 | #define LAYOUT_all( \ | ||
| 22 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e, \ | ||
| 23 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1d, k1e, \ | ||
| 24 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2d, \ | ||
| 25 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3d, k3e, \ | ||
| 26 | k40, k41, k43, k45, k47, k48, k4a, k4b, k4d, k4e \ | ||
| 27 | ) \ | ||
| 28 | { \ | ||
| 29 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k0e}, \ | ||
| 30 | {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1d, k1e}, \ | ||
| 31 | {k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2d}, \ | ||
| 32 | {k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3d, k3e}, \ | ||
| 33 | {k40, k41, k43, k45, k47, k48, k4a, k4b, k4d, k4e } \ | ||
| 34 | } | ||
diff --git a/keyboards/4pplet/bootleg/rev_a/rules.mk b/keyboards/4pplet/bootleg/rev_a/rules.mk new file mode 100644 index 000000000..380c35d4f --- /dev/null +++ b/keyboards/4pplet/bootleg/rev_a/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u2 | ||
| 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 = no # 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/4pplet/waffling60/info.json b/keyboards/4pplet/waffling60/info.json new file mode 100644 index 000000000..6c5c83fad --- /dev/null +++ b/keyboards/4pplet/waffling60/info.json | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "Waffling60 Rev A", | ||
| 3 | "url": "https://github.com/4pplet/waffling60", | ||
| 4 | "maintainer": "4pplet", | ||
| 5 | "width": 15, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT_all": { | ||
| 9 | "layout": [ | ||
| 10 | { "label": "Esc", "x": 0, "y": 0 }, | ||
| 11 | { "label": "!", "x": 1, "y": 0 }, | ||
| 12 | { "label": "@", "x": 2, "y": 0 }, | ||
| 13 | { "label": "#", "x": 3, "y": 0 }, | ||
| 14 | { "label": "$", "x": 4, "y": 0 }, | ||
| 15 | { "label": "%", "x": 5, "y": 0 }, | ||
| 16 | { "label": "^", "x": 6, "y": 0 }, | ||
| 17 | { "label": "&", "x": 7, "y": 0 }, | ||
| 18 | { "label": "*", "x": 8, "y": 0 }, | ||
| 19 | { "label": "(", "x": 9, "y": 0 }, | ||
| 20 | { "label": ")", "x": 10, "y": 0 }, | ||
| 21 | { "label": "_", "x": 11, "y": 0 }, | ||
| 22 | { "label": "+", "x": 12, "y": 0 }, | ||
| 23 | { "label": "|", "x": 13, "y": 0 }, | ||
| 24 | { "label": "~", "x": 14, "y": 0 }, | ||
| 25 | { "label": "Tab", "x": 0, "y": 1, "w": 1.5 }, | ||
| 26 | { "label": "Q", "x": 1.5, "y": 1 }, | ||
| 27 | { "label": "W", "x": 2.5, "y": 1 }, | ||
| 28 | { "label": "E", "x": 3.5, "y": 1 }, | ||
| 29 | { "label": "R", "x": 4.5, "y": 1 }, | ||
| 30 | { "label": "T", "x": 5.5, "y": 1 }, | ||
| 31 | { "label": "Y", "x": 6.5, "y": 1 }, | ||
| 32 | { "label": "U", "x": 7.5, "y": 1 }, | ||
| 33 | { "label": "I", "x": 8.5, "y": 1 }, | ||
| 34 | { "label": "O", "x": 9.5, "y": 1 }, | ||
| 35 | { "label": "P", "x": 10.5, "y": 1 }, | ||
| 36 | { "label": "{", "x": 11.5, "y": 1 }, | ||
| 37 | { "label": "}", "x": 12.5, "y": 1 }, | ||
| 38 | { "label": "Backsp.", "x": 13.5, "y": 1, "w": 1.5 }, | ||
| 39 | { "label": "Caps Lock", "x": 0, "y": 2, "w": 1.75 }, | ||
| 40 | { "label": "A", "x": 1.75, "y": 2 }, | ||
| 41 | { "label": "S", "x": 2.75, "y": 2 }, | ||
| 42 | { "label": "D", "x": 3.75, "y": 2 }, | ||
| 43 | { "label": "F", "x": 4.75, "y": 2 }, | ||
| 44 | { "label": "G", "x": 5.75, "y": 2 }, | ||
| 45 | { "label": "H", "x": 6.75, "y": 2 }, | ||
| 46 | { "label": "J", "x": 7.75, "y": 2 }, | ||
| 47 | { "label": "K", "x": 8.75, "y": 2 }, | ||
| 48 | { "label": "L", "x": 9.75, "y": 2 }, | ||
| 49 | { "label": ":", "x": 10.75, "y": 2 }, | ||
| 50 | { "label": "\"", "x": 11.75, "y": 2 }, | ||
| 51 | { "label": "Enter", "x": 12.75, "y": 2, "w": 2.25 }, | ||
| 52 | { "label": "Shift", "x": 0, "y": 3, "w": 1.25 }, | ||
| 53 | { "label": "|", "x": 1.25, "y": 3 }, | ||
| 54 | { "label": "Z", "x": 2.25, "y": 3 }, | ||
| 55 | { "label": "X", "x": 3.25, "y": 3 }, | ||
| 56 | { "label": "C", "x": 4.25, "y": 3 }, | ||
| 57 | { "label": "V", "x": 5.25, "y": 3 }, | ||
| 58 | { "label": "B", "x": 6.25, "y": 3 }, | ||
| 59 | { "label": "N", "x": 7.25, "y": 3 }, | ||
| 60 | { "label": "M", "x": 8.25, "y": 3 }, | ||
| 61 | { "label": "<", "x": 9.25, "y": 3 }, | ||
| 62 | { "label": ">", "x": 10.25, "y": 3 }, | ||
| 63 | { "label": "?", "x": 11.25, "y": 3 }, | ||
| 64 | { "label": "Shift", "x": 12.25, "y": 3, "w": 1.75 }, | ||
| 65 | { "label": "Fn", "x": 14, "y": 3, "w": 1 }, | ||
| 66 | { "label": "Ctrl", "x": 0, "y": 4, "w": 1.25 }, | ||
| 67 | { "label": "Win", "x": 1.25, "y": 4, "w": 1.25 }, | ||
| 68 | { "label": "Alt", "x": 2.5, "y": 4, "w": 1.25 }, | ||
| 69 | { "label": "Space1", "x": 3.75, "y": 4, "w": 2.25 }, | ||
| 70 | { "label": "Space2", "x": 6, "y": 4, "w": 1.25 }, | ||
| 71 | { "label": "Space3", "x": 7.25, "y": 4, "w": 2.75 }, | ||
| 72 | { "label": "Alt", "x": 10, "y": 4, "w": 1.25 }, | ||
| 73 | { "label": "Menu", "x": 11.25, "y": 4, "w": 1.25 }, | ||
| 74 | { "label": "Win", "x": 12.5, "y": 4, "w": 1.25 }, | ||
| 75 | { "label": "Ctrl", "x": 13.75, "y": 4, "w": 1.25 } | ||
| 76 | ] | ||
| 77 | } | ||
| 78 | } | ||
| 79 | } | ||
diff --git a/keyboards/4pplet/waffling60/keymaps/default/keymap.c b/keyboards/4pplet/waffling60/keymaps/default/keymap.c index d61c3f6c5..c9ae421af 100644 --- a/keyboards/4pplet/waffling60/keymaps/default/keymap.c +++ b/keyboards/4pplet/waffling60/keymaps/default/keymap.c | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> | ||
| 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 | */ | ||
| 1 | #include QMK_KEYBOARD_H | 17 | #include QMK_KEYBOARD_H |
| 2 | 18 | ||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
diff --git a/keyboards/4pplet/waffling60/keymaps/via/keymap.c b/keyboards/4pplet/waffling60/keymaps/via/keymap.c index 40ca2a28f..d20c6bf06 100644 --- a/keyboards/4pplet/waffling60/keymaps/via/keymap.c +++ b/keyboards/4pplet/waffling60/keymaps/via/keymap.c | |||
| @@ -1,3 +1,19 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> | ||
| 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 | */ | ||
| 1 | #include QMK_KEYBOARD_H | 17 | #include QMK_KEYBOARD_H |
| 2 | 18 | ||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 19 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| @@ -29,4 +45,4 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
| 29 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | 45 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, |
| 30 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, | 46 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, |
| 31 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) | 47 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS) |
| 32 | }; | 48 | }; \ No newline at end of file |
diff --git a/keyboards/4pplet/waffling60/readme.md b/keyboards/4pplet/waffling60/readme.md index a6b56a69e..bf5fda880 100644 --- a/keyboards/4pplet/waffling60/readme.md +++ b/keyboards/4pplet/waffling60/readme.md | |||
| @@ -9,6 +9,7 @@ More info: https://geekhack.org/index.php?topic=103531.0 | |||
| 9 | 9 | ||
| 10 | Make example for this keyboard (after setting up your build environment): | 10 | Make example for this keyboard (after setting up your build environment): |
| 11 | 11 | ||
| 12 | make 4pplet/steezy60/rev_a:default | 12 | make 4pplet/waffling60/rev_a:default |
| 13 | make 4pplet/waffling60/rev_b:default | ||
| 13 | 14 | ||
| 14 | 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). \ No newline at end of file | 15 | 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/4pplet/waffling60/rev_a/readme.md b/keyboards/4pplet/waffling60/rev_a/readme.md new file mode 100644 index 000000000..1519fa66f --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_a/readme.md | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | # waffling60 | ||
| 2 | |||
| 3 | A 60% PCB for MX switches, one hot swap and one solder-pcb version with decent layout support. | ||
| 4 | |||
| 5 | More info: https://geekhack.org/index.php?topic=103531.0 | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [4pplet](https://github.com/4pplet) | ||
| 8 | * Hardware Supported: [waffling60](https://github.com/4pplet/waffling60) | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make 4pplet/waffling60/rev_a:default | ||
| 13 | |||
| 14 | 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/4pplet/waffling60/rev_b/config.h b/keyboards/4pplet/waffling60/rev_b/config.h new file mode 100644 index 000000000..eb9882d73 --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_b/config.h | |||
| @@ -0,0 +1,55 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | #include "config_common.h" | ||
| 20 | |||
| 21 | /* USB Device descriptor parameter */ | ||
| 22 | #define VENDOR_ID 0x4444 | ||
| 23 | #define PRODUCT_ID 0x0005 | ||
| 24 | #define DEVICE_VER 0x0002 | ||
| 25 | #define MANUFACTURER 4pplet | ||
| 26 | #define PRODUCT waffling60 Rev B | ||
| 27 | |||
| 28 | /* key matrix size */ | ||
| 29 | #define MATRIX_ROWS 5 | ||
| 30 | #define MATRIX_COLS 14 | ||
| 31 | // ROWS: Top to bottom, COLS: Left to right | ||
| 32 | |||
| 33 | #define MATRIX_ROW_PINS {C2,D0,B0,D6,D5} | ||
| 34 | #define MATRIX_COL_PINS {C4,C5,D2,C6,C7,B7,B6,B5,B4,B3,B2,B1,D1,D4} | ||
| 35 | |||
| 36 | /* COL2ROW or ROW2COL */ | ||
| 37 | #define DIODE_DIRECTION COL2ROW | ||
| 38 | |||
| 39 | /* define if matrix has ghost */ | ||
| 40 | //#define MATRIX_HAS_GHOST | ||
| 41 | |||
| 42 | /* Set 0 if debouncing isn't needed */ | ||
| 43 | #define DEBOUNCE 5 | ||
| 44 | |||
| 45 | #define QMK_ESC_OUTPUT C2 // usually COL | ||
| 46 | #define QMK_ESC_INPUT C4 // usually ROW | ||
| 47 | |||
| 48 | #define RGB_DI_PIN D3 | ||
| 49 | #define RGBLED_NUM 1 | ||
| 50 | #define BACKLIGHT_LEVELS 5 | ||
| 51 | |||
| 52 | #define RGBLIGHT_HUE_STEP 8 | ||
| 53 | #define RGBLIGHT_SAT_STEP 8 | ||
| 54 | #define RGBLIGHT_VAL_STEP 8 | ||
| 55 | #define RGBLIGHT_ANIMATIONS | ||
diff --git a/keyboards/4pplet/waffling60/rev_b/readme.md b/keyboards/4pplet/waffling60/rev_b/readme.md new file mode 100644 index 000000000..27ca8ca9c --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_b/readme.md | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | # waffling60 | ||
| 2 | |||
| 3 | A 60% PCB for MX switches, one hot swap and one solder-pcb version with decent layout support. | ||
| 4 | |||
| 5 | More info: https://geekhack.org/index.php?topic=103531.0 | ||
| 6 | |||
| 7 | * Keyboard Maintainer: [4pplet](https://github.com/4pplet) | ||
| 8 | * Hardware Supported: [waffling60](https://github.com/4pplet/waffling60) | ||
| 9 | |||
| 10 | Make example for this keyboard (after setting up your build environment): | ||
| 11 | |||
| 12 | make 4pplet/waffling60/rev_b:default | ||
| 13 | |||
| 14 | 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/4pplet/waffling60/rev_b/rev_b.c b/keyboards/4pplet/waffling60/rev_b/rev_b.c new file mode 100644 index 000000000..5f701b57f --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_b/rev_b.c | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> | ||
| 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 | #include "rev_b.h" | ||
| 18 | |||
| 19 | bool led_update_kb(led_t led_state) { | ||
| 20 | bool res = led_update_user(led_state); | ||
| 21 | if(CAPS_LOCK_ENABLE){ | ||
| 22 | if(res) { | ||
| 23 | if(led_state.caps_lock){ | ||
| 24 | rgblight_enable(); | ||
| 25 | rgblight_mode(1); | ||
| 26 | rgblight_sethsv_noeeprom(CAPS_LOCK_COLOR); | ||
| 27 | } | ||
| 28 | else | ||
| 29 | rgblight_disable_noeeprom(); | ||
| 30 | } | ||
| 31 | } | ||
| 32 | return res; | ||
| 33 | } | ||
diff --git a/keyboards/4pplet/waffling60/rev_b/rev_b.h b/keyboards/4pplet/waffling60/rev_b/rev_b.h new file mode 100644 index 000000000..e6dc7a15d --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_b/rev_b.h | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2020 Stefan Sundin "4pplet" <4pplet@protonmail.com> | ||
| 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 | #pragma once | ||
| 18 | |||
| 19 | // defines to set RGB-led behaviour. Off by default | ||
| 20 | #define CAPS_LOCK_ENABLE false | ||
| 21 | #define CAPS_LOCK_COLOR HSV_ORANGE | ||
| 22 | |||
| 23 | #include "quantum.h" | ||
| 24 | |||
| 25 | #define LAYOUT_all( \ | ||
| 26 | k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d, k1d, \ | ||
| 27 | k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k2c, \ | ||
| 28 | k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2d, \ | ||
| 29 | k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d, \ | ||
| 30 | k40, k41, k42, k44, k46, k48, k4a, k4b, k4c, k4d \ | ||
| 31 | ) \ | ||
| 32 | { \ | ||
| 33 | {k00, k01, k02, k03, k04, k05, k06, k07, k08, k09, k0a, k0b, k0c, k0d}, \ | ||
| 34 | {k10, k11, k12, k13, k14, k15, k16, k17, k18, k19, k1a, k1b, k1c, k1d}, \ | ||
| 35 | {k20, k21, k22, k23, k24, k25, k26, k27, k28, k29, k2a, k2b, k2c, k2d}, \ | ||
| 36 | {k30, k31, k32, k33, k34, k35, k36, k37, k38, k39, k3a, k3b, k3c, k3d}, \ | ||
| 37 | {k40, k41, k42, KC_NO, k44, KC_NO, k46, KC_NO, k48, KC_NO, k4a, k4b, k4c, k4d}, \ | ||
| 38 | } | ||
diff --git a/keyboards/4pplet/waffling60/rev_b/rules.mk b/keyboards/4pplet/waffling60/rev_b/rules.mk new file mode 100644 index 000000000..69c524b73 --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_b/rules.mk | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u2 | ||
| 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 = no # 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 | ||
