diff options
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/rgblight.c | 7 | ||||
| -rw-r--r-- | quantum/rgblight.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index 6b58f6654..00620da58 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c | |||
| @@ -253,6 +253,13 @@ void rgblight_toggle(void) { | |||
| 253 | } | 253 | } |
| 254 | } | 254 | } |
| 255 | 255 | ||
| 256 | void rgblight_enable(void) { | ||
| 257 | rgblight_config.enable = 1; | ||
| 258 | eeconfig_update_rgblight(rgblight_config.raw); | ||
| 259 | xprintf("rgblight enable: rgblight_config.enable = %u\n", rgblight_config.enable); | ||
| 260 | rgblight_mode(rgblight_config.mode); | ||
| 261 | } | ||
| 262 | |||
| 256 | 263 | ||
| 257 | void rgblight_increase_hue(void) { | 264 | void rgblight_increase_hue(void) { |
| 258 | uint16_t hue; | 265 | uint16_t hue; |
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index 330c2fe1b..a3673348e 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
| @@ -61,6 +61,7 @@ void rgblight_init(void); | |||
| 61 | void rgblight_increase(void); | 61 | void rgblight_increase(void); |
| 62 | void rgblight_decrease(void); | 62 | void rgblight_decrease(void); |
| 63 | void rgblight_toggle(void); | 63 | void rgblight_toggle(void); |
| 64 | void rgblight_enable(void); | ||
| 64 | void rgblight_step(void); | 65 | void rgblight_step(void); |
| 65 | void rgblight_mode(uint8_t mode); | 66 | void rgblight_mode(uint8_t mode); |
| 66 | void rgblight_set(void); | 67 | void rgblight_set(void); |
