From 4580d3a730c078484ea417575c617c17598b5a39 Mon Sep 17 00:00:00 2001 From: skullydazed Date: Wed, 6 Sep 2017 14:49:19 -0700 Subject: RGB improvements (#1684) * Allow the knight animation to be restricted to a portion of the LED strip * Add keys for jumping directly to particular animation modes * Remove orphaned break statements * Tweak the `RGB_MODE` buttons so they cycle through the same mode. * small indentation fix --- quantum/rgblight.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'quantum/rgblight.h') diff --git a/quantum/rgblight.h b/quantum/rgblight.h index d0dd6e4903..7acd5a2577 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h @@ -23,16 +23,21 @@ #endif #ifndef RGBLIGHT_EFFECT_SNAKE_LENGTH -#define RGBLIGHT_EFFECT_SNAKE_LENGTH 7 +#define RGBLIGHT_EFFECT_SNAKE_LENGTH 4 #endif #ifndef RGBLIGHT_EFFECT_KNIGHT_LENGTH -#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 7 +#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3 #endif + #ifndef RGBLIGHT_EFFECT_KNIGHT_OFFSET #define RGBLIGHT_EFFECT_KNIGHT_OFFSET 0 #endif +#ifndef RGBLIGHT_EFFECT_KNIGHT_LED_NUM +#define RGBLIGHT_EFFECT_KNIGHT_LED_NUM RGBLED_NUM +#endif + #ifndef RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL #define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000 #endif @@ -85,6 +90,7 @@ void rgblight_toggle(void); void rgblight_enable(void); void rgblight_step(void); void rgblight_step_reverse(void); +uint32_t rgblight_get_mode(void); void rgblight_mode(uint8_t mode); void rgblight_set(void); void rgblight_update_dword(uint32_t dword); -- cgit v1.2.3