aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/visualizer/lcd_backlight_keyframes.c
diff options
context:
space:
mode:
authorGravatar Fred Sundvik <fsundvik@gmail.com>2017-04-05 09:21:18 +0300
committerGravatar Fred Sundvik <fsundvik@gmail.com>2017-04-09 18:34:59 +0300
commit1e7585e76771e1a2d8ca733fc09c19f9fa0e903c (patch)
treee4e5ebff65cd1f60fe4ecdd71501c05bff9b6b24 /quantum/visualizer/lcd_backlight_keyframes.c
parent5ba228b684a32c1099efc6207842a56ff102961a (diff)
downloadqmk_firmware-1e7585e76771e1a2d8ca733fc09c19f9fa0e903c.tar.gz
Separated backlight and LCD disable/enable
Also moved them to correct places
Diffstat (limited to 'quantum/visualizer/lcd_backlight_keyframes.c')
-rw-r--r--quantum/visualizer/lcd_backlight_keyframes.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/quantum/visualizer/lcd_backlight_keyframes.c b/quantum/visualizer/lcd_backlight_keyframes.c
index 096473708..8436d4e3d 100644
--- a/quantum/visualizer/lcd_backlight_keyframes.c
+++ b/quantum/visualizer/lcd_backlight_keyframes.c
@@ -59,3 +59,19 @@ bool backlight_keyframe_set_color(keyframe_animation_t* animation, visualizer_st
LCD_INT(state->current_lcd_color));
return false;
}
+
+bool backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state) {
+ (void)animation;
+ (void)state;
+ lcd_backlight_hal_color(0, 0, 0);
+ return false;
+}
+
+bool backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state) {
+ (void)animation;
+ (void)state;
+ lcd_backlight_color(LCD_HUE(state->current_lcd_color),
+ LCD_SAT(state->current_lcd_color),
+ LCD_INT(state->current_lcd_color));
+ return false;
+}