1
0
Fork 0

Add backlight support to the default Ergodox Infinity animations

This commit is contained in:
Fred Sundvik 2017-06-03 22:04:10 +03:00
parent 2a7f9a7e46
commit b51a0db6ed
3 changed files with 75 additions and 11 deletions

View file

@ -127,3 +127,17 @@ bool led_keyframe_normal_orientation(keyframe_animation_t* animation, visualizer
gdispGSetOrientation(LED_DISPLAY, GDISP_ROTATE_0);
return false;
}
bool led_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state) {
(void)state;
(void)animation;
gdispGSetPowerMode(LED_DISPLAY, powerOff);
return false;
}
bool led_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state) {
(void)state;
(void)animation;
gdispGSetPowerMode(LED_DISPLAY, powerOn);
return false;
}