Commit | Line | Data |
---|---|---|
8a330b33 L |
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 | #include "config_common.h" | |
22 | ||
e01b2d51 X |
23 | #define TAPPING_TERM 150 |
24 | ||
25 | /* Select hand configuration */ | |
26 | #define SOFT_SERIAL_PIN D3 | |
27 | #define EE_HANDS | |
28 | ||
29 | /* key matrix size */ | |
30 | // Rows are doubled-up | |
31 | #define MATRIX_ROWS 12 | |
32 | #define MATRIX_ROW_PINS { C6, B6, B5, B4, D7, E6} | |
33 | ||
34 | // wiring of each half | |
35 | #define MATRIX_COLS 7 | |
36 | #define MATRIX_COL_PINS { F0, F1, F4, F5, F6, F7, C7 } | |
37 | ||
e01b2d51 | 38 | /* Set 0 if debouncing isn't needed */ |
faaaa134 | 39 | #define DEBOUNCE 5 |
e01b2d51 | 40 | |
e01b2d51 X |
41 | #ifdef IOS_DEVICE_ENABLE |
42 | #define RGBLIGHT_LIMIT_VAL 40 | |
43 | #elif RGBLIGHT_FULL_POWER | |
44 | #define RGBLIGHT_LIMIT_VAL 255 | |
45 | #else | |
46 | #define RGBLIGHT_LIMIT_VAL 120 | |
47 | #endif | |
48 | #define RGB_MATRIX_MAXIMUM_BRIGHTNESS RGBLIGHT_LIMIT_VAL | |
49 | ||
50 | #define LED_HITS_TO_REMEMBER 5 | |
51 | ||
52 | #define RGBLIGHT_ANIMATIONS | |
53 | ||
54 | #if defined(RGBLIGHT_ENABLE) && !defined(IOS_DEVICE_ENABLE) | |
55 | // USB_MAX_POWER_CONSUMPTION value for Helix keyboard | |
56 | // 120 RGBoff, OLEDoff | |
57 | // 120 OLED | |
58 | // 330 RGB 6 | |
59 | // 300 RGB 32 | |
60 | // 310 OLED & RGB 32 | |
61 | #define USB_MAX_POWER_CONSUMPTION 500 | |
62 | #else | |
63 | // fix iPhone and iPad power adapter issue | |
64 | // iOS device need lessthan 100 | |
65 | #define USB_MAX_POWER_CONSUMPTION 100 | |
66 | #endif | |
67 | ||
68 | /* | |
69 | * Feature disable options | |
70 | * These options are also useful to firmware size reduction. | |
71 | */ | |
72 | ||
73 | /* disable debug print */ | |
74 | // #define NO_DEBUG | |
75 | ||
76 | /* disable print */ | |
77 | // #define NO_PRINT | |
78 | ||
79 | /* disable action features */ | |
80 | //#define NO_ACTION_LAYER | |
81 | //#define NO_ACTION_TAPPING | |
82 | //#define NO_ACTION_ONESHOT | |
83 | //#define NO_ACTION_MACRO | |
84 | //#define NO_ACTION_FUNCTION |