]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/helix/rev2/keymaps/led_test/config.h
Helix keyboard led test as a keymap (#2513)
[qmk_firmware.git] / keyboards / helix / rev2 / keymaps / led_test / config.h
1 /*
2 This is the c configuration file for the keymap
3
4 Copyright 2012 Jun Wako <wakojun@gmail.com>
5 Copyright 2015 Jack Humbert
6
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.
11
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.
16
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/>.
19 */
20
21 #ifndef CONFIG_USER_H
22 #define CONFIG_USER_H
23
24 #include "../../config.h"
25
26 /* Use I2C or Serial */
27
28 #define USE_I2C
29 #define USE_SERIAL
30 //#define USE_MATRIX_I2C
31
32 /* Select hand configuration */
33
34 #define MASTER_LEFT
35 // #define MASTER_RIGHT
36 // #define EE_HANDS
37
38 // Helix keyboard OLED support
39 #define SSD1306OLED
40
41 /* Select rows configuration */
42 // Rows are 4 or 5
43 #define HELIX_ROWS 5
44
45 /* key matrix size */
46 // Rows are doubled-up
47 #if  HELIX_ROWS == 4
48   #define MATRIX_ROWS 8
49   #define MATRIX_COLS 7
50   #define MATRIX_ROW_PINS { D4, C6, D7, E6 }
51 #elif HELIX_ROWS == 5
52   #define MATRIX_ROWS 10
53   #define MATRIX_COLS 7
54   #define MATRIX_ROW_PINS { D4, C6, D7, E6, B4 }
55 #else
56   #error "expected HELIX_ROWS 4 or 5"
57 #endif
58
59 #define USE_SERIAL_PD2
60
61 #define PREVENT_STUCK_MODIFIERS
62 #define TAPPING_FORCE_HOLD
63 #define TAPPING_TERM 100
64
65
66 #undef RGBLED_NUM
67 #define RGBLIGHT_ANIMATIONS
68 // Helix keyboard : see ./rules.mk: RGBLIGHT_ENABLE = yes or no
69 // Helix keyboard : RGBLED_NUM 6 or 32
70 #define RGBLED_NUM 32
71 #if RGBLED_NUM <= 6
72   #define RGBLIGHT_LIMIT_VAL 255
73 #else
74   #if HELIX_ROWS == 5
75     #define RGBLIGHT_LIMIT_VAL 120
76   #else
77     #define RGBLIGHT_LIMIT_VAL 130
78   #endif
79 #endif
80 #define RGBLIGHT_HUE_STEP 10
81 #define RGBLIGHT_SAT_STEP 17
82 #define RGBLIGHT_VAL_STEP 17
83 #endif
84
85 #ifdef RGBLIGHT_ENABLE
86 // USB_MAX_POWER_CONSUMPTION value for Helix keyboard
87 //  120  RGBoff, OLEDoff
88 //  120  OLED
89 //  330  RGB 6
90 //  300  RGB 32
91 //  310  OLED & RGB 32
92   #define USB_MAX_POWER_CONSUMPTION 330
93 #else
94   // fix iPhone and iPad power adapter issue
95   // iOS device need lessthan 100
96   #define USB_MAX_POWER_CONSUMPTION 100
97 #endif