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.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/include/ws2812b_writer.h b/include/ws2812b_writer.h
index 9da9345..89b4f7a 100644
--- a/include/ws2812b_writer.h
+++ b/include/ws2812b_writer.h
@@ -10,16 +10,9 @@ typedef struct {
ws2812b_t* drv;
struct {
- uint32_t time;
- int timetick;
- uint8_t brightness;
- uint8_t off;
- uint8_t n_snow;
- uint8_t n_red;
-
- bool sleep;
- bool power;
- bool cool;
+#define STATE_PARAM(t, n) t n;
+#include "state_params.i"
+#undef STATE_PARAM
} state;
} ws_params_t;