Emulate Ergodox EZ leds by LCD colors
This commit is contained in:
parent
9a4ce28683
commit
39385144e7
6 changed files with 258 additions and 45 deletions
|
@ -68,6 +68,9 @@ typedef struct {
|
|||
uint8_t mods;
|
||||
uint32_t leds; // See led.h for available statuses
|
||||
bool suspended;
|
||||
#ifdef VISUALIZER_USER_DATA_SIZE
|
||||
uint8_t user_data[VISUALIZER_USER_DATA_SIZE];
|
||||
#endif
|
||||
} visualizer_keyboard_status_t;
|
||||
|
||||
// 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
|
|||
// directly from the initalize_user_visualizer function (the animation can be null)
|
||||
bool enable_visualization(keyframe_animation_t* animation, visualizer_state_t* state);
|
||||
|
||||
// The master can set userdata which will be transferred to the slave
|
||||
#ifdef VISUALIZER_USER_DATA_SIZE
|
||||
void visualizer_set_user_data(void* user_data);
|
||||
#endif
|
||||
|
||||
// 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, visualizer_keyboard_status_t prev_status);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue