2 This is the c configuration file for the keymap
4 Copyright 2012 Jun Wako <wakojun@gmail.com>
5 Copyright 2015 Jack Humbert
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
24 #include "../../config.h"
26 /* Use I2C or Serial */
30 //#define USE_MATRIX_I2C
32 /* Select hand configuration */
35 // #define MASTER_RIGHT
38 // Helix keyboard OLED support
39 // see ./rules.mk: OLED_ENABLE=yes or no
44 /* Select rows configuration */
48 // Rows are doubled-up
52 #define MATRIX_ROW_PINS { D4, C6, D7, E6 }
54 #define MATRIX_ROWS 10
56 #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
58 #error "expected HELIX_ROWS 4 or 5"
61 #define USE_SERIAL_PD2
63 #define PREVENT_STUCK_MODIFIERS
64 #define TAPPING_FORCE_HOLD
65 #define TAPPING_TERM 100
68 // Helix keyboard RGB LED support
69 //#define RGBLIGHT_ANIMATIONS : see ./rules.mk: LED_ANIMATIONS = yes or no
70 // see ./rules.mk: LED_BACK_ENABLE or LED_UNDERGLOW_ENABLE set yes
81 #ifndef IOS_DEVICE_ENABLE
83 #define RGBLIGHT_LIMIT_VAL 255
86 #define RGBLIGHT_LIMIT_VAL 120
88 #define RGBLIGHT_LIMIT_VAL 130
91 #define RGBLIGHT_VAL_STEP 17
94 #define RGBLIGHT_LIMIT_VAL 90
97 #define RGBLIGHT_LIMIT_VAL 35
99 #define RGBLIGHT_LIMIT_VAL 45
102 #define RGBLIGHT_VAL_STEP 4
104 #define RGBLIGHT_HUE_STEP 10
105 #define RGBLIGHT_SAT_STEP 17
108 #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE)
109 // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
110 // 120 RGBoff, OLEDoff
115 #define USB_MAX_POWER_CONSUMPTION 400
117 // fix iPhone and iPad power adapter issue
118 // iOS device need lessthan 100
119 #define USB_MAX_POWER_CONSUMPTION 100
122 #endif /* CONFIG_USER_H */