diff options
author | Joshua Diamond <[email protected]> | 2020-05-09 04:38:33 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-05-09 01:38:33 -0700 |
commit | e0f548085cc9c29e85122d393e74143eb5de1d4d (patch) | |
tree | 0a881564362e8966376611da7b0db6e5bd6e597d /quantum/rgblight.h | |
parent | 94fc32f43135ac4afb14849c7fb5e99f95455078 (diff) | |
download | qmk_firmware-e0f548085cc9c29e85122d393e74143eb5de1d4d.tar.gz qmk_firmware-e0f548085cc9c29e85122d393e74143eb5de1d4d.zip |
Add ability to blink lighting layer for a specified duration (#8760)0.8.149
* Implement momentarily blink of lighting layers
* Refactor spidey3 userspace to use rgb layer blink
* Remove un-necessary line from example in documentation
* Revert "Refactor spidey3 userspace to use rgb layer blink"
This reverts commit 831649bb680c41c6d663ae6fa86d13f4f8bebdd8.
* Adds a missing bit of documentation about lighting layer blink
* Update docs/feature_rgblight.md per suggestions
Co-authored-by: James Young <[email protected]>
* Update docs/feature_rgblight.md per suggestions
Co-authored-by: James Young <[email protected]>
* Update docs/feature_rgblight.md per suggestions
Co-authored-by: James Young <[email protected]>
* cformat, as suggested
Co-authored-by: James Young <[email protected]>
Diffstat (limited to 'quantum/rgblight.h')
-rw-r--r-- | quantum/rgblight.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index b1585b158b..e060737283 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h @@ -192,6 +192,12 @@ bool rgblight_get_layer_state(uint8_t layer); // Point this to an array of rgblight_segment_t arrays in keyboard_post_init_user to use rgblight layers extern const rgblight_segment_t *const *rgblight_layers; + +# ifdef RGBLIGHT_LAYER_BLINK +# define RGBLIGHT_USE_TIMER +void rgblight_blink_layer(uint8_t layer, uint16_t duration_ms); +# endif + # endif extern LED_TYPE led[RGBLED_NUM]; |