|
@@ -26,7 +26,7 @@
|
|
|
#endif
|
|
|
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
-#include "led_keyframes.h"
|
|
|
+#include "led_backlight_keyframes.h"
|
|
|
#endif
|
|
|
|
|
|
#include "visualizer_keyframes.h"
|
|
@@ -39,10 +39,10 @@ static bool keyframe_enable(keyframe_animation_t* animation, visualizer_state_t*
|
|
|
lcd_keyframe_enable(animation, state);
|
|
|
#endif
|
|
|
#ifdef LCD_BACKLIGHT_ENABLE
|
|
|
- backlight_keyframe_enable(animation, state);
|
|
|
+ lcd_backlight_keyframe_enable(animation, state);
|
|
|
#endif
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
- led_keyframe_enable(animation, state);
|
|
|
+ led_backlight_keyframe_enable(animation, state);
|
|
|
#endif
|
|
|
return false;
|
|
|
}
|
|
@@ -52,10 +52,10 @@ static bool keyframe_disable(keyframe_animation_t* animation, visualizer_state_t
|
|
|
lcd_keyframe_disable(animation, state);
|
|
|
#endif
|
|
|
#ifdef LCD_BACKLIGHT_ENABLE
|
|
|
- backlight_keyframe_disable(animation, state);
|
|
|
+ lcd_backlight_keyframe_disable(animation, state);
|
|
|
#endif
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
- led_keyframe_disable(animation, state);
|
|
|
+ led_backlight_keyframe_disable(animation, state);
|
|
|
#endif
|
|
|
return false;
|
|
|
}
|
|
@@ -63,10 +63,10 @@ static bool keyframe_disable(keyframe_animation_t* animation, visualizer_state_t
|
|
|
static bool keyframe_fade_in(keyframe_animation_t* animation, visualizer_state_t* state) {
|
|
|
bool ret = false;
|
|
|
#ifdef LCD_BACKLIGHT_ENABLE
|
|
|
- ret |= backlight_keyframe_animate_color(animation, state);
|
|
|
+ ret |= lcd_backlight_keyframe_animate_color(animation, state);
|
|
|
#endif
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
- ret |= led_keyframe_fade_in_all(animation, state);
|
|
|
+ ret |= led_backlight_keyframe_fade_in_all(animation, state);
|
|
|
#endif
|
|
|
return ret;
|
|
|
}
|
|
@@ -74,10 +74,10 @@ static bool keyframe_fade_in(keyframe_animation_t* animation, visualizer_state_t
|
|
|
static bool keyframe_fade_out(keyframe_animation_t* animation, visualizer_state_t* state) {
|
|
|
bool ret = false;
|
|
|
#ifdef LCD_BACKLIGHT_ENABLE
|
|
|
- ret |= backlight_keyframe_animate_color(animation, state);
|
|
|
+ ret |= lcd_backlight_keyframe_animate_color(animation, state);
|
|
|
#endif
|
|
|
#ifdef BACKLIGHT_ENABLE
|
|
|
- ret |= led_keyframe_fade_out_all(animation, state);
|
|
|
+ ret |= led_backlight_keyframe_fade_out_all(animation, state);
|
|
|
#endif
|
|
|
return ret;
|
|
|
}
|
|
@@ -133,20 +133,20 @@ keyframe_animation_t led_test_animation = {
|
|
|
|
|
|
},
|
|
|
.frame_functions = {
|
|
|
- led_keyframe_fade_in_all,
|
|
|
+ led_backlight_keyframe_fade_in_all,
|
|
|
keyframe_no_operation,
|
|
|
- led_keyframe_fade_out_all,
|
|
|
- led_keyframe_crossfade,
|
|
|
- led_keyframe_left_to_right_gradient,
|
|
|
- led_keyframe_crossfade,
|
|
|
- led_keyframe_top_to_bottom_gradient,
|
|
|
- led_keyframe_mirror_orientation,
|
|
|
- led_keyframe_crossfade,
|
|
|
- led_keyframe_left_to_right_gradient,
|
|
|
- led_keyframe_crossfade,
|
|
|
- led_keyframe_top_to_bottom_gradient,
|
|
|
- led_keyframe_normal_orientation,
|
|
|
- led_keyframe_crossfade,
|
|
|
+ led_backlight_keyframe_fade_out_all,
|
|
|
+ led_backlight_keyframe_crossfade,
|
|
|
+ led_backlight_keyframe_left_to_right_gradient,
|
|
|
+ led_backlight_keyframe_crossfade,
|
|
|
+ led_backlight_keyframe_top_to_bottom_gradient,
|
|
|
+ led_backlight_keyframe_mirror_orientation,
|
|
|
+ led_backlight_keyframe_crossfade,
|
|
|
+ led_backlight_keyframe_left_to_right_gradient,
|
|
|
+ led_backlight_keyframe_crossfade,
|
|
|
+ led_backlight_keyframe_top_to_bottom_gradient,
|
|
|
+ led_backlight_keyframe_normal_orientation,
|
|
|
+ led_backlight_keyframe_crossfade,
|
|
|
},
|
|
|
};
|
|
|
#endif
|