aboutsummaryrefslogtreecommitdiffstats
path: root/visualizer.h
diff options
context:
space:
mode:
authorFred Sundvik <fsundvik@gmail.com>2016-05-18 09:03:42 +0300
committerFred Sundvik <fsundvik@gmail.com>2016-05-18 09:03:42 +0300
commit94519e387a85e3b4ab72bd7d837ff590cc690eb9 (patch)
tree7e9907f2a368727f462161b944b9a1d6f0edfefb /visualizer.h
parentfa8feb21a4709dba552df4a96205c50a319f5e3b (diff)
downloadfirmware-94519e387a85e3b4ab72bd7d837ff590cc690eb9.tar.gz
firmware-94519e387a85e3b4ab72bd7d837ff590cc690eb9.tar.bz2
firmware-94519e387a85e3b4ab72bd7d837ff590cc690eb9.zip
Add callback function for emulator drawing
Diffstat (limited to 'visualizer.h')
-rw-r--r--visualizer.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/visualizer.h b/visualizer.h
index 4d6a61dda..a3828e35f 100644
--- a/visualizer.h
+++ b/visualizer.h
@@ -50,6 +50,11 @@ void visualizer_resume(void);
GDisplay* get_lcd_display(void);
GDisplay* get_led_display(void);
+// For emulator builds, this function need to be implemented
+#if EMULATOR
+void draw_emulator(void);
+#endif
+
// If you need support for more than 16 keyframes per animation, you can change this
#define MAX_VISUALIZER_KEY_FRAMES 16
@@ -134,7 +139,7 @@ bool keyframe_enable_lcd_and_backlight(keyframe_animation_t* animation, visualiz
// directly from the initalize_user_visualizer function (the animation can be null)
bool enable_visualization(keyframe_animation_t* animation, visualizer_state_t* state);
-// These two functions have to be implemented by the user
+// These functions have to be implemented by the user
void initialize_user_visualizer(visualizer_state_t* state);
void update_user_visualizer_state(visualizer_state_t* state);
void user_visualizer_suspend(visualizer_state_t* state);