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.c22
1 files changed, 2 insertions, 20 deletions
diff --git a/keyboards/ergodox/infinity/visualizer.c b/keyboards/ergodox/infinity/visualizer.c
index 90933b00a..bac85c593 100644
--- a/keyboards/ergodox/infinity/visualizer.c
+++ b/keyboards/ergodox/infinity/visualizer.c
@@ -72,24 +72,6 @@ static visualizer_user_data_t user_data_keyboard = {
72_Static_assert(sizeof(visualizer_user_data_t) <= VISUALIZER_USER_DATA_SIZE, 72_Static_assert(sizeof(visualizer_user_data_t) <= VISUALIZER_USER_DATA_SIZE,
73 "Please increase the VISUALIZER_USER_DATA_SIZE"); 73 "Please increase the VISUALIZER_USER_DATA_SIZE");
74 74
75bool display_logo(keyframe_animation_t* animation, visualizer_state_t* state) {
76 (void)state;
77 (void)animation;
78 (void)state;
79 // Read the uGFX documentation for information how to use the displays
80 // http://wiki.ugfx.org/index.php/Main_Page
81 gdispClear(White);
82
83 // You can use static variables for things that can't be found in the animation
84 // or state structs, here we use the image
85
86 //gdispGBlitArea is a tricky function to use since it supports blitting part of the image
87 // if you have full screen image, then just use 128 and 32 for both source and target dimensions
88 gdispGBlitArea(GDISP, 0, 0, 128, 32, 0, 0, 128, (pixel_t*)resource_lcd_logo);
89
90 return false;
91}
92
93// Feel free to modify the animations below, or even add new ones if needed 75// Feel free to modify the animations below, or even add new ones if needed
94 76
95// 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
@@ -99,7 +81,7 @@ static keyframe_animation_t startup_animation = {
99 .loop = false, 81 .loop = false,
100 .frame_lengths = {0, gfxMillisecondsToTicks(10000), 0}, 82 .frame_lengths = {0, gfxMillisecondsToTicks(10000), 0},
101 .frame_functions = { 83 .frame_functions = {
102 display_logo, 84 lcd_keyframe_draw_logo,
103 backlight_keyframe_animate_color, 85 backlight_keyframe_animate_color,
104 }, 86 },
105}; 87};
@@ -162,7 +144,7 @@ static keyframe_animation_t resume_animation = {
162 .frame_functions = { 144 .frame_functions = {
163 lcd_keyframe_enable, 145 lcd_keyframe_enable,
164 backlight_keyframe_enable, 146 backlight_keyframe_enable,
165 display_logo, 147 lcd_keyframe_draw_logo,
166 backlight_keyframe_animate_color, 148 backlight_keyframe_animate_color,
167 }, 149 },
168}; 150};