]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/helix/rev2/config.h
2dc2fb8dd8a0968ef0ad33cdd85ad761b0d0b35e
[qmk_firmware.git] / keyboards / helix / rev2 / 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 #ifndef REV2_CONFIG_H
20 #define REV2_CONFIG_H
21
22 /* USB Device descriptor parameter */
23 #define VENDOR_ID       0xFEED
24 #define PRODUCT_ID      0x3060
25 #define DEVICE_VER      0x0001
26 #define MANUFACTURER    Yushakobo
27 #define PRODUCT         Helix Beta
28 #define DESCRIPTION     A split keyboard for the cheap makers
29
30 #define TAPPING_FORCE_HOLD
31 #define TAPPING_TERM 100
32
33 /* Use I2C or Serial */
34 #define USE_I2C
35 #define USE_SERIAL
36 //#define USE_MATRIX_I2C
37
38 /* Select hand configuration */
39 #define MASTER_LEFT
40 // #define MASTER_RIGHT
41 // #define EE_HANDS
42
43 // Helix keyboard OLED support
44 //      see ./rules.mk: OLED_ENABLE=yes or no
45 #ifdef OLED_ENABLE
46   #define SSD1306OLED
47 #endif
48
49 /* Select rows configuration */
50 // Rows are 4 or 5
51 // #define HELIX_ROWS 5 see ./rules.mk
52
53 /* key matrix size */
54 // Rows are doubled-up
55 #if  HELIX_ROWS == 4
56   #define MATRIX_ROWS 8
57   #define MATRIX_ROW_PINS { D4, C6, D7, E6 }
58 #else
59   #define MATRIX_ROWS 10
60   #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
61 #endif
62
63 // wiring of each half
64 #define MATRIX_COLS 7
65 #define MATRIX_COL_PINS { F4, F5, F6, F7, B1, B3, B2 }
66 // #define MATRIX_COL_PINS { B2, B3, B1, F7, F6, F5, F4 } //uncomment this line and comment line above if you need to reverse left-to-right key order
67
68 /* define if matrix has ghost */
69 //#define MATRIX_HAS_GHOST
70
71 /* number of backlight levels */
72 // #define BACKLIGHT_LEVELS 3
73
74 /* Set 0 if debouncing isn't needed */
75 #define DEBOUNCING_DELAY 5
76
77 /* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
78 //#define LOCKING_SUPPORT_ENABLE
79 /* Locking resynchronize hack */
80 //#define LOCKING_RESYNC_ENABLE
81
82 /* ws2812 RGB LED */
83 #define RGB_DI_PIN D3
84
85 //#define RGBLED_NUM 12    // Number of LEDs. see ./keymaps/default/config.h
86
87 // Helix keyboard RGB LED support
88 //#define RGBLIGHT_ANIMATIONS : see ./rules.mk: LED_ANIMATIONS = yes or no
89 //    see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes
90 #ifdef RGBLED_BACK
91   #if HELIX_ROWS == 4
92     #define RGBLED_NUM 25
93   #else
94     #define RGBLED_NUM 32
95   #endif
96 #else
97   #define RGBLED_NUM 6
98 #endif
99
100 #ifndef IOS_DEVICE_ENABLE
101   #if RGBLED_NUM <= 6
102     #define RGBLIGHT_LIMIT_VAL 255
103   #else
104     #if HELIX_ROWS == 4
105       #define RGBLIGHT_LIMIT_VAL 130
106     #else
107       #define RGBLIGHT_LIMIT_VAL 120
108     #endif
109   #endif
110   #define RGBLIGHT_VAL_STEP 17
111 #else
112   #if RGBLED_NUM <= 6
113     #define RGBLIGHT_LIMIT_VAL 90
114   #else
115     #if HELIX_ROWS == 4
116       #define RGBLIGHT_LIMIT_VAL 45
117     #else
118       #define RGBLIGHT_LIMIT_VAL 35
119     #endif
120   #endif
121   #define RGBLIGHT_VAL_STEP 4
122 #endif
123 #define RGBLIGHT_HUE_STEP 10
124 #define RGBLIGHT_SAT_STEP 17
125
126 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
127 // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
128 //  120  RGBoff, OLEDoff
129 //  120  OLED
130 //  330  RGB 6
131 //  300  RGB 32
132 //  310  OLED & RGB 32
133   #define USB_MAX_POWER_CONSUMPTION 400
134 #else
135   // fix iPhone and iPad power adapter issue
136   // iOS device need lessthan 100
137   #define USB_MAX_POWER_CONSUMPTION 100
138 #endif
139
140 /*
141  * Feature disable options
142  *  These options are also useful to firmware size reduction.
143  */
144
145 /* disable debug print */
146 // #define NO_DEBUG
147
148 /* disable print */
149 // #define NO_PRINT
150
151 /* disable action features */
152 //#define NO_ACTION_LAYER
153 //#define NO_ACTION_TAPPING
154 //#define NO_ACTION_ONESHOT
155 //#define NO_ACTION_MACRO
156 //#define NO_ACTION_FUNCTION
157
158 #endif