diff options
| author | Jack Humbert <jack.humb@gmail.com> | 2016-11-23 18:52:02 -0500 |
|---|---|---|
| committer | Jack Humbert <jack.humb@gmail.com> | 2016-11-23 18:52:02 -0500 |
| commit | 2e23689b8e3222982082c1f5a4f8ce7686f9658b (patch) | |
| tree | 397456339b357744d7d59d13b32055e2c9881f63 /quantum/rgblight.c | |
| parent | 3d7aaa31e41a9c96e785b0c089d74dfda525dfbe (diff) | |
| download | qmk_firmware-2e23689b8e3222982082c1f5a4f8ce7686f9658b.tar.gz qmk_firmware-2e23689b8e3222982082c1f5a4f8ce7686f9658b.zip | |
converted to new format
Diffstat (limited to 'quantum/rgblight.c')
| -rw-r--r-- | quantum/rgblight.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 00620da58..bb03d6e91 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c | |||
| @@ -183,6 +183,19 @@ void rgblight_init(void) { | |||
| 183 | } | 183 | } |
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | void rgblight_update_dword(uint32_t dword) { | ||
| 187 | rgblight_config.raw = dword; | ||
| 188 | eeconfig_update_rgblight(rgblight_config.raw); | ||
| 189 | if (rgblight_config.enable) | ||
| 190 | rgblight_mode(rgblight_config.mode); | ||
| 191 | else { | ||
| 192 | #ifdef RGBLIGHT_ANIMATIONS | ||
| 193 | rgblight_timer_disable(); | ||
| 194 | #endif | ||
| 195 | rgblight_set(); | ||
| 196 | } | ||
| 197 | } | ||
| 198 | |||
| 186 | void rgblight_increase(void) { | 199 | void rgblight_increase(void) { |
| 187 | uint8_t mode = 0; | 200 | uint8_t mode = 0; |
| 188 | if (rgblight_config.mode < RGBLIGHT_MODES) { | 201 | if (rgblight_config.mode < RGBLIGHT_MODES) { |
