aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTran Kim Tung <contact@trankimtung.com>2021-07-23 00:39:08 +0800
committerGitHub <noreply@github.com>2021-07-22 09:39:08 -0700
commit95a7c2282466252641a1d0bb1b15d50752193f4b (patch)
tree4dd9ec80051c1237b65e22f5c06a3705d2463086
parent58abdfc834a8918f4b2ecb48d2d52d6688c66ec4 (diff)
downloadqmk_firmware-95a7c2282466252641a1d0bb1b15d50752193f4b.tar.gz
qmk_firmware-95a7c2282466252641a1d0bb1b15d50752193f4b.zip
[Keyboard] adds new revision: dztech/dz60rgb/v2_1 (#13636)
-rw-r--r--keyboards/dztech/dz60rgb/readme.md5
-rw-r--r--keyboards/dztech/dz60rgb/v2_1/config.h79
-rw-r--r--keyboards/dztech/dz60rgb/v2_1/rules.mk26
3 files changed, 109 insertions, 1 deletions
diff --git a/keyboards/dztech/dz60rgb/readme.md b/keyboards/dztech/dz60rgb/readme.md
index 1b2eb6f85..6accc6076 100644
--- a/keyboards/dztech/dz60rgb/readme.md
+++ b/keyboards/dztech/dz60rgb/readme.md
@@ -8,14 +8,17 @@ A hotswap 60% RGB keyboard.
8* Hardware Supported: DZtech DZ60RGB V1 and V2 8* Hardware Supported: DZtech DZ60RGB V1 and V2
9* Hardware Availability: [KBDfans](https://kbdfans.com/) 9* Hardware Availability: [KBDfans](https://kbdfans.com/)
10 10
11There are two versions of the DZ60RGB. Please use the appropriate firmware for your board. 11There are three versions of the DZ60RGB. 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 [Flash Manual](https://docs.google.com/document/d/111qx6Qec4JqtIhWaZlMND-VuRnFtn9a-gJaHN8fsL7M/edit?usp=sharing)
16 Started shipping in June 2021 as a slightly modified version of v2.
15 17
16Make example for this keyboard (after setting up your build environment): 18Make example for this keyboard (after setting up your build environment):
17 19
18 make dztech/dz60rgb/v1:default # Arm (STM32F303) 20 make dztech/dz60rgb/v1:default # Arm (STM32F303)
19 make dztech/dz60rgb/v2:default # AVR (ATmega32U4) 21 make dztech/dz60rgb/v2:default # AVR (ATmega32U4)
22 make dztech/dz60rgb/v2_1:default # AVR (ATmega32U4)
20 23
21See 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). 24See 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/v2_1/config.h b/keyboards/dztech/dz60rgb/v2_1/config.h
new file mode 100644
index 000000000..6928ad50a
--- /dev/null
+++ b/keyboards/dztech/dz60rgb/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 0x1121
22#define DEVICE_VER 0x0003
23#define MANUFACTURER DZTECH
24#define PRODUCT DZ60RGB
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 63
78# define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
79#endif
diff --git a/keyboards/dztech/dz60rgb/v2_1/rules.mk b/keyboards/dztech/dz60rgb/v2_1/rules.mk
new file mode 100644
index 000000000..7fdadb18d
--- /dev/null
+++ b/keyboards/dztech/dz60rgb/v2_1/rules.mk
@@ -0,0 +1,26 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = lufa-ms
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = no # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_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
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23RGB_MATRIX_ENABLE = yes # Use RGB matrix
24RGB_MATRIX_DRIVER = IS31FL3733
25NO_USB_STARTUP_CHECK = no # Disable initialization only when usb is plugged in
26LTO_ENABLE = yes