diff options
| author | QMK Bot <hello@qmk.fm> | 2021-08-19 15:51:56 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2021-08-19 15:51:56 +0000 |
| commit | a995dd16a2d6617a962003251c7d89430dab202b (patch) | |
| tree | 8fc42329cd0a88b55d93dd308d6cd1dfc7c5e203 | |
| parent | 2ff1a6a72f2c160969bdea51bfa156a56ed968af (diff) | |
| parent | 49be4860f72af98d3788d5559023cc3fc9f4e08e (diff) | |
| download | qmk_firmware-a995dd16a2d6617a962003251c7d89430dab202b.tar.gz qmk_firmware-a995dd16a2d6617a962003251c7d89430dab202b.zip | |
Merge remote-tracking branch 'origin/master' into develop
| -rw-r--r-- | keyboards/dztech/dz60rgb_wkl/readme.md | 5 | ||||
| -rw-r--r-- | keyboards/dztech/dz60rgb_wkl/v2_1/config.h | 79 | ||||
| -rw-r--r-- | keyboards/dztech/dz60rgb_wkl/v2_1/rules.mk | 28 |
3 files changed, 111 insertions, 1 deletions
diff --git a/keyboards/dztech/dz60rgb_wkl/readme.md b/keyboards/dztech/dz60rgb_wkl/readme.md index a80236437..23ec5fa94 100644 --- a/keyboards/dztech/dz60rgb_wkl/readme.md +++ b/keyboards/dztech/dz60rgb_wkl/readme.md | |||
| @@ -8,14 +8,17 @@ A hotswap 60% RGB keyboard. | |||
| 8 | * Hardware Supported: DZtech DZ60RGB-WKL V1 and V2 | 8 | * Hardware Supported: DZtech DZ60RGB-WKL V1 and V2 |
| 9 | * Hardware Availability: [KBDfans](https://kbdfans.com/) | 9 | * Hardware Availability: [KBDfans](https://kbdfans.com/) |
| 10 | 10 | ||
| 11 | There are two versions of the DZ60RGB-WKL. Please use the appropriate firmware for your board. | 11 | There are three versions of the DZ60RGB-WKL. Please use the appropriate firmware for your board. |
| 12 | 12 | ||
| 13 | * V1: STM32F303 (Arm), takes .bin files | 13 | * V1: STM32F303 (Arm), takes .bin files |
| 14 | * V2: ATmega32U4 (AVR), takes .hex files | 14 | * V2: ATmega32U4 (AVR), takes .hex files |
| 15 | * V2.1: ATmega32U4 (AVR), takes .bin files | ||
| 16 | Started shipping in June 2021 as a slightly modified version of v2. | ||
| 15 | 17 | ||
| 16 | Make example for this keyboard (after setting up your build environment): | 18 | Make example for this keyboard (after setting up your build environment): |
| 17 | 19 | ||
| 18 | make dztech/dz60rgb_wkl/v1:default # Arm (STM32F303) | 20 | make dztech/dz60rgb_wkl/v1:default # Arm (STM32F303) |
| 19 | make dztech/dz60rgb_wkl/v2:default # AVR (ATmega32U4) | 21 | make dztech/dz60rgb_wkl/v2:default # AVR (ATmega32U4) |
| 22 | make dztech/dz60rgb_wkl/v2_1:default # AVR (ATmega32U4) | ||
| 20 | 23 | ||
| 21 | 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). | 24 | 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/dztech/dz60rgb_wkl/v2_1/config.h b/keyboards/dztech/dz60rgb_wkl/v2_1/config.h new file mode 100644 index 000000000..c4d9e6c9a --- /dev/null +++ b/keyboards/dztech/dz60rgb_wkl/v2_1/config.h | |||
| @@ -0,0 +1,79 @@ | |||
| 1 | /* Copyright 2021 trankimtung | ||
| 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 | /* USB Device descriptor parameter */ | ||
| 20 | #define VENDOR_ID 0x445A | ||
| 21 | #define PRODUCT_ID 0x1321 | ||
| 22 | #define DEVICE_VER 0x0003 | ||
| 23 | #define MANUFACTURER DZTECH | ||
| 24 | #define PRODUCT DZ60RGB_WKL | ||
| 25 | |||
| 26 | /* key matrix size */ | ||
| 27 | #define MATRIX_ROWS 5 | ||
| 28 | #define MATRIX_COLS 14 | ||
| 29 | |||
| 30 | /* | ||
| 31 | * Keyboard Matrix Assignments | ||
| 32 | * | ||
| 33 | * Change this to how you wired your keyboard | ||
| 34 | * COLS: AVR pins used for columns, left to right | ||
| 35 | * ROWS: AVR pins used for rows, top to bottom | ||
| 36 | * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode) | ||
| 37 | * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode) | ||
| 38 | * | ||
| 39 | */ | ||
| 40 | #define MATRIX_ROW_PINS { F5, F4, F1, B3, B2 } | ||
| 41 | #define MATRIX_COL_PINS { C7, F7, F6, F0, B0, B1, B4, D7, D6, D4, D5, D3, D2, B7 } | ||
| 42 | #define UNUSED_PINS | ||
| 43 | |||
| 44 | /* COL2ROW, ROW2COL*/ | ||
| 45 | #define DIODE_DIRECTION COL2ROW | ||
| 46 | |||
| 47 | /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */ | ||
| 48 | #define DEBOUNCE 3 | ||
| 49 | |||
| 50 | /* disable these deprecated features by default */ | ||
| 51 | #define NO_ACTION_MACRO | ||
| 52 | #define NO_ACTION_FUNCTION | ||
| 53 | |||
| 54 | #ifdef RGB_MATRIX_ENABLE | ||
| 55 | # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | ||
| 56 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | ||
| 57 | # define RGB_MATRIX_KEYPRESSES | ||
| 58 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 59 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
| 60 | # define DISABLE_RGB_MATRIX_BAND_SAT | ||
| 61 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | ||
| 62 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
| 63 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | ||
| 64 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
| 65 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | ||
| 66 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
| 67 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | ||
| 68 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
| 69 | # define DISABLE_RGB_MATRIX_SPLASH | ||
| 70 | # define DISABLE_RGB_MATRIX_MULTISPLASH | ||
| 71 | # define DISABLE_RGB_MATRIX_SOLID_SPLASH | ||
| 72 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | ||
| 73 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | ||
| 74 | # define DRIVER_ADDR_1 0b1010000 | ||
| 75 | # define DRIVER_ADDR_2 0b1010000 // this is here for compliancy reasons. | ||
| 76 | # define DRIVER_COUNT 2 | ||
| 77 | # define DRIVER_1_LED_TOTAL 62 | ||
| 78 | # define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL | ||
| 79 | #endif | ||
diff --git a/keyboards/dztech/dz60rgb_wkl/v2_1/rules.mk b/keyboards/dztech/dz60rgb_wkl/v2_1/rules.mk new file mode 100644 index 000000000..94194f77f --- /dev/null +++ b/keyboards/dztech/dz60rgb_wkl/v2_1/rules.mk | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | # MCU name | ||
| 2 | MCU = atmega32u4 | ||
| 3 | |||
| 4 | # Bootloader selection | ||
| 5 | BOOTLOADER = lufa-ms | ||
| 6 | BOOTLOADER_SIZE = 6144 | ||
| 7 | |||
| 8 | # Build Options | ||
| 9 | # change yes to no to disable | ||
| 10 | # | ||
| 11 | BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration | ||
| 12 | MOUSEKEY_ENABLE = yes # Mouse keys | ||
| 13 | EXTRAKEY_ENABLE = yes # Audio control and System control | ||
| 14 | CONSOLE_ENABLE = no # Console for debug | ||
| 15 | COMMAND_ENABLE = no # Commands for debug and configuration | ||
| 16 | # Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE | ||
| 17 | SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend | ||
| 18 | # if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work | ||
| 19 | NKRO_ENABLE = yes # USB Nkey Rollover | ||
| 20 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | ||
| 21 | RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow | ||
| 22 | BLUETOOTH_ENABLE = no # Enable Bluetooth | ||
| 23 | AUDIO_ENABLE = no # Audio output | ||
| 24 | RGB_MATRIX_ENABLE = yes # Use RGB matrix | ||
| 25 | RGB_MATRIX_DRIVER = IS31FL3733 | ||
| 26 | LTO_ENABLE = yes | ||
| 27 | |||
| 28 | LAYOUTS = 60_tsangan_hhkb | ||
