diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-06-03 22:04:10 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-06-03 22:04:10 +0300 |
commit | b51a0db6ed03d939baad7cb9d87ed13c3653c7d2 (patch) | |
tree | 99e8b3fd3b71d198fef3c5d6a185e8fa4218ade2 /quantum | |
parent | 2a7f9a7e46e1f4350be249c267fa7c35fd6562b5 (diff) | |
download | qmk_firmware-b51a0db6ed03d939baad7cb9d87ed13c3653c7d2.tar.gz qmk_firmware-b51a0db6ed03d939baad7cb9d87ed13c3653c7d2.zip |
Add backlight support to the default Ergodox Infinity animations
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/visualizer/led_keyframes.c | 14 | ||||
-rw-r--r-- | quantum/visualizer/led_keyframes.h | 3 |
2 files changed, 17 insertions, 0 deletions
diff --git a/quantum/visualizer/led_keyframes.c b/quantum/visualizer/led_keyframes.c index 2dacd990d..c14491e5e 100644 --- a/quantum/visualizer/led_keyframes.c +++ b/quantum/visualizer/led_keyframes.c | |||
@@ -127,3 +127,17 @@ bool led_keyframe_normal_orientation(keyframe_animation_t* animation, visualizer | |||
127 | gdispGSetOrientation(LED_DISPLAY, GDISP_ROTATE_0); | 127 | gdispGSetOrientation(LED_DISPLAY, GDISP_ROTATE_0); |
128 | return false; | 128 | return false; |
129 | } | 129 | } |
130 | |||
131 | bool led_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state) { | ||
132 | (void)state; | ||
133 | (void)animation; | ||
134 | gdispGSetPowerMode(LED_DISPLAY, powerOff); | ||
135 | return false; | ||
136 | } | ||
137 | |||
138 | bool led_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state) { | ||
139 | (void)state; | ||
140 | (void)animation; | ||
141 | gdispGSetPowerMode(LED_DISPLAY, powerOn); | ||
142 | return false; | ||
143 | } | ||
diff --git a/quantum/visualizer/led_keyframes.h b/quantum/visualizer/led_keyframes.h index a68943041..a59a4f37d 100644 --- a/quantum/visualizer/led_keyframes.h +++ b/quantum/visualizer/led_keyframes.h | |||
@@ -35,6 +35,9 @@ bool led_keyframe_crossfade(keyframe_animation_t* animation, visualizer_state_t* | |||
35 | bool led_keyframe_mirror_orientation(keyframe_animation_t* animation, visualizer_state_t* state); | 35 | bool led_keyframe_mirror_orientation(keyframe_animation_t* animation, visualizer_state_t* state); |
36 | bool led_keyframe_normal_orientation(keyframe_animation_t* animation, visualizer_state_t* state); | 36 | bool led_keyframe_normal_orientation(keyframe_animation_t* animation, visualizer_state_t* state); |
37 | 37 | ||
38 | bool led_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state); | ||
39 | bool led_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state); | ||
40 | |||
38 | extern keyframe_animation_t led_test_animation; | 41 | extern keyframe_animation_t led_test_animation; |
39 | 42 | ||
40 | 43 | ||