diff options
| author | Drashna Jaelre <drashna@live.com> | 2021-07-01 00:42:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-01 00:42:32 -0700 |
| commit | b7cf9a888a607dc024d74ee72c0ebbd8e0ddfdbe (patch) | |
| tree | 3510846d4d53682e5ec9b964d093ef97c0b33bc7 /users/drashna/config.h | |
| parent | bbe45185e30eb8d0e974f02b0ea809ed773221be (diff) | |
| download | qmk_firmware-b7cf9a888a607dc024d74ee72c0ebbd8e0ddfdbe.tar.gz qmk_firmware-b7cf9a888a607dc024d74ee72c0ebbd8e0ddfdbe.zip | |
Drashna's split updates (#13350)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'users/drashna/config.h')
| -rw-r--r-- | users/drashna/config.h | 167 |
1 files changed, 129 insertions, 38 deletions
diff --git a/users/drashna/config.h b/users/drashna/config.h index 796485689..445e18082 100644 --- a/users/drashna/config.h +++ b/users/drashna/config.h | |||
| @@ -17,34 +17,49 @@ | |||
| 17 | #pragma once | 17 | #pragma once |
| 18 | 18 | ||
| 19 | // Use custom magic number so that when switching branches, EEPROM always gets reset | 19 | // Use custom magic number so that when switching branches, EEPROM always gets reset |
| 20 | #define EECONFIG_MAGIC_NUMBER (uint16_t)0x1339 | 20 | #define EECONFIG_MAGIC_NUMBER (uint16_t)0x1339 |
| 21 | 21 | ||
| 22 | /* Set Polling rate to 1000Hz */ | 22 | /* Set Polling rate to 1000Hz */ |
| 23 | #define USB_POLLING_INTERVAL_MS 1 | 23 | #define USB_POLLING_INTERVAL_MS 1 |
| 24 | 24 | ||
| 25 | #if defined(SPLIT_KEYBOARD) | 25 | #if defined(SPLIT_KEYBOARD) |
| 26 | # define SPLIT_MODS_ENABLE | 26 | # define SPLIT_MODS_ENABLE |
| 27 | # define SPLIT_TRANSPORT_MIRROR | 27 | # define SPLIT_LAYER_STATE_ENABLE |
| 28 | # define SPLIT_LED_STATE_ENABLE | ||
| 29 | |||
| 30 | // # define SPLIT_TRANSPORT_MIRROR | ||
| 28 | # define SERIAL_USE_MULTI_TRANSACTION | 31 | # define SERIAL_USE_MULTI_TRANSACTION |
| 29 | // # define SPLIT_NUM_TRANSACTIONS_KB 2 | 32 | # define SPLIT_TRANSACTION_IDS_USER RPC_ID_USER_STATE_SYNC |
| 30 | #endif | 33 | #endif |
| 31 | 34 | ||
| 32 | #ifdef AUDIO_ENABLE | 35 | #ifdef AUDIO_ENABLE |
| 33 | |||
| 34 | # define AUDIO_CLICKY | 36 | # define AUDIO_CLICKY |
| 35 | # define STARTUP_SONG SONG(RICK_ROLL) | ||
| 36 | # define GOODBYE_SONG SONG(SONIC_RING) | ||
| 37 | # define DEFAULT_LAYER_SONGS \ | ||
| 38 | { SONG(QWERTY_SOUND), SONG(COLEMAK_SOUND), SONG(DVORAK_SOUND), SONG(OVERWATCH_THEME) } | ||
| 39 | |||
| 40 | # define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f | 37 | # define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f |
| 41 | 38 | ||
| 42 | # define UNICODE_SONG_MAC SONG(RICK_ROLL) | 39 | # ifdef USER_SONG_LIST |
| 43 | # define UNICODE_SONG_LNX SONG(RICK_ROLL) | 40 | # define STARTUP_SONG SONG(RICK_ROLL) |
| 44 | # define UNICODE_SONG_WIN SONG(RICK_ROLL) | 41 | # define GOODBYE_SONG SONG(SONIC_RING) |
| 45 | # define UNICODE_SONG_BSD SONG(RICK_ROLL) | 42 | # define DEFAULT_LAYER_SONGS \ |
| 46 | # define UNICODE_SONG_WINC SONG(RICK_ROLL) | 43 | { SONG(QWERTY_SOUND), SONG(COLEMAK_SOUND), SONG(DVORAK_SOUND), SONG(OVERWATCH_THEME) } |
| 47 | #endif // !AUDIO_ENABLE | 44 | # define UNICODE_SONG_MAC SONG(MARIO_THEME) |
| 45 | # define UNICODE_SONG_LNX SONG(MARIO_POWERUP) | ||
| 46 | # define UNICODE_SONG_WIN SONG(MARIO_ONEUP) | ||
| 47 | # define UNICODE_SONG_BSD SONG(RICK_ROLL) | ||
| 48 | # define UNICODE_SONG_WINC SONG(RICK_ROLL) | ||
| 49 | # else | ||
| 50 | # define STARTUP_SONG SONG(STARTUP_SOUND) | ||
| 51 | # define GOODBYE_SONG SONG(GOODBYE_SOUND) | ||
| 52 | # define DEFAULT_LAYER_SONGS \ | ||
| 53 | { SONG(QWERTY_SOUND), SONG(COLEMAK_SOUND), SONG(DVORAK_SOUND), SONG(WORKMAN_SOUND) } | ||
| 54 | # define UNICODE_SONG_MAC SONG(QWERTY_SOUND) | ||
| 55 | # define UNICODE_SONG_LNX SONG(COLEMAK_SOUND) | ||
| 56 | # define UNICODE_SONG_WIN SONG(DVORAK_SOUND) | ||
| 57 | # define UNICODE_SONG_BSD SONG(WORKMAN_SOUND) | ||
| 58 | # define UNICODE_SONG_WINC SONG(PLOVER_GOODBYE_SOUND) | ||
| 59 | # endif | ||
| 60 | #endif // !AUDIO_ENABLE | ||
| 61 | |||
| 62 | #define UNICODE_SELECTED_MODES UC_WIN, UC_MAC | ||
| 48 | 63 | ||
| 49 | #ifdef RGBLIGHT_ENABLE | 64 | #ifdef RGBLIGHT_ENABLE |
| 50 | # define RGBLIGHT_SLEEP | 65 | # define RGBLIGHT_SLEEP |
| @@ -56,18 +71,16 @@ | |||
| 56 | # else | 71 | # else |
| 57 | # define RGBLIGHT_ANIMATIONS | 72 | # define RGBLIGHT_ANIMATIONS |
| 58 | # endif | 73 | # endif |
| 59 | # define RGBLIGHT_EFFECT_TWINKLE_LIFE 250 | 74 | # define RGBLIGHT_EFFECT_TWINKLE_LIFE 250 |
| 60 | # define RGBLIGHT_EFFECT_TWINKLE_PROBABILITY 1/24 | 75 | # define RGBLIGHT_EFFECT_TWINKLE_PROBABILITY 1 / 24 |
| 61 | #endif // RGBLIGHT_ENABLE | 76 | #endif // RGBLIGHT_ENABLE |
| 62 | 77 | ||
| 63 | #ifdef RGB_MATRIX_ENABLE | 78 | #ifdef RGB_MATRIX_ENABLE |
| 64 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) | 79 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) |
| 65 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened) | 80 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened) |
| 66 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | 81 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS |
| 67 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | 82 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects |
| 68 | # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended | 83 | // # define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended |
| 69 | // # define RGB_MATRIX_MAXIMUM_BRIGHTNESS 200 // limits maximum brightness of LEDs to 200 out of 255. If not defined maximum brightness is set to 255 | ||
| 70 | // # define EECONFIG_RGB_MATRIX (uint32_t *)16 | ||
| 71 | 84 | ||
| 72 | # if defined(__AVR__) && !defined(__AVR_AT90USB1286__) && !defined(KEYBOARD_launchpad) | 85 | # if defined(__AVR__) && !defined(__AVR_AT90USB1286__) && !defined(KEYBOARD_launchpad) |
| 73 | # define DISABLE_RGB_MATRIX_ALPHAS_MODS | 86 | # define DISABLE_RGB_MATRIX_ALPHAS_MODS |
| @@ -107,8 +120,8 @@ | |||
| 107 | # define DISABLE_RGB_MATRIX_MULTISPLASH | 120 | # define DISABLE_RGB_MATRIX_MULTISPLASH |
| 108 | # define DISABLE_RGB_MATRIX_SOLID_SPLASH | 121 | # define DISABLE_RGB_MATRIX_SOLID_SPLASH |
| 109 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | 122 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH |
| 110 | # endif // AVR | 123 | # endif // AVR |
| 111 | #endif // RGB_MATRIX_ENABLE | 124 | #endif // RGB_MATRIX_ENABLE |
| 112 | 125 | ||
| 113 | #ifdef OLED_DRIVER_ENABLE | 126 | #ifdef OLED_DRIVER_ENABLE |
| 114 | # ifdef SPLIT_KEYBOARD | 127 | # ifdef SPLIT_KEYBOARD |
| @@ -120,7 +133,7 @@ | |||
| 120 | # ifdef OLED_FONT_H | 133 | # ifdef OLED_FONT_H |
| 121 | # undef OLED_FONT_H | 134 | # undef OLED_FONT_H |
| 122 | # endif | 135 | # endif |
| 123 | # define OLED_FONT_H "drashna_font.h" | 136 | # define OLED_FONT_H "drashna_font.h" |
| 124 | # define OLED_FONT_END 255 | 137 | # define OLED_FONT_END 255 |
| 125 | // # define OLED_FONT_5X5 | 138 | // # define OLED_FONT_5X5 |
| 126 | // # define OLED_FONT_AZTECH | 139 | // # define OLED_FONT_AZTECH |
| @@ -135,16 +148,16 @@ | |||
| 135 | 148 | ||
| 136 | #ifndef ONESHOT_TAP_TOGGLE | 149 | #ifndef ONESHOT_TAP_TOGGLE |
| 137 | # define ONESHOT_TAP_TOGGLE 2 | 150 | # define ONESHOT_TAP_TOGGLE 2 |
| 138 | #endif // !ONESHOT_TAP_TOGGLE | 151 | #endif // !ONESHOT_TAP_TOGGLE |
| 139 | 152 | ||
| 140 | #ifndef ONESHOT_TIMEOUT | 153 | #ifndef ONESHOT_TIMEOUT |
| 141 | # define ONESHOT_TIMEOUT 3000 | 154 | # define ONESHOT_TIMEOUT 3000 |
| 142 | #endif // !ONESHOT_TIMEOUT | 155 | #endif // !ONESHOT_TIMEOUT |
| 143 | 156 | ||
| 144 | #ifdef QMK_KEYS_PER_SCAN | 157 | #ifdef QMK_KEYS_PER_SCAN |
| 145 | # undef QMK_KEYS_PER_SCAN | 158 | # undef QMK_KEYS_PER_SCAN |
| 146 | # define QMK_KEYS_PER_SCAN 2 | 159 | # define QMK_KEYS_PER_SCAN 2 |
| 147 | #endif // !QMK_KEYS_PER_SCAN | 160 | #endif // !QMK_KEYS_PER_SCAN |
| 148 | 161 | ||
| 149 | // this makes it possible to do rolling combos (zx) with keys that | 162 | // this makes it possible to do rolling combos (zx) with keys that |
| 150 | // convert to other keys on hold (z becomes ctrl when you hold it, | 163 | // convert to other keys on hold (z becomes ctrl when you hold it, |
| @@ -152,8 +165,8 @@ | |||
| 152 | // actually sends Ctrl-x. That's bad.) | 165 | // actually sends Ctrl-x. That's bad.) |
| 153 | #define IGNORE_MOD_TAP_INTERRUPT | 166 | #define IGNORE_MOD_TAP_INTERRUPT |
| 154 | #undef PERMISSIVE_HOLD | 167 | #undef PERMISSIVE_HOLD |
| 155 | //#define TAPPING_FORCE_HOLD | 168 | //#define TAPPING_FORCE_HOLD_PER_KEY |
| 156 | //#define RETRO_TAPPING | 169 | //#define RETRO_TAPPING_PER_KEY |
| 157 | #ifndef KEYBOARD_kyria_rev1 | 170 | #ifndef KEYBOARD_kyria_rev1 |
| 158 | # define TAPPING_TERM_PER_KEY | 171 | # define TAPPING_TERM_PER_KEY |
| 159 | #endif | 172 | #endif |
| @@ -166,7 +179,7 @@ | |||
| 166 | 179 | ||
| 167 | #ifdef TAPPING_TERM | 180 | #ifdef TAPPING_TERM |
| 168 | # undef TAPPING_TERM | 181 | # undef TAPPING_TERM |
| 169 | #endif // TAPPING_TERM | 182 | #endif // TAPPING_TERM |
| 170 | #if defined(KEYBOARD_ergodox_ez) | 183 | #if defined(KEYBOARD_ergodox_ez) |
| 171 | # define TAPPING_TERM 185 | 184 | # define TAPPING_TERM 185 |
| 172 | #elif defined(KEYBOARD_crkbd) | 185 | #elif defined(KEYBOARD_crkbd) |
| @@ -185,14 +198,16 @@ | |||
| 185 | # undef LOCKING_RESYNC_ENABLE | 198 | # undef LOCKING_RESYNC_ENABLE |
| 186 | #endif | 199 | #endif |
| 187 | 200 | ||
| 201 | #define LAYER_STATE_16BIT | ||
| 202 | |||
| 188 | #ifdef CONVERT_TO_PROTON_C | 203 | #ifdef CONVERT_TO_PROTON_C |
| 189 | // pins that are available but not present on Pro Micro | 204 | // pins that are available but not present on Pro Micro |
| 190 | # define A3 PAL_LINE(GPIOA, 3) | 205 | # define A3 PAL_LINE(GPIOA, 3) |
| 191 | # define A4 PAL_LINE(GPIOA, 4) | 206 | # define A4 PAL_LINE(GPIOA, 4) |
| 192 | # define A5 PAL_LINE(GPIOA, 5) | 207 | # define A5 PAL_LINE(GPIOA, 5) |
| 193 | # define A6 PAL_LINE(GPIOA, 6) | 208 | # define A6 PAL_LINE(GPIOA, 6) |
| 194 | # define A7 PAL_LINE(GPIOA, 7) | 209 | # define A7 PAL_LINE(GPIOA, 7) |
| 195 | # define A8 PAL_LINE(GPIOA, 8) | 210 | # define A8 PAL_LINE(GPIOA, 8) |
| 196 | # define A13 PAL_LINE(GPIOA, 13) | 211 | # define A13 PAL_LINE(GPIOA, 13) |
| 197 | # define A14 PAL_LINE(GPIOA, 14) | 212 | # define A14 PAL_LINE(GPIOA, 14) |
| 198 | # define A15 PAL_LINE(GPIOA, 15) | 213 | # define A15 PAL_LINE(GPIOA, 15) |
| @@ -203,3 +218,79 @@ | |||
| 203 | # define C14 PAL_LINE(GPIOC, 14) | 218 | # define C14 PAL_LINE(GPIOC, 14) |
| 204 | # define C15 PAL_LINE(GPIOC, 15) | 219 | # define C15 PAL_LINE(GPIOC, 15) |
| 205 | #endif | 220 | #endif |
| 221 | |||
| 222 | #ifdef MOUSEKEY_ENABLE | ||
| 223 | // mouse movement config | ||
| 224 | # ifdef MK_3_SPEED | ||
| 225 | # undef MK_3_SPEED | ||
| 226 | # endif | ||
| 227 | # define MK_KINETIC_SPEED | ||
| 228 | # ifdef MK_KINETIC_SPEED | ||
| 229 | # ifndef MOUSEKEY_DELAY | ||
| 230 | # define MOUSEKEY_DELAY 8 | ||
| 231 | # endif | ||
| 232 | # ifndef MOUSEKEY_INTERVAL | ||
| 233 | # define MOUSEKEY_INTERVAL 20 | ||
| 234 | # endif | ||
| 235 | # ifdef MOUSEKEY_MOVE_DELTA | ||
| 236 | # define MOUSEKEY_MOVE_DELTA 25 | ||
| 237 | # endif | ||
| 238 | # else | ||
| 239 | # ifndef MOUSEKEY_DELAY | ||
| 240 | # define MOUSEKEY_DELAY 300 | ||
| 241 | # endif | ||
| 242 | # ifndef MOUSEKEY_INTERVAL | ||
| 243 | # define MOUSEKEY_INTERVAL 50 | ||
| 244 | # endif | ||
| 245 | # ifndef MOUSEKEY_MOVE_DELTA | ||
| 246 | # define MOUSEKEY_MOVE_DELTA 5 | ||
| 247 | # endif | ||
| 248 | # endif | ||
| 249 | # ifndef MOUSEKEY_MAX_SPEED | ||
| 250 | # define MOUSEKEY_MAX_SPEED 7 | ||
| 251 | # endif | ||
| 252 | # ifndef MOUSEKEY_TIME_TO_MAX | ||
| 253 | # define MOUSEKEY_TIME_TO_MAX 60 | ||
| 254 | # endif | ||
| 255 | # ifndef MOUSEKEY_INITIAL_SPEED | ||
| 256 | # define MOUSEKEY_INITIAL_SPEED 100 | ||
| 257 | # endif | ||
| 258 | # ifndef MOUSEKEY_BASE_SPEED | ||
| 259 | # define MOUSEKEY_BASE_SPEED 1000 | ||
| 260 | # endif | ||
| 261 | # ifndef MOUSEKEY_DECELERATED_SPEED | ||
| 262 | # define MOUSEKEY_DECELERATED_SPEED 400 | ||
| 263 | # endif | ||
| 264 | # ifndef MOUSEKEY_ACCELERATED_SPEED | ||
| 265 | # define MOUSEKEY_ACCELERATED_SPEED 3000 | ||
| 266 | # endif | ||
| 267 | // mouse scroll config | ||
| 268 | # ifndef MOUSEKEY_WHEEL_DELAY | ||
| 269 | # define MOUSEKEY_WHEEL_DELAY 15 | ||
| 270 | # endif | ||
| 271 | # ifndef MOUSEKEY_WHEEL_DELTA | ||
| 272 | # define MOUSEKEY_WHEEL_DELTA 1 | ||
| 273 | # endif | ||
| 274 | # ifndef MOUSEKEY_WHEEL_INTERVAL | ||
| 275 | # define MOUSEKEY_WHEEL_INTERVAL 50 | ||
| 276 | # endif | ||
| 277 | # ifndef MOUSEKEY_WHEEL_MAX_SPEED | ||
| 278 | # define MOUSEKEY_WHEEL_MAX_SPEED 8 | ||
| 279 | # endif | ||
| 280 | # ifndef MOUSEKEY_WHEEL_TIME_TO_MAX | ||
| 281 | # define MOUSEKEY_WHEEL_TIME_TO_MAX 80 | ||
| 282 | # endif | ||
| 283 | // mouse scroll kinetic config | ||
| 284 | # ifndef MOUSEKEY_WHEEL_INITIAL_MOVEMENTS | ||
| 285 | # define MOUSEKEY_WHEEL_INITIAL_MOVEMENTS 8 | ||
| 286 | # endif | ||
| 287 | # ifndef MOUSEKEY_WHEEL_BASE_MOVEMENTS | ||
| 288 | # define MOUSEKEY_WHEEL_BASE_MOVEMENTS 48 | ||
| 289 | # endif | ||
| 290 | # ifndef MOUSEKEY_WHEEL_ACCELERATED_MOVEMENTS | ||
| 291 | # define MOUSEKEY_WHEEL_ACCELERATED_MOVEMENTS 48 | ||
| 292 | # endif | ||
| 293 | # ifndef MOUSEKEY_WHEEL_DECELERATED_MOVEMENTS | ||
| 294 | # define MOUSEKEY_WHEEL_DECELERATED_MOVEMENTS 8 | ||
| 295 | # endif | ||
| 296 | #endif // MOUSEKEY_ENABLE | ||
