aboutsummaryrefslogtreecommitdiff
path: root/include/ws2812b_writer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ws2812b_writer.h')
-rw-r--r--include/ws2812b_writer.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/ws2812b_writer.h b/include/ws2812b_writer.h
index 0679059..2252230 100644
--- a/include/ws2812b_writer.h
+++ b/include/ws2812b_writer.h
@@ -7,10 +7,24 @@
#include "freertos/task.h"
typedef struct {
- char color[32];
ws2812b_t* drv;
+
+ struct {
+ uint32_t time;
+ int32_t timetick;
+ uint8_t brightness;
+ uint8_t off;
+ uint8_t n_snow;
+ uint8_t n_red;
+
+ bool sleep;
+ bool power;
+ bool cool;
+ } state;
} ws_params_t;
+void reset_parameters(ws_params_t* params);
+
portTASK_FUNCTION_PROTO(ws2812b_write_task, params);
#endif /* WS2812B_WRITER_H_ */