[Keyboard] Remove `PREVENT_STUCK_MODIFIERS` from config.h files (#7592)
[jackhill/qmk/firmware.git] / keyboards / zinc / reva / config.h
1 /*
2 Copyright 2012 Jun Wako <wakojun@gmail.com>
3 Copyright 2015 Jack Humbert
4
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #pragma once
20
21 /* USB Device descriptor parameter */
22 #define VENDOR_ID 0xFEED
23 #define PRODUCT_ID 0x9991
24 #define DEVICE_VER 0x0001
25 #define MANUFACTURER monksoffunk
26 #define PRODUCT zinc rev.A
27 #define DESCRIPTION A split keyboard
28
29 #define TAPPING_FORCE_HOLD
30 #define TAPPING_TERM 100
31
32 /* Use I2C or Serial */
33 //#define USE_I2C
34 #define USE_SERIAL
35 //#define USE_MATRIX_I2C
36
37 /* Select hand configuration */
38 #define MASTER_LEFT
39 //#define MASTER_RIGHT
40 //#define EE_HANDS
41
42 /* key matrix size */
43 // Rows are doubled-up
44 #define MATRIX_ROWS 8
45 #define MATRIX_ROW_PINS { D4, C6, D7, E6 }
46
47 // wiring of each half
48 #define MATRIX_COLS 6
49 #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3}
50
51 /* define if matrix has ghost */
52 //#define MATRIX_HAS_GHOST
53
54 /* number of backlight levels */
55 // #define BACKLIGHT_LEVELS 3
56
57 /* Set 0 if debouncing isn't needed */
58 #define DEBOUNCE 5
59
60 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
61 //#define LOCKING_SUPPORT_ENABLE
62 /* Locking resynchronize hack */
63 //#define LOCKING_RESYNC_ENABLE
64
65 /* ws2812 RGB LED */
66 #define RGB_DI_PIN D3
67 #define RGBLIGHT_TIMER
68 //#define RGBLED_NUM 24 // Number of LEDs. see ./keymaps/default/config.h
69 #define ws2812_PORTREG PORTD
70 #define ws2812_DDRREG DDRD
71
72 // RGB LED support
73 //#define RGBLIGHT_ANIMATIONS : see ./rules.mk: LED_ANIMATIONS = yes or no
74 // see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes
75 #ifdef RGBLED_BACK
76 #define RGBLED_NUM 24
77 #else
78 #define RGBLED_NUM 6
79 #endif
80
81 #ifndef IOS_DEVICE_ENABLE
82 #if RGBLED_NUM <= 6
83 #define RGBLIGHT_LIMIT_VAL 255
84 #else
85 #if RGBLED_NUM <= 16
86 #define RGBLIGHT_LIMIT_VAL 130
87 #else
88 #define RGBLIGHT_LIMIT_VAL 120
89 #endif
90 #endif
91 #define RGBLIGHT_VAL_STEP 17
92 #else
93 #if RGBLED_NUM <= 6
94 #define RGBLIGHT_LIMIT_VAL 90
95 #else
96 #if RGBLED_NUM <= 16
97 #define RGBLIGHT_LIMIT_VAL 45
98 #else
99 #define RGBLIGHT_LIMIT_VAL 35
100 #endif
101 #endif
102 #define RGBLIGHT_VAL_STEP 4
103 #endif
104 #define RGBLIGHT_HUE_STEP 10
105 #define RGBLIGHT_SAT_STEP 17
106
107 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
108 // USB_MAX_POWER_CONSUMPTION value
109 // 120 RGBoff
110 // 330 RGB 6
111 // 300 RGB 32
112 #define USB_MAX_POWER_CONSUMPTION 400
113 #else
114 // fix iPhone and iPad power adapter issue
115 // iOS device need lessthan 100
116 #define USB_MAX_POWER_CONSUMPTION 100
117 #endif
118
119 /*
120 * Feature disable options
121 * These options are also useful to firmware size reduction.
122 */
123
124 /* disable debug print */
125 // #define NO_DEBUG
126
127 /* disable print */
128 // #define NO_PRINT
129
130 /* disable action features */
131 //#define NO_ACTION_LAYER
132 //#define NO_ACTION_TAPPING
133 //#define NO_ACTION_ONESHOT
134 //#define NO_ACTION_MACRO
135 //#define NO_ACTION_FUNCTION