diff options
| -rw-r--r-- | keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/gdisp_lld_ST7565.c | 3 | ||||
| -rw-r--r-- | keyboards/ergodox/infinity/visualizer.c | 20 | ||||
| -rw-r--r-- | quantum/visualizer/lcd_backlight.c | 8 |
3 files changed, 10 insertions, 21 deletions
diff --git a/keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/gdisp_lld_ST7565.c b/keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/gdisp_lld_ST7565.c index 5b7b6d44c..b04ad0293 100644 --- a/keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/gdisp_lld_ST7565.c +++ b/keyboards/ergodox/infinity/drivers/gdisp/st7565ergodox/gdisp_lld_ST7565.c | |||
| @@ -127,7 +127,6 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { | |||
| 127 | 127 | ||
| 128 | write_cmd(g, ST7565_INVERT_DISPLAY); | 128 | write_cmd(g, ST7565_INVERT_DISPLAY); |
| 129 | write_cmd(g, ST7565_ALLON_NORMAL); | 129 | write_cmd(g, ST7565_ALLON_NORMAL); |
| 130 | write_cmd(g, ST7565_DISPLAY_ON); | ||
| 131 | 130 | ||
| 132 | write_cmd(g, ST7565_START_LINE | 0); | 131 | write_cmd(g, ST7565_START_LINE | 0); |
| 133 | write_cmd(g, ST7565_RMW); | 132 | write_cmd(g, ST7565_RMW); |
| @@ -143,7 +142,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) { | |||
| 143 | g->g.Width = GDISP_SCREEN_WIDTH; | 142 | g->g.Width = GDISP_SCREEN_WIDTH; |
| 144 | g->g.Height = GDISP_SCREEN_HEIGHT; | 143 | g->g.Height = GDISP_SCREEN_HEIGHT; |
| 145 | g->g.Orientation = GDISP_ROTATE_0; | 144 | g->g.Orientation = GDISP_ROTATE_0; |
| 146 | g->g.Powermode = powerOn; | 145 | g->g.Powermode = powerOff; |
| 147 | g->g.Backlight = GDISP_INITIAL_BACKLIGHT; | 146 | g->g.Backlight = GDISP_INITIAL_BACKLIGHT; |
| 148 | g->g.Contrast = GDISP_INITIAL_CONTRAST; | 147 | g->g.Contrast = GDISP_INITIAL_CONTRAST; |
| 149 | return TRUE; | 148 | return TRUE; |
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 |
| 79 | static keyframe_animation_t startup_animation = { | 79 | static 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 | ||
| 140 | static 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 | |||
| 152 | void initialize_user_visualizer(visualizer_state_t* state) { | 142 | void 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 | ||
| 318 | void ergodox_board_led_on(void){ | 308 | void ergodox_board_led_on(void){ |
diff --git a/quantum/visualizer/lcd_backlight.c b/quantum/visualizer/lcd_backlight.c index 70187d1e0..00de3fab5 100644 --- a/quantum/visualizer/lcd_backlight.c +++ b/quantum/visualizer/lcd_backlight.c | |||
| @@ -25,10 +25,10 @@ SOFTWARE. | |||
| 25 | #include "lcd_backlight.h" | 25 | #include "lcd_backlight.h" |
| 26 | #include <math.h> | 26 | #include <math.h> |
| 27 | 27 | ||
| 28 | static uint8_t current_hue = 0x00; | 28 | static uint8_t current_hue = 0; |
| 29 | static uint8_t current_saturation = 0x00; | 29 | static uint8_t current_saturation = 0; |
| 30 | static uint8_t current_intensity = 0xFF; | 30 | static uint8_t current_intensity = 0; |
| 31 | static uint8_t current_brightness = 0x7F; | 31 | static uint8_t current_brightness = 0; |
| 32 | 32 | ||
| 33 | void lcd_backlight_init(void) { | 33 | void lcd_backlight_init(void) { |
| 34 | lcd_backlight_hal_init(); | 34 | lcd_backlight_hal_init(); |
