]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/zen/rev2/config.h
5fa262760252765decbc726841748214424d8800
[qmk_firmware.git] / keyboards / 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 NUMBER_OF_ENCODERS 1
45
46 #define ENCODERS_PAD_A  { D4 }
47 #define ENCODERS_PAD_B  { D2 }
48
49 #define RGB_DI_PIN         B6
50 #define SOFT_SERIAL_PIN    D3
51
52 /* COL2ROW or ROW2COL */
53 #define DIODE_DIRECTION COL2ROW
54
55 /* define if matrix has ghost */
56 //#define MATRIX_HAS_GHOST
57
58 /* Set 0 if debouncing isn't needed */
59 #define DEBOUNCING_DELAY 5
60
61 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
62 #define LOCKING_SUPPORT_ENABLE
63 /* Locking resynchronize hack */
64 #define LOCKING_RESYNC_ENABLE
65
66 /* ws2812 RGB LED */
67 #define RGBLED_NUM 34    // Number of LEDs
68
69 /*
70  * Feature disable options
71  *  These options are also useful to firmware size reduction.
72  */
73
74 /* disable debug print */
75 // #define NO_DEBUG
76
77 /* disable print */
78 // #define NO_PRINT
79
80 /* disable action features */
81 //#define NO_ACTION_LAYER
82 //#define NO_ACTION_TAPPING
83 //#define NO_ACTION_ONESHOT
84 //#define NO_ACTION_MACRO
85 //#define NO_ACTION_FUNCTION