aboutsummaryrefslogtreecommitdiff
path: root/quantum/rgblight.h
diff options
context:
space:
mode:
authorskullydazed <skullydazed@users.noreply.github.com>2017-09-06 14:49:19 -0700
committerGitHub <noreply@github.com>2017-09-06 14:49:19 -0700
commit4580d3a730c078484ea417575c617c17598b5a39 (patch)
tree6b180261bde6124a189b054a0657faa480e571c5 /quantum/rgblight.h
parent0ce45eb0b7ad0af28de4418906543c51dbc505cc (diff)
downloadqmk_firmware-4580d3a730c078484ea417575c617c17598b5a39.tar.gz
qmk_firmware-4580d3a730c078484ea417575c617c17598b5a39.zip
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
Diffstat (limited to 'quantum/rgblight.h')
-rw-r--r--quantum/rgblight.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h
index d0dd6e490..7acd5a257 100644
--- a/quantum/rgblight.h
+++ b/quantum/rgblight.h
@@ -23,16 +23,21 @@
23#endif 23#endif
24 24
25#ifndef RGBLIGHT_EFFECT_SNAKE_LENGTH 25#ifndef RGBLIGHT_EFFECT_SNAKE_LENGTH
26#define RGBLIGHT_EFFECT_SNAKE_LENGTH 7 26#define RGBLIGHT_EFFECT_SNAKE_LENGTH 4
27#endif 27#endif
28 28
29#ifndef RGBLIGHT_EFFECT_KNIGHT_LENGTH 29#ifndef RGBLIGHT_EFFECT_KNIGHT_LENGTH
30#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 7 30#define RGBLIGHT_EFFECT_KNIGHT_LENGTH 3
31#endif 31#endif
32
32#ifndef RGBLIGHT_EFFECT_KNIGHT_OFFSET 33#ifndef RGBLIGHT_EFFECT_KNIGHT_OFFSET
33#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 0 34#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 0
34#endif 35#endif
35 36
37#ifndef RGBLIGHT_EFFECT_KNIGHT_LED_NUM
38#define RGBLIGHT_EFFECT_KNIGHT_LED_NUM RGBLED_NUM
39#endif
40
36#ifndef RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 41#ifndef RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL
37#define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000 42#define RGBLIGHT_EFFECT_CHRISTMAS_INTERVAL 1000
38#endif 43#endif
@@ -85,6 +90,7 @@ void rgblight_toggle(void);
85void rgblight_enable(void); 90void rgblight_enable(void);
86void rgblight_step(void); 91void rgblight_step(void);
87void rgblight_step_reverse(void); 92void rgblight_step_reverse(void);
93uint32_t rgblight_get_mode(void);
88void rgblight_mode(uint8_t mode); 94void rgblight_mode(uint8_t mode);
89void rgblight_set(void); 95void rgblight_set(void);
90void rgblight_update_dword(uint32_t dword); 96void rgblight_update_dword(uint32_t dword);