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/readme_rgb.md | |
| 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/readme_rgb.md')
| -rw-r--r-- | users/drashna/readme_rgb.md | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/users/drashna/readme_rgb.md b/users/drashna/readme_rgb.md new file mode 100644 index 000000000..acf01b051 --- /dev/null +++ b/users/drashna/readme_rgb.md | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | # Layer Indication Code | ||
| 2 | |||
| 3 | At least for RGB Light, the `layer_state_set` function is used to detect the current highest layer, and change the underglow based on that layer. | ||
| 4 | |||
| 5 | This works for both the regular layers, and for the default layers, too. | ||
| 6 | |||
| 7 | I use the sethsv variants of the commands, so that different modes can be used, as well. | ||
| 8 | |||
| 9 | RGB Matrix uses a custom, per board implementation, at the moment. | ||
| 10 | |||
| 11 | # RGB Light Startup Animation | ||
| 12 | |||
| 13 | On startup, if enabled, the board will cycle through the entire hue wheel, starting and ending on the default layer color. | ||
| 14 | |||
| 15 | ```c | ||
| 16 | void keyboard_post_init_rgb(void) { | ||
| 17 | #if defined(RGBLIGHT_ENABLE) && defined(RGBLIGHT_STARTUP_ANIMATION) | ||
| 18 | if (userspace_config.rgb_layer_change) { rgblight_enable_noeeprom(); } | ||
| 19 | if (rgblight_config.enable) { | ||
| 20 | layer_state_set_user(layer_state); | ||
| 21 | uint16_t old_hue = rgblight_config.hue; | ||
| 22 | rgblight_mode_noeeprom(RGBLIGHT_MODE_STATIC_LIGHT); | ||
| 23 | for (uint16_t i = 255; i > 0; i--) { | ||
| 24 | rgblight_sethsv_noeeprom( ( i + old_hue) % 255, 255, 255); | ||
| 25 | matrix_scan(); | ||
| 26 | wait_ms(10); | ||
| 27 | } | ||
| 28 | } | ||
| 29 | #endif | ||
| 30 | layer_state_set_user(layer_state); | ||
| 31 | } | ||
| 32 | ``` | ||
| 33 | |||
| 34 | This could probably benefit from some cleanup and better handling. | ||
| 35 | |||
| 36 | |||
| 37 | # RGB Light Twinkling | ||
| 38 | |||
| 39 | This enables random twinkling of the LEDs when typing. | ||
| 40 | |||
| 41 | # RGB Light Mod Indicators | ||
| 42 | |||
| 43 | Allows feedback of which mods (oneshot or otherwise) are enabled. | ||
