diff options
| author | Joshua Diamond <josh@windowoffire.com> | 2020-05-09 04:38:33 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 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)
* 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 <18669334+noroadsleft@users.noreply.github.com>
* Update docs/feature_rgblight.md per suggestions
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* Update docs/feature_rgblight.md per suggestions
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
* cformat, as suggested
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
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 b1585b158..e06073728 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
| @@ -192,6 +192,12 @@ bool rgblight_get_layer_state(uint8_t layer); | |||
| 192 | 192 | ||
| 193 | // Point this to an array of rgblight_segment_t arrays in keyboard_post_init_user to use rgblight layers | 193 | // Point this to an array of rgblight_segment_t arrays in keyboard_post_init_user to use rgblight layers |
| 194 | extern const rgblight_segment_t *const *rgblight_layers; | 194 | extern const rgblight_segment_t *const *rgblight_layers; |
| 195 | |||
| 196 | # ifdef RGBLIGHT_LAYER_BLINK | ||
| 197 | # define RGBLIGHT_USE_TIMER | ||
| 198 | void rgblight_blink_layer(uint8_t layer, uint16_t duration_ms); | ||
| 199 | # endif | ||
| 200 | |||
| 195 | # endif | 201 | # endif |
| 196 | 202 | ||
| 197 | extern LED_TYPE led[RGBLED_NUM]; | 203 | extern LED_TYPE led[RGBLED_NUM]; |
