aboutsummaryrefslogtreecommitdiff
path: root/keyboards/ergodox/keymaps/default/visualizer.c
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2017-04-05 09:21:18 +0300
committerFred Sundvik <fsundvik@gmail.com>2017-04-09 18:34:59 +0300
commit1e7585e76771e1a2d8ca733fc09c19f9fa0e903c (patch)
treee4e5ebff65cd1f60fe4ecdd71501c05bff9b6b24 /keyboards/ergodox/keymaps/default/visualizer.c
parent5ba228b684a32c1099efc6207842a56ff102961a (diff)
downloadqmk_firmware-1e7585e76771e1a2d8ca733fc09c19f9fa0e903c.tar.gz
qmk_firmware-1e7585e76771e1a2d8ca733fc09c19f9fa0e903c.zip
Separated backlight and LCD disable/enable
Also moved them to correct places
Diffstat (limited to 'keyboards/ergodox/keymaps/default/visualizer.c')
-rw-r--r--keyboards/ergodox/keymaps/default/visualizer.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/keyboards/ergodox/keymaps/default/visualizer.c b/keyboards/ergodox/keymaps/default/visualizer.c
index 07f5a44ab..5ee49c9bc 100644
--- a/keyboards/ergodox/keymaps/default/visualizer.c
+++ b/keyboards/ergodox/keymaps/default/visualizer.c
@@ -128,22 +128,24 @@ static keyframe_animation_t lcd_layer_display = {
128}; 128};
129 129
130static keyframe_animation_t suspend_animation = { 130static keyframe_animation_t suspend_animation = {
131 .num_frames = 3, 131 .num_frames = 4,
132 .loop = false, 132 .loop = false,
133 .frame_lengths = {0, gfxMillisecondsToTicks(1000), 0}, 133 .frame_lengths = {0, gfxMillisecondsToTicks(1000), 0, 0},
134 .frame_functions = { 134 .frame_functions = {
135 lcd_keyframe_display_layer_text, 135 lcd_keyframe_display_layer_text,
136 backlight_keyframe_animate_color, 136 backlight_keyframe_animate_color,
137 keyframe_disable_lcd_and_backlight, 137 lcd_keyframe_disable,
138 lcd_keyframe_disable,
138 }, 139 },
139}; 140};
140 141
141static keyframe_animation_t resume_animation = { 142static keyframe_animation_t resume_animation = {
142 .num_frames = 4, 143 .num_frames = 5,
143 .loop = false, 144 .loop = false,
144 .frame_lengths = {0, 0, gfxMillisecondsToTicks(10000), 0}, 145 .frame_lengths = {0, 0, 0, gfxMillisecondsToTicks(10000), 0},
145 .frame_functions = { 146 .frame_functions = {
146 keyframe_enable_lcd_and_backlight, 147 lcd_keyframe_enable,
148 backlight_keyframe_enable,
147 display_logo, 149 display_logo,
148 backlight_keyframe_animate_color, 150 backlight_keyframe_animate_color,
149 enable_visualization, 151 enable_visualization,