aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ergodox/infinity/visualizer.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ergodox/infinity/visualizer.c')
-rw-r--r--keyboards/ergodox/infinity/visualizer.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/keyboards/ergodox/infinity/visualizer.c b/keyboards/ergodox/infinity/visualizer.c
index 8c3f3f29f..7ae371c5f 100644
--- a/keyboards/ergodox/infinity/visualizer.c
+++ b/keyboards/ergodox/infinity/visualizer.c
@@ -77,10 +77,12 @@ _Static_assert(sizeof(visualizer_user_data_t) <= VISUALIZER_USER_DATA_SIZE,
77// Don't worry, if the startup animation is long, you can use the keyboard like normal 77// Don't worry, if the startup animation is long, you can use the keyboard like normal
78// during that time 78// during that time
79static keyframe_animation_t startup_animation = { 79static keyframe_animation_t startup_animation = {
80 .num_frames = 2, 80 .num_frames = 4,
81 .loop = false, 81 .loop = false,
82 .frame_lengths = {0, gfxMillisecondsToTicks(10000), 0}, 82 .frame_lengths = {0, 0, 0, gfxMillisecondsToTicks(10000), 0},
83 .frame_functions = { 83 .frame_functions = {
84 lcd_keyframe_enable,
85 backlight_keyframe_enable,
84 lcd_keyframe_draw_logo, 86 lcd_keyframe_draw_logo,
85 backlight_keyframe_animate_color, 87 backlight_keyframe_animate_color,
86 }, 88 },
@@ -137,18 +139,6 @@ static keyframe_animation_t suspend_animation = {
137 }, 139 },
138}; 140};
139 141
140static keyframe_animation_t resume_animation = {
141 .num_frames = 4,
142 .loop = false,
143 .frame_lengths = {0, 0, 0, gfxMillisecondsToTicks(10000), 0},
144 .frame_functions = {
145 lcd_keyframe_enable,
146 backlight_keyframe_enable,
147 lcd_keyframe_draw_logo,
148 backlight_keyframe_animate_color,
149 },
150};
151
152void initialize_user_visualizer(visualizer_state_t* state) { 142void initialize_user_visualizer(visualizer_state_t* state) {
153 // The brightness will be dynamically adjustable in the future 143 // The brightness will be dynamically adjustable in the future
154 // But for now, change it here. 144 // But for now, change it here.
@@ -312,7 +302,7 @@ void user_visualizer_resume(visualizer_state_t* state) {
312 state->current_lcd_color = initial_color; 302 state->current_lcd_color = initial_color;
313 state->target_lcd_color = logo_background_color; 303 state->target_lcd_color = logo_background_color;
314 lcd_state = LCD_STATE_INITIAL; 304 lcd_state = LCD_STATE_INITIAL;
315 start_keyframe_animation(&resume_animation); 305 start_keyframe_animation(&startup_animation);
316} 306}
317 307
318void ergodox_board_led_on(void){ 308void ergodox_board_led_on(void){