]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/rgbkb/zen/rev2/config.h
Remove the need to specify NUM_OF_ENCODERS for the Encoder feature (#6328)
[qmk_firmware.git] / keyboards / rgbkb / zen / rev2 / config.h
1 /*
2 Copyright 2017 Danny Nguyen <danny@hexwire.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
18 #pragma once
19
20 /* USB Device descriptor parameter */
21 #define VENDOR_ID       0xFEED
22 #define PRODUCT_ID      0x3061
23 #define DEVICE_VER      0x0002
24 #define MANUFACTURER    Legonut
25 #define PRODUCT         "Project Zen"
26 #define DESCRIPTION     "Split gaming keyboard"
27
28 /* key matrix size */
29 // Rows are doubled-up
30
31 // wiring of each half
32 #ifdef CONVERT_TO_PROTON_C
33   #define MATRIX_ROWS 5
34   #define MATRIX_COLS 7
35 #else
36   #define MATRIX_ROWS 10
37   #define MATRIX_COLS 7
38 #endif
39
40 // Proton-C does pin conversion
41 #define MATRIX_ROW_PINS { C6, E6, B5, D7, B4 }
42 #define MATRIX_COL_PINS { F4, F5, F6, F7, B3, B1, B2 }
43
44 #define ENCODERS_PAD_A  { D4 }
45 #define ENCODERS_PAD_B  { D2 }
46
47 #define RGB_DI_PIN         B6
48 #define SOFT_SERIAL_PIN    D3
49
50 /* COL2ROW or ROW2COL */
51 #define DIODE_DIRECTION COL2ROW
52
53 /* define if matrix has ghost */
54 //#define MATRIX_HAS_GHOST
55
56 /* Set 0 if debouncing isn't needed */
57 #define DEBOUNCE 5
58
59 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
60 #define LOCKING_SUPPORT_ENABLE
61 /* Locking resynchronize hack */
62 #define LOCKING_RESYNC_ENABLE
63
64 /* ws2812 RGB LED */
65 #define RGBLED_NUM 34    // Number of LEDs
66 #define RGBLIGHT_ANIMATIONS
67
68 /*
69  * Feature disable options
70  *  These options are also useful to firmware size reduction.
71  */
72
73 /* disable debug print */
74 // #define NO_DEBUG
75
76 /* disable print */
77 // #define NO_PRINT
78
79 /* disable action features */
80 //#define NO_ACTION_LAYER
81 //#define NO_ACTION_TAPPING
82 //#define NO_ACTION_ONESHOT
83 //#define NO_ACTION_MACRO
84 //#define NO_ACTION_FUNCTION