diff options
| author | 4pplet <mail@4pplet.com> | 2022-02-06 16:54:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-06 07:54:56 -0800 |
| commit | ea116b785bc85d7d7a6248589bbef731539f762c (patch) | |
| tree | 5e64a5927c99054241d5a519de63f3f8c00cf41a /keyboards | |
| parent | 095f0bfe020cfc9eac399df2c100f11ca2bb8635 (diff) | |
| download | qmk_firmware-ea116b785bc85d7d7a6248589bbef731539f762c.tar.gz qmk_firmware-ea116b785bc85d7d7a6248589bbef731539f762c.zip | |
[Keyboard] Waffling60 Revision C (#16191)
Co-authored-by: Drashna Jaelre <drashna@live.com>
Co-authored-by: 4pplet <4pplet@protonmail.com>
Co-authored-by: 4pplet <stefan.ess@gmail.com>
Diffstat (limited to 'keyboards')
| -rw-r--r-- | keyboards/4pplet/waffling60/rev_c/config.h | 64 | ||||
| -rw-r--r-- | keyboards/4pplet/waffling60/rev_c/readme.md | 20 | ||||
| -rw-r--r-- | keyboards/4pplet/waffling60/rev_c/rev_c.c | 31 | ||||
| -rw-r--r-- | keyboards/4pplet/waffling60/rev_c/rev_c.h | 38 | ||||
| -rw-r--r-- | keyboards/4pplet/waffling60/rev_c/rules.mk | 18 |
5 files changed, 171 insertions, 0 deletions
diff --git a/keyboards/4pplet/waffling60/rev_c/config.h b/keyboards/4pplet/waffling60/rev_c/config.h new file mode 100644 index 000000000..e1862f4c0 --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_c/config.h | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.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 0x0008 | ||
| 24 | #define DEVICE_VER 0x0003 | ||
| 25 | #define MANUFACTURER 4pplet | ||
| 26 | #define PRODUCT waffling60 Rev C | ||
| 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_EFFECT_BREATHING | ||
| 56 | #define RGBLIGHT_EFFECT_RAINBOW_MOOD | ||
| 57 | #define RGBLIGHT_EFFECT_RAINBOW_SWIRL | ||
| 58 | #define RGBLIGHT_EFFECT_SNAKE | ||
| 59 | #define RGBLIGHT_EFFECT_KNIGHT | ||
| 60 | #define RGBLIGHT_EFFECT_CHRISTMAS | ||
| 61 | #define RGBLIGHT_EFFECT_STATIC_GRADIENT | ||
| 62 | #define RGBLIGHT_EFFECT_RGB_TEST | ||
| 63 | #define RGBLIGHT_EFFECT_ALTERNATING | ||
| 64 | #define RGBLIGHT_EFFECT_TWINKLE | ||
diff --git a/keyboards/4pplet/waffling60/rev_c/readme.md b/keyboards/4pplet/waffling60/rev_c/readme.md new file mode 100644 index 000000000..3b6b9c94f --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_c/readme.md | |||
| @@ -0,0 +1,20 @@ | |||
| 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_c: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). | ||
| 15 | |||
| 16 | How to enter bootloader (DFU): | ||
| 17 | * Tap the physical reset button or short the reset-header (labled RESET) on tha back of the PCB for keyboard to enter DFU. When in DFU, it's ready to flash the firmware. | ||
| 18 | |||
| 19 | Alternative option if the firmware is already pre-flashed: | ||
| 20 | * Unplug your keyboard, hold down the Spacebar and B at the same time, plug in your keyboard and wait a second before releasing the keys. The keyboard will enter DFU and is ready to flash the firmware. | ||
diff --git a/keyboards/4pplet/waffling60/rev_c/rev_c.c b/keyboards/4pplet/waffling60/rev_c/rev_c.c new file mode 100644 index 000000000..f00cce06d --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_c/rev_c.c | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.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_c.h" | ||
| 18 | |||
| 19 | bool led_update_kb(led_t led_state) { | ||
| 20 | bool res = led_update_user(led_state); | ||
| 21 | if (CAPS_LOCK_ENABLE && res) { | ||
| 22 | if (led_state.caps_lock){ | ||
| 23 | rgblight_enable(); | ||
| 24 | rgblight_mode(1); | ||
| 25 | rgblight_sethsv_noeeprom(CAPS_LOCK_COLOR); | ||
| 26 | } else { | ||
| 27 | rgblight_disable_noeeprom(); | ||
| 28 | } | ||
| 29 | } | ||
| 30 | return res; | ||
| 31 | } | ||
diff --git a/keyboards/4pplet/waffling60/rev_c/rev_c.h b/keyboards/4pplet/waffling60/rev_c/rev_c.h new file mode 100644 index 000000000..3df9419eb --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_c/rev_c.h | |||
| @@ -0,0 +1,38 @@ | |||
| 1 | /* | ||
| 2 | Copyright 2022 Stefan Sundin "4pplet" <mail@4pplet.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_c/rules.mk b/keyboards/4pplet/waffling60/rev_c/rules.mk new file mode 100644 index 000000000..88173a40c --- /dev/null +++ b/keyboards/4pplet/waffling60/rev_c/rules.mk | |||
| @@ -0,0 +1,18 @@ | |||
| 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 = yes # Enable Bootmagic Lite | ||
| 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 | NKRO_ENABLE = no # Enable N-Key Rollover | ||
| 16 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 17 | RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow | ||
| 18 | AUDIO_ENABLE = no # Audio output | ||
