1 /* Copyright 2017 Fred Sundvik
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #include "animations.h"
18 #include "visualizer.h"
20 #include "lcd_keyframes.h"
22 #ifdef LCD_BACKLIGHT_ENABLE
23 #include "lcd_backlight_keyframes.h"
26 #if defined(VISUALIZER_ENABLE) && defined(LCD_ENABLE) && defined(LCD_BACKLIGHT_ENABLE)
28 // Don't worry, if the startup animation is long, you can use the keyboard like normal
30 keyframe_animation_t default_startup_animation = {
33 .frame_lengths = {0, 0, 0, gfxMillisecondsToTicks(5000), 0},
36 backlight_keyframe_enable,
37 lcd_keyframe_draw_logo,
38 backlight_keyframe_animate_color,
42 keyframe_animation_t default_suspend_animation = {
45 .frame_lengths = {0, gfxMillisecondsToTicks(1000), 0, 0},
47 lcd_keyframe_display_layer_text,
48 backlight_keyframe_animate_color,
50 backlight_keyframe_disable,