diff options
Diffstat (limited to 'keyboards/ergodox/infinity/visualizer.c')
| -rw-r--r-- | keyboards/ergodox/infinity/visualizer.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/keyboards/ergodox/infinity/visualizer.c b/keyboards/ergodox/infinity/visualizer.c index 3abed08db..bbed4e989 100644 --- a/keyboards/ergodox/infinity/visualizer.c +++ b/keyboards/ergodox/infinity/visualizer.c | |||
| @@ -28,6 +28,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 28 | 28 | ||
| 29 | #include "visualizer.h" | 29 | #include "visualizer.h" |
| 30 | #include "lcd_keyframes.h" | 30 | #include "lcd_keyframes.h" |
| 31 | #include "lcd_backlight_keyframes.h" | ||
| 31 | #include "system/serial_link.h" | 32 | #include "system/serial_link.h" |
| 32 | 33 | ||
| 33 | // To generate an image array like this | 34 | // To generate an image array like this |
| @@ -140,7 +141,7 @@ static keyframe_animation_t startup_animation = { | |||
| 140 | .frame_lengths = {0, gfxMillisecondsToTicks(10000), 0}, | 141 | .frame_lengths = {0, gfxMillisecondsToTicks(10000), 0}, |
| 141 | .frame_functions = { | 142 | .frame_functions = { |
| 142 | display_logo, | 143 | display_logo, |
| 143 | keyframe_animate_backlight_color, | 144 | backlight_keyframe_animate_color, |
| 144 | enable_visualization | 145 | enable_visualization |
| 145 | }, | 146 | }, |
| 146 | }; | 147 | }; |
| @@ -150,7 +151,7 @@ static keyframe_animation_t one_led_color = { | |||
| 150 | .num_frames = 1, | 151 | .num_frames = 1, |
| 151 | .loop = false, | 152 | .loop = false, |
| 152 | .frame_lengths = {gfxMillisecondsToTicks(0)}, | 153 | .frame_lengths = {gfxMillisecondsToTicks(0)}, |
| 153 | .frame_functions = {keyframe_set_backlight_color}, | 154 | .frame_functions = {backlight_keyframe_set_color}, |
| 154 | }; | 155 | }; |
| 155 | 156 | ||
| 156 | bool swap_led_target_color(keyframe_animation_t* animation, visualizer_state_t* state) { | 157 | bool swap_led_target_color(keyframe_animation_t* animation, visualizer_state_t* state) { |
| @@ -165,7 +166,7 @@ static keyframe_animation_t two_led_colors = { | |||
| 165 | .num_frames = 2, | 166 | .num_frames = 2, |
| 166 | .loop = true, | 167 | .loop = true, |
| 167 | .frame_lengths = {gfxMillisecondsToTicks(1000), gfxMillisecondsToTicks(0)}, | 168 | .frame_lengths = {gfxMillisecondsToTicks(1000), gfxMillisecondsToTicks(0)}, |
| 168 | .frame_functions = {keyframe_set_backlight_color, swap_led_target_color}, | 169 | .frame_functions = {backlight_keyframe_set_color, swap_led_target_color}, |
| 169 | }; | 170 | }; |
| 170 | 171 | ||
| 171 | // The LCD animation alternates between the layer name display and a | 172 | // The LCD animation alternates between the layer name display and a |
| @@ -190,7 +191,7 @@ static keyframe_animation_t suspend_animation = { | |||
| 190 | .frame_lengths = {0, gfxMillisecondsToTicks(1000), 0}, | 191 | .frame_lengths = {0, gfxMillisecondsToTicks(1000), 0}, |
| 191 | .frame_functions = { | 192 | .frame_functions = { |
| 192 | lcd_keyframe_display_layer_text, | 193 | lcd_keyframe_display_layer_text, |
| 193 | keyframe_animate_backlight_color, | 194 | backlight_keyframe_animate_color, |
| 194 | keyframe_disable_lcd_and_backlight, | 195 | keyframe_disable_lcd_and_backlight, |
| 195 | }, | 196 | }, |
| 196 | }; | 197 | }; |
| @@ -202,7 +203,7 @@ static keyframe_animation_t resume_animation = { | |||
| 202 | .frame_functions = { | 203 | .frame_functions = { |
| 203 | keyframe_enable_lcd_and_backlight, | 204 | keyframe_enable_lcd_and_backlight, |
| 204 | display_logo, | 205 | display_logo, |
| 205 | keyframe_animate_backlight_color, | 206 | backlight_keyframe_animate_color, |
| 206 | enable_visualization, | 207 | enable_visualization, |
| 207 | }, | 208 | }, |
| 208 | }; | 209 | }; |
