aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/rgblight.h
diff options
context:
space:
mode:
authorJoshua Diamond <josh@windowoffire.com>2020-05-09 04:38:33 -0400
committerGitHub <noreply@github.com>2020-05-09 01:38:33 -0700
commite0f548085cc9c29e85122d393e74143eb5de1d4d (patch)
tree0a881564362e8966376611da7b0db6e5bd6e597d /quantum/rgblight.h
parent94fc32f43135ac4afb14849c7fb5e99f95455078 (diff)
downloadfirmware-e0f548085cc9c29e85122d393e74143eb5de1d4d.tar.gz
firmware-e0f548085cc9c29e85122d393e74143eb5de1d4d.tar.bz2
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.h6
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);
// 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];