diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-04-02 01:31:04 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-04-09 18:34:59 +0300 |
commit | 39385144e7dc3337e623cdc8147b4a441f22fd62 (patch) | |
tree | c553b85bbd7c0754296f999e83647ac7b779a22d /quantum/visualizer/visualizer.h | |
parent | 9a4ce28683b667ab67d48d92196bab7e277d4800 (diff) | |
download | qmk_firmware-39385144e7dc3337e623cdc8147b4a441f22fd62.tar.gz qmk_firmware-39385144e7dc3337e623cdc8147b4a441f22fd62.zip |
Emulate Ergodox EZ leds by LCD colors
Diffstat (limited to 'quantum/visualizer/visualizer.h')
-rw-r--r-- | quantum/visualizer/visualizer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/quantum/visualizer/visualizer.h b/quantum/visualizer/visualizer.h index 2c81cb9f7..beb8f2ab4 100644 --- a/quantum/visualizer/visualizer.h +++ b/quantum/visualizer/visualizer.h | |||
@@ -68,6 +68,9 @@ typedef struct { | |||
68 | uint8_t mods; | 68 | uint8_t mods; |
69 | uint32_t leds; // See led.h for available statuses | 69 | uint32_t leds; // See led.h for available statuses |
70 | bool suspended; | 70 | bool suspended; |
71 | #ifdef VISUALIZER_USER_DATA_SIZE | ||
72 | uint8_t user_data[VISUALIZER_USER_DATA_SIZE]; | ||
73 | #endif | ||
71 | } visualizer_keyboard_status_t; | 74 | } visualizer_keyboard_status_t; |
72 | 75 | ||
73 | // The state struct is used by the various keyframe functions | 76 | // The state struct is used by the various keyframe functions |
@@ -146,6 +149,11 @@ bool keyframe_enable_lcd_and_backlight(keyframe_animation_t* animation, visualiz | |||
146 | // directly from the initalize_user_visualizer function (the animation can be null) | 149 | // directly from the initalize_user_visualizer function (the animation can be null) |
147 | bool enable_visualization(keyframe_animation_t* animation, visualizer_state_t* state); | 150 | bool enable_visualization(keyframe_animation_t* animation, visualizer_state_t* state); |
148 | 151 | ||
152 | // The master can set userdata which will be transferred to the slave | ||
153 | #ifdef VISUALIZER_USER_DATA_SIZE | ||
154 | void visualizer_set_user_data(void* user_data); | ||
155 | #endif | ||
156 | |||
149 | // These functions have to be implemented by the user | 157 | // These functions have to be implemented by the user |
150 | void initialize_user_visualizer(visualizer_state_t* state); | 158 | void initialize_user_visualizer(visualizer_state_t* state); |
151 | void update_user_visualizer_state(visualizer_state_t* state, visualizer_keyboard_status_t prev_status); | 159 | void update_user_visualizer_state(visualizer_state_t* state, visualizer_keyboard_status_t prev_status); |