summaryrefslogtreecommitdiffstats
path: root/quantum/visualizer/lcd_backlight_keyframes.h
diff options
context:
space:
mode:
authorcoderkun <olli@coderkun.de>2017-05-06 12:19:45 +0200
committercoderkun <olli@coderkun.de>2017-05-06 12:19:45 +0200
commit49046f621bc8304c8c7ba7a065d2568f45ecc616 (patch)
tree4a1fc5d37e012502ff4732c801381eec814a2e01 /quantum/visualizer/lcd_backlight_keyframes.h
parent9e7448ea89a1a88317f0acb805819af79d0a76e3 (diff)
parentc5cef025ec39e67408f000825747d88c6aaa86eb (diff)
downloadqmk_firmware-49046f621bc8304c8c7ba7a065d2568f45ecc616.tar.gz
qmk_firmware-49046f621bc8304c8c7ba7a065d2568f45ecc616.tar.xz
Merge tag '0.5.43' into coderkun_neo2
Diffstat (limited to 'quantum/visualizer/lcd_backlight_keyframes.h')
-rw-r--r--quantum/visualizer/lcd_backlight_keyframes.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/quantum/visualizer/lcd_backlight_keyframes.h b/quantum/visualizer/lcd_backlight_keyframes.h
new file mode 100644
index 000000000..e1c125cf9
--- /dev/null
+++ b/quantum/visualizer/lcd_backlight_keyframes.h
@@ -0,0 +1,30 @@
+/* Copyright 2017 Fred Sundvik
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_
+#define QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_
+
+#include "visualizer.h"
+
+// Animates the LCD backlight color between the current color and the target color (of the state)
+bool backlight_keyframe_animate_color(keyframe_animation_t* animation, visualizer_state_t* state);
+// Sets the backlight color to the target color
+bool backlight_keyframe_set_color(keyframe_animation_t* animation, visualizer_state_t* state);
+
+bool backlight_keyframe_disable(keyframe_animation_t* animation, visualizer_state_t* state);
+bool backlight_keyframe_enable(keyframe_animation_t* animation, visualizer_state_t* state);
+
+#endif /* QUANTUM_VISUALIZER_LCD_BACKLIGHT_KEYFRAMES_H_ */