summaryrefslogtreecommitdiffstats
path: root/quantum/rgblight.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/rgblight.c')
-rw-r--r--quantum/rgblight.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c
index f91f3caff5..7e057b63e8 100644
--- a/quantum/rgblight.c
+++ b/quantum/rgblight.c
@@ -219,6 +219,14 @@ void rgblight_step(void) {
}
rgblight_mode(mode);
}
+void rgblight_step_reverse(void) {
+ uint8_t mode = 0;
+ mode = rgblight_config.mode - 1;
+ if (mode < 1) {
+ mode = RGBLIGHT_MODES;
+ }
+ rgblight_mode(mode);
+}
void rgblight_mode(uint8_t mode) {
if (!rgblight_config.enable) {