converted to new format
This commit is contained in:
parent
3d7aaa31e4
commit
2e23689b8e
4 changed files with 217 additions and 126 deletions
|
@ -183,6 +183,19 @@ void rgblight_init(void) {
|
|||
}
|
||||
}
|
||||
|
||||
void rgblight_update_dword(uint32_t dword) {
|
||||
rgblight_config.raw = dword;
|
||||
eeconfig_update_rgblight(rgblight_config.raw);
|
||||
if (rgblight_config.enable)
|
||||
rgblight_mode(rgblight_config.mode);
|
||||
else {
|
||||
#ifdef RGBLIGHT_ANIMATIONS
|
||||
rgblight_timer_disable();
|
||||
#endif
|
||||
rgblight_set();
|
||||
}
|
||||
}
|
||||
|
||||
void rgblight_increase(void) {
|
||||
uint8_t mode = 0;
|
||||
if (rgblight_config.mode < RGBLIGHT_MODES) {
|
||||
|
|
|
@ -65,6 +65,7 @@ void rgblight_enable(void);
|
|||
void rgblight_step(void);
|
||||
void rgblight_mode(uint8_t mode);
|
||||
void rgblight_set(void);
|
||||
void rgblight_update_dword(uint32_t dword);
|
||||
void rgblight_increase_hue(void);
|
||||
void rgblight_decrease_hue(void);
|
||||
void rgblight_increase_sat(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue