diff options
| author | Drashna Jaelre <drashna@live.com> | 2019-07-22 20:22:33 -0700 |
|---|---|---|
| committer | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2019-07-22 20:22:33 -0700 |
| commit | d41961c9eddb78591d3b55ea65e6e0baff4bdd69 (patch) | |
| tree | a2e03c31b93dc35fbdb539c59de0d2f7c655f02f /users/drashna/config.h | |
| parent | 840b9090a0fd4faf070d9bbb9039337ecdb82de4 (diff) | |
| download | qmk_firmware-d41961c9eddb78591d3b55ea65e6e0baff4bdd69.tar.gz qmk_firmware-d41961c9eddb78591d3b55ea65e6e0baff4bdd69.zip | |
[Keymap] Drashna's Feature madness (#6128)
* Fix my Tap Dance issues after I broke them
* Cleanup and organization of userspace documentation
As well as some additional cleanup of functions due to review of documentation.
* Enable Tapdance on Glow and remove more animations
* Revert to Eager PR debouncing
* Add better check for startup animation
* Move where RGB Matrix defines are listed
* Limit RGB Matrix max val
* Update keyboard for Iris Rev 3 conflicts
* Enable encoder support on planck ez
* Remove is_master check from corne\'s OLED code
* Overhaul OLED screens for my Corne
* One last removal
* Show RGB valu On both sides
* Updates for OLED display info
* Fix compile issues for rgb config
* Disabled Space Cadet for all drashna keymaps
* Fix OLED Screen configs
* Minor OLED Tweaks
* Revert some Iris changes
* Fix song include
* Handle MAKE macro for the Corne boards better
* Add super hacky-hack for eeconfig initialization
* Add audio support for Fractal since Elite Cs support it
* Add defines for keycode steps
* Add White layout
* Update Corne RGB info
* Add fun effects to layer indication for RGB Matrix enabled boards
* Use proper define for product name detection
* Update formatting
* Use custom timeout mechanism for OLED timeout
* Fix up OLED screen HSV code for new HSV structure
* Better handle turning off RGB Matrix when sleeping
* Disable MultiSplash Animation
* Change Iris back to using serial
* Why was RGB disabled?!?!?!
* Limit val in rgb_matrix_layer_helper function
* Remove EECONFIG setting for RGB matrix
Diffstat (limited to 'users/drashna/config.h')
| -rw-r--r-- | users/drashna/config.h | 131 |
1 files changed, 89 insertions, 42 deletions
diff --git a/users/drashna/config.h b/users/drashna/config.h index a6d8e7526..8f6e700d2 100644 --- a/users/drashna/config.h +++ b/users/drashna/config.h | |||
| @@ -1,47 +1,95 @@ | |||
| 1 | #pragma once | 1 | #pragma once |
| 2 | 2 | ||
| 3 | |||
| 4 | #ifdef AUDIO_ENABLE | 3 | #ifdef AUDIO_ENABLE |
| 5 | # define AUDIO_CLICKY | 4 | # if __GNUC__ > 7 |
| 6 | # define STARTUP_SONG SONG(RICK_ROLL) | 5 | # if __has_include("drashna_song_list.h") |
| 7 | # define GOODBYE_SONG SONG(SONIC_RING) | 6 | # include "drashna_song_list.h" |
| 8 | # define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \ | 7 | # endif // if file exists |
| 9 | SONG(COLEMAK_SOUND), \ | 8 | # endif // __GNUC__ |
| 10 | SONG(DVORAK_SOUND), \ | 9 | |
| 11 | SONG(OVERWATCH_THEME) \ | 10 | # define AUDIO_CLICKY |
| 12 | } | 11 | # define STARTUP_SONG SONG(RICK_ROLL) |
| 13 | 12 | # define GOODBYE_SONG SONG(SONIC_RING) | |
| 14 | # define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f | 13 | # define DEFAULT_LAYER_SONGS \ |
| 15 | 14 | { SONG(QWERTY_SOUND), SONG(COLEMAK_SOUND), SONG(DVORAK_SOUND), SONG(OVERWATCH_THEME) } | |
| 16 | # define UNICODE_SONG_OSX SONG(RICK_ROLL) | 15 | |
| 17 | # define UNICODE_SONG_LNX SONG(RICK_ROLL) | 16 | # define AUDIO_CLICKY_FREQ_RANDOMNESS 1.5f |
| 18 | # define UNICODE_SONG_WIN SONG(RICK_ROLL) | 17 | |
| 19 | # define UNICODE_SONG_BSD SONG(RICK_ROLL) | 18 | # define UNICODE_SONG_OSX SONG(RICK_ROLL) |
| 20 | # define UNICODE_SONG_WINC SONG(RICK_ROLL) | 19 | # define UNICODE_SONG_LNX SONG(RICK_ROLL) |
| 21 | 20 | # define UNICODE_SONG_WIN SONG(RICK_ROLL) | |
| 22 | #endif // !AUDIO_ENABLE | 21 | # define UNICODE_SONG_BSD SONG(RICK_ROLL) |
| 22 | # define UNICODE_SONG_WINC SONG(RICK_ROLL) | ||
| 23 | #endif // !AUDIO_ENABLE | ||
| 23 | 24 | ||
| 24 | #ifdef RGBLIGHT_ENABLE | 25 | #ifdef RGBLIGHT_ENABLE |
| 25 | # define RGBLIGHT_SLEEP | 26 | # define RGBLIGHT_SLEEP |
| 26 | # undef RGBLIGHT_ANIMATIONS | 27 | # undef RGBLIGHT_ANIMATIONS |
| 27 | # define RGBLIGHT_EFFECT_BREATHING | 28 | # define RGBLIGHT_EFFECT_BREATHING |
| 28 | # define RGBLIGHT_EFFECT_SNAKE | 29 | # define RGBLIGHT_EFFECT_SNAKE |
| 29 | # define RGBLIGHT_EFFECT_KNIGHT | 30 | # define RGBLIGHT_EFFECT_KNIGHT |
| 30 | #endif // RGBLIGHT_ENABLE | 31 | #endif // RGBLIGHT_ENABLE |
| 32 | |||
| 33 | #ifdef RGB_MATRIX_ENABLE | ||
| 34 | # define RGB_MATRIX_KEYPRESSES // reacts to keypresses (will slow down matrix scan by a lot) | ||
| 35 | // # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (not recommened) | ||
| 36 | # define RGB_MATRIX_FRAMEBUFFER_EFFECTS | ||
| 37 | // # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects | ||
| 38 | # define RGB_DISABLE_WHEN_USB_SUSPENDED true // turn off effects when suspended | ||
| 39 | // # 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 | ||
| 40 | // # define EECONFIG_RGB_MATRIX (uint32_t *)16 | ||
| 41 | |||
| 42 | # if defined(__AVR__) && !defined(__AVR_AT90USB1286__) | ||
| 43 | # define DISABLE_RGB_MATRIX_ALPHAS_MODS | ||
| 44 | # define DISABLE_RGB_MATRIX_GRADIENT_UP_DOWN | ||
| 45 | # define DISABLE_RGB_MATRIX_BREATHING | ||
| 46 | # define DISABLE_RGB_MATRIX_BAND_SAT | ||
| 47 | # define DISABLE_RGB_MATRIX_BAND_VAL | ||
| 48 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_SAT | ||
| 49 | # define DISABLE_RGB_MATRIX_BAND_PINWHEEL_VAL | ||
| 50 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_SAT | ||
| 51 | # define DISABLE_RGB_MATRIX_BAND_SPIRAL_VAL | ||
| 52 | # define DISABLE_RGB_MATRIX_CYCLE_ALL | ||
| 53 | # define DISABLE_RGB_MATRIX_CYCLE_LEFT_RIGHT | ||
| 54 | # define DISABLE_RGB_MATRIX_CYCLE_UP_DOWN | ||
| 55 | # define DISABLE_RGB_MATRIX_CYCLE_OUT_IN | ||
| 56 | // # define DISABLE_RGB_MATRIX_CYCLE_OUT_IN_DUAL | ||
| 57 | # define DISABLE_RGB_MATRIX_RAINBOW_MOVING_CHEVRON | ||
| 58 | # define DISABLE_RGB_MATRIX_DUAL_BEACON | ||
| 59 | # define DISABLE_RGB_MATRIX_CYCLE_PINWHEEL | ||
| 60 | # define DISABLE_RGB_MATRIX_CYCLE_SPIRAL | ||
| 61 | # define DISABLE_RGB_MATRIX_RAINBOW_BEACON | ||
| 62 | # define DISABLE_RGB_MATRIX_RAINBOW_PINWHEELS | ||
| 63 | # define DISABLE_RGB_MATRIX_RAINDROPS | ||
| 64 | # define DISABLE_RGB_MATRIX_JELLYBEAN_RAINDROPS | ||
| 65 | // # define DISABLE_RGB_MATRIX_TYPING_HEATMAP | ||
| 66 | # define DISABLE_RGB_MATRIX_DIGITAL_RAIN | ||
| 67 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE | ||
| 68 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_SIMPLE | ||
| 69 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_WIDE | ||
| 70 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTIWIDE | ||
| 71 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_CROSS | ||
| 72 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTICROSS | ||
| 73 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_NEXUS | ||
| 74 | # define DISABLE_RGB_MATRIX_SOLID_REACTIVE_MULTINEXUS | ||
| 75 | # define DISABLE_RGB_MATRIX_SPLASH | ||
| 76 | # define DISABLE_RGB_MATRIX_MULTISPLASH | ||
| 77 | # define DISABLE_RGB_MATRIX_SOLID_SPLASH | ||
| 78 | # define DISABLE_RGB_MATRIX_SOLID_MULTISPLASH | ||
| 79 | # endif // AVR | ||
| 80 | #endif // RGB_MATRIX_ENABLE | ||
| 31 | 81 | ||
| 32 | #ifndef ONESHOT_TAP_TOGGLE | 82 | #ifndef ONESHOT_TAP_TOGGLE |
| 33 | # define ONESHOT_TAP_TOGGLE 2 | 83 | # define ONESHOT_TAP_TOGGLE 2 |
| 34 | #endif // !ONESHOT_TAP_TOGGLE | 84 | #endif // !ONESHOT_TAP_TOGGLE |
| 35 | 85 | ||
| 36 | #ifndef ONESHOT_TIMEOUT | 86 | #ifndef ONESHOT_TIMEOUT |
| 37 | # define ONESHOT_TIMEOUT 3000 | 87 | # define ONESHOT_TIMEOUT 3000 |
| 38 | #endif// !ONESHOT_TIMEOUT | 88 | #endif // !ONESHOT_TIMEOUT |
| 39 | 89 | ||
| 40 | #ifndef QMK_KEYS_PER_SCAN | 90 | #ifndef QMK_KEYS_PER_SCAN |
| 41 | # define QMK_KEYS_PER_SCAN 4 | 91 | # define QMK_KEYS_PER_SCAN 4 |
| 42 | #endif // !QMK_KEYS_PER_SCAN | 92 | #endif // !QMK_KEYS_PER_SCAN |
| 43 | |||
| 44 | |||
| 45 | 93 | ||
| 46 | // this makes it possible to do rolling combos (zx) with keys that | 94 | // this makes it possible to do rolling combos (zx) with keys that |
| 47 | // convert to other keys on hold (z becomes ctrl when you hold it, | 95 | // convert to other keys on hold (z becomes ctrl when you hold it, |
| @@ -55,27 +103,26 @@ | |||
| 55 | #define FORCE_NKRO | 103 | #define FORCE_NKRO |
| 56 | 104 | ||
| 57 | #ifndef TAPPING_TOGGLE | 105 | #ifndef TAPPING_TOGGLE |
| 58 | # define TAPPING_TOGGLE 1 | 106 | # define TAPPING_TOGGLE 1 |
| 59 | #endif | 107 | #endif |
| 60 | 108 | ||
| 61 | #ifdef TAPPING_TERM | 109 | #ifdef TAPPING_TERM |
| 62 | # undef TAPPING_TERM | 110 | # undef TAPPING_TERM |
| 63 | #endif // TAPPING_TERM | 111 | #endif // TAPPING_TERM |
| 64 | #if defined(KEYBOARD_ergodox_ez) | 112 | #if defined(KEYBOARD_ergodox_ez) |
| 65 | # define TAPPING_TERM 185 | 113 | # define TAPPING_TERM 185 |
| 66 | #elif defined(KEYBOARD_crkbd) | 114 | #elif defined(KEYBOARD_crkbd) |
| 67 | # define TAPPING_TERM 200 | 115 | # define TAPPING_TERM 200 |
| 68 | #else | 116 | #else |
| 69 | # define TAPPING_TERM 175 | 117 | # define TAPPING_TERM 175 |
| 70 | #endif | 118 | #endif |
| 71 | 119 | ||
| 72 | |||
| 73 | #define TAP_CODE_DELAY 5 | 120 | #define TAP_CODE_DELAY 5 |
| 74 | 121 | ||
| 75 | /* Disable unused and unneeded features to reduce on firmware size */ | 122 | /* Disable unused and unneeded features to reduce on firmware size */ |
| 76 | #ifdef LOCKING_SUPPORT_ENABLE | 123 | #ifdef LOCKING_SUPPORT_ENABLE |
| 77 | # undef LOCKING_SUPPORT_ENABLE | 124 | # undef LOCKING_SUPPORT_ENABLE |
| 78 | #endif | 125 | #endif |
| 79 | #ifdef LOCKING_RESYNC_ENABLE | 126 | #ifdef LOCKING_RESYNC_ENABLE |
| 80 | # undef LOCKING_RESYNC_ENABLE | 127 | # undef LOCKING_RESYNC_ENABLE |
| 81 | #endif | 128 | #endif |
