diff options
Diffstat (limited to 'keyboards/ergodox/infinity/animations.c')
| -rw-r--r-- | keyboards/ergodox/infinity/animations.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/keyboards/ergodox/infinity/animations.c b/keyboards/ergodox/infinity/animations.c index ebc08fde3..faac96215 100644 --- a/keyboards/ergodox/infinity/animations.c +++ b/keyboards/ergodox/infinity/animations.c | |||
| @@ -26,7 +26,7 @@ | |||
| 26 | #endif | 26 | #endif |
| 27 | 27 | ||
| 28 | #ifdef BACKLIGHT_ENABLE | 28 | #ifdef BACKLIGHT_ENABLE |
| 29 | #include "led_keyframes.h" | 29 | #include "led_backlight_keyframes.h" |
| 30 | #endif | 30 | #endif |
| 31 | 31 | ||
| 32 | #include "visualizer_keyframes.h" | 32 | #include "visualizer_keyframes.h" |
| @@ -39,10 +39,10 @@ static bool keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* | |||
| 39 | lcd_keyframe_enable(animation, state); | 39 | lcd_keyframe_enable(animation, state); |
| 40 | #endif | 40 | #endif |
| 41 | #ifdef LCD_BACKLIGHT_ENABLE | 41 | #ifdef LCD_BACKLIGHT_ENABLE |
| 42 | backlight_keyframe_enable(animation, state); | 42 | lcd_backlight_keyframe_enable(animation, state); |
| 43 | #endif | 43 | #endif |
| 44 | #ifdef BACKLIGHT_ENABLE | 44 | #ifdef BACKLIGHT_ENABLE |
| 45 | led_keyframe_enable(animation, state); | 45 | led_backlight_keyframe_enable(animation, state); |
| 46 | #endif | 46 | #endif |
| 47 | return false; | 47 | return false; |
| 48 | } | 48 | } |
| @@ -52,10 +52,10 @@ static bool keyframe_disable(keyframe_animation_t* animation, visualizer_state_t | |||
| 52 | lcd_keyframe_disable(animation, state); | 52 | lcd_keyframe_disable(animation, state); |
| 53 | #endif | 53 | #endif |
| 54 | #ifdef LCD_BACKLIGHT_ENABLE | 54 | #ifdef LCD_BACKLIGHT_ENABLE |
| 55 | backlight_keyframe_disable(animation, state); | 55 | lcd_backlight_keyframe_disable(animation, state); |
| 56 | #endif | 56 | #endif |
| 57 | #ifdef BACKLIGHT_ENABLE | 57 | #ifdef BACKLIGHT_ENABLE |
| 58 | led_keyframe_disable(animation, state); | 58 | led_backlight_keyframe_disable(animation, state); |
| 59 | #endif | 59 | #endif |
| 60 | return false; | 60 | return false; |
| 61 | } | 61 | } |
| @@ -63,10 +63,10 @@ static bool keyframe_disable(keyframe_animation_t* animation, visualizer_state_t | |||
| 63 | static bool keyframe_fade_in(keyframe_animation_t* animation, visualizer_state_t* state) { | 63 | static bool keyframe_fade_in(keyframe_animation_t* animation, visualizer_state_t* state) { |
| 64 | bool ret = false; | 64 | bool ret = false; |
| 65 | #ifdef LCD_BACKLIGHT_ENABLE | 65 | #ifdef LCD_BACKLIGHT_ENABLE |
| 66 | ret |= backlight_keyframe_animate_color(animation, state); | 66 | ret |= lcd_backlight_keyframe_animate_color(animation, state); |
| 67 | #endif | 67 | #endif |
| 68 | #ifdef BACKLIGHT_ENABLE | 68 | #ifdef BACKLIGHT_ENABLE |
| 69 | ret |= led_keyframe_fade_in_all(animation, state); | 69 | ret |= led_backlight_keyframe_fade_in_all(animation, state); |
| 70 | #endif | 70 | #endif |
| 71 | return ret; | 71 | return ret; |
| 72 | } | 72 | } |
| @@ -74,10 +74,10 @@ static bool keyframe_fade_in(keyframe_animation_t* animation, visualizer_state_t | |||
| 74 | static bool keyframe_fade_out(keyframe_animation_t* animation, visualizer_state_t* state) { | 74 | static bool keyframe_fade_out(keyframe_animation_t* animation, visualizer_state_t* state) { |
| 75 | bool ret = false; | 75 | bool ret = false; |
| 76 | #ifdef LCD_BACKLIGHT_ENABLE | 76 | #ifdef LCD_BACKLIGHT_ENABLE |
| 77 | ret |= backlight_keyframe_animate_color(animation, state); | 77 | ret |= lcd_backlight_keyframe_animate_color(animation, state); |
| 78 | #endif | 78 | #endif |
| 79 | #ifdef BACKLIGHT_ENABLE | 79 | #ifdef BACKLIGHT_ENABLE |
| 80 | ret |= led_keyframe_fade_out_all(animation, state); | 80 | ret |= led_backlight_keyframe_fade_out_all(animation, state); |
| 81 | #endif | 81 | #endif |
| 82 | return ret; | 82 | return ret; |
| 83 | } | 83 | } |
| @@ -133,20 +133,20 @@ keyframe_animation_t led_test_animation = { | |||
| 133 | 133 | ||
| 134 | }, | 134 | }, |
| 135 | .frame_functions = { | 135 | .frame_functions = { |
| 136 | led_keyframe_fade_in_all, | 136 | led_backlight_keyframe_fade_in_all, |
| 137 | keyframe_no_operation, | 137 | keyframe_no_operation, |
| 138 | led_keyframe_fade_out_all, | 138 | led_backlight_keyframe_fade_out_all, |
| 139 | led_keyframe_crossfade, | 139 | led_backlight_keyframe_crossfade, |
| 140 | led_keyframe_left_to_right_gradient, | 140 | led_backlight_keyframe_left_to_right_gradient, |
| 141 | led_keyframe_crossfade, | 141 | led_backlight_keyframe_crossfade, |
| 142 | led_keyframe_top_to_bottom_gradient, | 142 | led_backlight_keyframe_top_to_bottom_gradient, |
| 143 | led_keyframe_mirror_orientation, | 143 | led_backlight_keyframe_mirror_orientation, |
| 144 | led_keyframe_crossfade, | 144 | led_backlight_keyframe_crossfade, |
| 145 | led_keyframe_left_to_right_gradient, | 145 | led_backlight_keyframe_left_to_right_gradient, |
| 146 | led_keyframe_crossfade, | 146 | led_backlight_keyframe_crossfade, |
| 147 | led_keyframe_top_to_bottom_gradient, | 147 | led_backlight_keyframe_top_to_bottom_gradient, |
| 148 | led_keyframe_normal_orientation, | 148 | led_backlight_keyframe_normal_orientation, |
| 149 | led_keyframe_crossfade, | 149 | led_backlight_keyframe_crossfade, |
| 150 | }, | 150 | }, |
| 151 | }; | 151 | }; |
| 152 | #endif | 152 | #endif |
