aboutsummaryrefslogtreecommitdiff
path: root/quantum/visualizer/visualizer.h
diff options
context:
space:
mode:
authorskullY <skullydazed@gmail.com>2019-08-30 11:19:03 -0700
committerskullydazed <skullydazed@users.noreply.github.com>2019-08-30 15:01:52 -0700
commitb624f32f944acdc59dcb130674c09090c5c404cb (patch)
treebc13adbba137d122d9a2c2fb2fafcbb08ac10e25 /quantum/visualizer/visualizer.h
parent61af76a10d00aba185b8338604171de490a13e3b (diff)
downloadqmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.tar.gz
qmk_firmware-b624f32f944acdc59dcb130674c09090c5c404cb.zip
clang-format changes
Diffstat (limited to 'quantum/visualizer/visualizer.h')
-rw-r--r--quantum/visualizer/visualizer.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/quantum/visualizer/visualizer.h b/quantum/visualizer/visualizer.h
index 56ea1fd98..7ca6837ce 100644
--- a/quantum/visualizer/visualizer.h
+++ b/quantum/visualizer/visualizer.h
@@ -33,11 +33,11 @@ SOFTWARE.
33#include "action_layer.h" 33#include "action_layer.h"
34 34
35#ifdef LCD_BACKLIGHT_ENABLE 35#ifdef LCD_BACKLIGHT_ENABLE
36#include "lcd_backlight.h" 36# include "lcd_backlight.h"
37#endif 37#endif
38 38
39#ifdef BACKLIGHT_ENABLE 39#ifdef BACKLIGHT_ENABLE
40#include "backlight.h" 40# include "backlight.h"
41#endif 41#endif
42 42
43// use this function to merge both real_mods and oneshot_mods in a uint16_t 43// use this function to merge both real_mods and oneshot_mods in a uint16_t
@@ -71,9 +71,9 @@ struct keyframe_animation_t;
71typedef struct { 71typedef struct {
72 layer_state_t layer; 72 layer_state_t layer;
73 layer_state_t default_layer; 73 layer_state_t default_layer;
74 uint32_t leds; // See led.h for available statuses 74 uint32_t leds; // See led.h for available statuses
75 uint8_t mods; 75 uint8_t mods;
76 bool suspended; 76 bool suspended;
77#ifdef BACKLIGHT_ENABLE 77#ifdef BACKLIGHT_ENABLE
78 uint8_t backlight_level; 78 uint8_t backlight_level;
79#endif 79#endif
@@ -87,7 +87,7 @@ typedef struct {
87// from the user customized code 87// from the user customized code
88typedef struct visualizer_state_t { 88typedef struct visualizer_state_t {
89 // The user code should primarily be modifying these 89 // The user code should primarily be modifying these
90 uint32_t target_lcd_color; 90 uint32_t target_lcd_color;
91 const char* layer_text; 91 const char* layer_text;
92 92
93 // The user visualizer(and animation functions) can read these 93 // The user visualizer(and animation functions) can read these
@@ -111,15 +111,15 @@ typedef bool (*frame_func)(struct keyframe_animation_t*, visualizer_state_t*);
111// while others are meant to be initialized by the user code 111// while others are meant to be initialized by the user code
112typedef struct keyframe_animation_t { 112typedef struct keyframe_animation_t {
113 // These should be initialized 113 // These should be initialized
114 int num_frames; 114 int num_frames;
115 bool loop; 115 bool loop;
116 int frame_lengths[MAX_VISUALIZER_KEY_FRAMES]; 116 int frame_lengths[MAX_VISUALIZER_KEY_FRAMES];
117 frame_func frame_functions[MAX_VISUALIZER_KEY_FRAMES]; 117 frame_func frame_functions[MAX_VISUALIZER_KEY_FRAMES];
118 118
119 // Used internally by the system, and can also be read by 119 // Used internally by the system, and can also be read by
120 // keyframe update functions 120 // keyframe update functions
121 int current_frame; 121 int current_frame;
122 int time_left_in_frame; 122 int time_left_in_frame;
123 bool first_update_of_frame; 123 bool first_update_of_frame;
124 bool last_update_of_frame; 124 bool last_update_of_frame;
125 bool need_update; 125 bool need_update;