Commit | Line | Data |
---|---|---|
d90038eb | 1 | /* Wait between tap_code register and unregister to fix flaky media keys. */ |
c70016ee JR |
2 | #undef TAP_CODE_DELAY |
3 | ||
d90038eb | 4 | #define TAP_CODE_DELAY 20 |
c70016ee | 5 | |
c23581d9 JR |
6 | /* Extend default tap timeout because I'm too slow. :) */ |
7 | #undef TAPPING_TERM | |
8 | ||
9 | #define TAPPING_TERM 250 | |
10 | ||
a41066be JR |
11 | /* |
12 | * Treat mod-tap keys as holds even if the mod-tap key and the key being | |
13 | * modified are both relased within TAPPING_TERM. This assumes the mod-tap key | |
14 | * isn't usually pressed in quick succession with other tapped keys, which is | |
15 | * good when the tap keycode is something like KC_ESC rather than a letter. | |
16 | */ | |
17 | #define PERMISSIVE_HOLD | |
18 | ||
19 | /* | |
20 | * Turn off key repeat support of the tap keycode for tap-hold keys, enabling | |
21 | * holds to work correctly in quick succession after taps. | |
22 | */ | |
23 | #define TAPPING_FORCE_HOLD | |
24 | ||
d90038eb | 25 | #if defined(RGBLIGHT_ENABLE) |
a41066be JR |
26 | /* Turn off RGB underglow when the host goes to sleep. */ |
27 | #define RGBLIGHT_SLEEP | |
fcb56534 | 28 | |
a41066be JR |
29 | /* Keep RGB underglow level increments consistent across keyboards. */ |
30 | #undef RGBLIGHT_HUE_STEP | |
31 | #undef RGBLIGHT_SAT_STEP | |
32 | #undef RGBLIGHT_VAL_STEP | |
fcb56534 | 33 | |
a41066be JR |
34 | #define RGBLIGHT_HUE_STEP 8 |
35 | #define RGBLIGHT_SAT_STEP 17 | |
36 | #define RGBLIGHT_VAL_STEP 17 | |
d90038eb | 37 | #endif |
fcb56534 | 38 | |
d90038eb | 39 | #if defined(BACKLIGHT_ENABLE) |
a41066be JR |
40 | /* Enable backlight breathing across the board. */ |
41 | #define BACKLIGHT_BREATHING | |
fcb56534 | 42 | |
a41066be JR |
43 | /* Keep backlight level increments consistent across keyboards. */ |
44 | #undef BACKLIGHT_LEVELS | |
fcb56534 | 45 | |
a41066be | 46 | #define BACKLIGHT_LEVELS 7 |
d90038eb | 47 | #endif |
fcb56534 | 48 | |
d90038eb | 49 | #if defined(MOUSEKEY_ENABLE) |
a41066be JR |
50 | /* Make mouse operation smoother. */ |
51 | #undef MOUSEKEY_DELAY | |
52 | #undef MOUSEKEY_INTERVAL | |
53 | ||
54 | #define MOUSEKEY_DELAY 0 | |
55 | #define MOUSEKEY_INTERVAL 16 | |
56 | ||
57 | /* Lower mouse speed to adjust for reduced MOUSEKEY_INTERVAL. */ | |
58 | #undef MOUSEKEY_MAX_SPEED | |
59 | #undef MOUSEKEY_TIME_TO_MAX | |
60 | #undef MOUSEKEY_WHEEL_MAX_SPEED | |
61 | #undef MOUSEKEY_WHEEL_TIME_TO_MAX | |
62 | ||
63 | #define MOUSEKEY_MAX_SPEED 7 | |
64 | #define MOUSEKEY_TIME_TO_MAX 150 | |
65 | #define MOUSEKEY_WHEEL_MAX_SPEED 3 | |
66 | #define MOUSEKEY_WHEEL_TIME_TO_MAX 150 | |
d90038eb JR |
67 | #endif |
68 | ||
69 | #if defined(KEYBOARD_cannonkeys_instant60) | |
a41066be JR |
70 | /* |
71 | * Work around EEPROM incompatibility with VIA: | |
72 | * https://github.com/qmk/qmk_firmware/issues/6589#issuecomment-524042457. | |
73 | */ | |
74 | #undef EEPROM_MAGIC_ADDR | |
75 | #undef EEPROM_VERSION_ADDR | |
76 | #undef DYNAMIC_KEYMAP_EEPROM_ADDR | |
77 | #undef EEPROM_CUSTOM_BACKLIGHT | |
78 | #undef DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR | |
79 | ||
80 | #define EEPROM_MAGIC_ADDR 34 | |
81 | #define EEPROM_VERSION_ADDR 36 | |
82 | #define DYNAMIC_KEYMAP_EEPROM_ADDR 37 | |
83 | #define EEPROM_CUSTOM_BACKLIGHT 637 | |
84 | #define DYNAMIC_KEYMAP_MACRO_EEPROM_ADDR 638 | |
d90038eb | 85 | #endif |