@@ -64,6 +64,7 @@ typedef struct _wippersnapper_i2c_output_LedBackpackWrite {
64
64
int32_t number_int ; /* * Number to write to the LED backpack. * */
65
65
float number_float ; /* * Float to write to the LED backpack. * */
66
66
} message ;
67
+ bool adjust_brightness ; /* * Optionally used to enable the brightness tag. * */
67
68
int32_t brightness ; /* * Optionally adjusts the brightness from 0 (off) to 15 (full brightness). * */
68
69
wippersnapper_i2c_output_LedBackpackBlinkRate blink_rate ; /* * Optionally sets the blink rate for the LED backpack. * */
69
70
bool enable_scroll_marquee ; /* * Optionally enables automatic text scrolling * */
@@ -111,12 +112,12 @@ extern "C" {
111
112
#define wippersnapper_i2c_output_LedBackpackConfig_init_default {0, _wippersnapper_i2c_output_LedBackpackAlignment_MIN}
112
113
#define wippersnapper_i2c_output_CharLCDConfig_init_default {0, 0, 0, ""}
113
114
#define wippersnapper_i2c_output_I2cOutputAdd_init_default {0, {wippersnapper_i2c_output_LedBackpackConfig_init_default}}
114
- #define wippersnapper_i2c_output_LedBackpackWrite_init_default {0, {""}, 0, _wippersnapper_i2c_output_LedBackpackBlinkRate_MIN, 0, 0, 0}
115
+ #define wippersnapper_i2c_output_LedBackpackWrite_init_default {0, {""}, 0, 0, _wippersnapper_i2c_output_LedBackpackBlinkRate_MIN, 0, 0, 0}
115
116
#define wippersnapper_i2c_output_CharLCDWrite_init_default {0, {""}, 0, "", 0}
116
117
#define wippersnapper_i2c_output_LedBackpackConfig_init_zero {0, _wippersnapper_i2c_output_LedBackpackAlignment_MIN}
117
118
#define wippersnapper_i2c_output_CharLCDConfig_init_zero {0, 0, 0, ""}
118
119
#define wippersnapper_i2c_output_I2cOutputAdd_init_zero {0, {wippersnapper_i2c_output_LedBackpackConfig_init_zero}}
119
- #define wippersnapper_i2c_output_LedBackpackWrite_init_zero {0, {""}, 0, _wippersnapper_i2c_output_LedBackpackBlinkRate_MIN, 0, 0, 0}
120
+ #define wippersnapper_i2c_output_LedBackpackWrite_init_zero {0, {""}, 0, 0, _wippersnapper_i2c_output_LedBackpackBlinkRate_MIN, 0, 0, 0}
120
121
#define wippersnapper_i2c_output_CharLCDWrite_init_zero {0, {""}, 0, "", 0}
121
122
122
123
/* Field tags (for use in manual encoding/decoding) */
@@ -131,11 +132,12 @@ extern "C" {
131
132
#define wippersnapper_i2c_output_LedBackpackWrite_text_tag 1
132
133
#define wippersnapper_i2c_output_LedBackpackWrite_number_int_tag 2
133
134
#define wippersnapper_i2c_output_LedBackpackWrite_number_float_tag 3
134
- #define wippersnapper_i2c_output_LedBackpackWrite_brightness_tag 4
135
- #define wippersnapper_i2c_output_LedBackpackWrite_blink_rate_tag 5
136
- #define wippersnapper_i2c_output_LedBackpackWrite_enable_scroll_marquee_tag 6
137
- #define wippersnapper_i2c_output_LedBackpackWrite_scroll_marquee_speed_tag 7
138
- #define wippersnapper_i2c_output_LedBackpackWrite_enable_ampm_dot_tag 8
135
+ #define wippersnapper_i2c_output_LedBackpackWrite_adjust_brightness_tag 4
136
+ #define wippersnapper_i2c_output_LedBackpackWrite_brightness_tag 5
137
+ #define wippersnapper_i2c_output_LedBackpackWrite_blink_rate_tag 6
138
+ #define wippersnapper_i2c_output_LedBackpackWrite_enable_scroll_marquee_tag 7
139
+ #define wippersnapper_i2c_output_LedBackpackWrite_scroll_marquee_speed_tag 8
140
+ #define wippersnapper_i2c_output_LedBackpackWrite_enable_ampm_dot_tag 9
139
141
#define wippersnapper_i2c_output_CharLCDWrite_text_tag 1
140
142
#define wippersnapper_i2c_output_CharLCDWrite_number_int_tag 2
141
143
#define wippersnapper_i2c_output_CharLCDWrite_number_float_tag 3
@@ -170,11 +172,12 @@ X(a, STATIC, ONEOF, MESSAGE, (config,char_lcd_config,config.char_lcd_confi
170
172
X(a, STATIC, ONEOF, STRING, (message,text,message.text), 1) \
171
173
X(a, STATIC, ONEOF, INT32, (message,number_int,message.number_int), 2) \
172
174
X(a, STATIC, ONEOF, FLOAT, (message,number_float,message.number_float), 3) \
173
- X(a, STATIC, SINGULAR, INT32, brightness, 4) \
174
- X(a, STATIC, SINGULAR, UENUM, blink_rate, 5) \
175
- X(a, STATIC, SINGULAR, BOOL, enable_scroll_marquee, 6) \
176
- X(a, STATIC, SINGULAR, FLOAT, scroll_marquee_speed, 7) \
177
- X(a, STATIC, SINGULAR, BOOL, enable_ampm_dot, 8)
175
+ X(a, STATIC, SINGULAR, BOOL, adjust_brightness, 4) \
176
+ X(a, STATIC, SINGULAR, INT32, brightness, 5) \
177
+ X(a, STATIC, SINGULAR, UENUM, blink_rate, 6) \
178
+ X(a, STATIC, SINGULAR, BOOL, enable_scroll_marquee, 7) \
179
+ X(a, STATIC, SINGULAR, FLOAT, scroll_marquee_speed, 8) \
180
+ X(a, STATIC, SINGULAR, BOOL, enable_ampm_dot, 9)
178
181
#define wippersnapper_i2c_output_LedBackpackWrite_CALLBACK NULL
179
182
#define wippersnapper_i2c_output_LedBackpackWrite_DEFAULT NULL
180
183
@@ -207,7 +210,7 @@ extern const pb_msgdesc_t wippersnapper_i2c_output_CharLCDWrite_msg;
207
210
#define wippersnapper_i2c_output_CharLCDWrite_size 46
208
211
#define wippersnapper_i2c_output_I2cOutputAdd_size 32
209
212
#define wippersnapper_i2c_output_LedBackpackConfig_size 13
210
- #define wippersnapper_i2c_output_LedBackpackWrite_size 43
213
+ #define wippersnapper_i2c_output_LedBackpackWrite_size 45
211
214
212
215
#ifdef __cplusplus
213
216
} /* extern "C" */
0 commit comments