diff options
Diffstat (limited to 'keyboards/ergodox/keymaps/default/visualizer.c')
| -rw-r--r-- | keyboards/ergodox/keymaps/default/visualizer.c | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/keyboards/ergodox/keymaps/default/visualizer.c b/keyboards/ergodox/keymaps/default/visualizer.c index f03702f60..afa6f1bdd 100644 --- a/keyboards/ergodox/keymaps/default/visualizer.c +++ b/keyboards/ergodox/keymaps/default/visualizer.c | |||
| @@ -46,24 +46,6 @@ typedef enum { | |||
| 46 | 46 | ||
| 47 | static lcd_state_t lcd_state = LCD_STATE_INITIAL; | 47 | static lcd_state_t lcd_state = LCD_STATE_INITIAL; |
| 48 | 48 | ||
| 49 | bool display_logo(keyframe_animation_t* animation, visualizer_state_t* state) { | ||
| 50 | (void)state; | ||
| 51 | (void)animation; | ||
| 52 | (void)state; | ||
| 53 | // Read the uGFX documentation for information how to use the displays | ||
| 54 | // http://wiki.ugfx.org/index.php/Main_Page | ||
| 55 | gdispClear(White); | ||
| 56 | |||
| 57 | // You can use static variables for things that can't be found in the animation | ||
| 58 | // or state structs, here we use the image | ||
| 59 | |||
| 60 | //gdispGBlitArea is a tricky function to use since it supports blitting part of the image | ||
| 61 | // if you have full screen image, then just use 128 and 32 for both source and target dimensions | ||
| 62 | gdispGBlitArea(GDISP, 0, 0, 128, 32, 0, 0, 128, (pixel_t*)resource_lcd_logo); | ||
| 63 | |||
| 64 | return false; | ||
| 65 | } | ||
| 66 | |||
| 67 | // Feel free to modify the animations below, or even add new ones if needed | 49 | // Feel free to modify the animations below, or even add new ones if needed |
| 68 | 50 | ||
| 69 | // Don't worry, if the startup animation is long, you can use the keyboard like normal | 51 | // Don't worry, if the startup animation is long, you can use the keyboard like normal |
| @@ -73,7 +55,7 @@ static keyframe_animation_t startup_animation = { | |||
| 73 | .loop = false, | 55 | .loop = false, |
| 74 | .frame_lengths = {0, gfxMillisecondsToTicks(10000), 0}, | 56 | .frame_lengths = {0, gfxMillisecondsToTicks(10000), 0}, |
| 75 | .frame_functions = { | 57 | .frame_functions = { |
| 76 | display_logo, | 58 | lcd_keyframe_draw_logo, |
| 77 | backlight_keyframe_animate_color, | 59 | backlight_keyframe_animate_color, |
| 78 | }, | 60 | }, |
| 79 | }; | 61 | }; |
| @@ -104,7 +86,7 @@ static keyframe_animation_t resume_animation = { | |||
| 104 | .frame_functions = { | 86 | .frame_functions = { |
| 105 | lcd_keyframe_enable, | 87 | lcd_keyframe_enable, |
| 106 | backlight_keyframe_enable, | 88 | backlight_keyframe_enable, |
| 107 | display_logo, | 89 | lcd_keyframe_draw_logo, |
| 108 | backlight_keyframe_animate_color, | 90 | backlight_keyframe_animate_color, |
| 109 | }, | 91 | }, |
| 110 | }; | 92 | }; |
