aboutsummaryrefslogtreecommitdiff
path: root/include/ws2812b_writer.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-12-01 21:29:34 -0700
committerJosh Rahm <joshuarahm@gmail.com>2022-12-01 21:29:34 -0700
commit05e3f6bb7293c771629c7b3599392c8f335e7dd8 (patch)
treec2a5cd4d27d7673b3a58071c0656f87c92ee9ff3 /include/ws2812b_writer.h
parent8d379bf60e50960f6c855cd6b9c83956a082f73d (diff)
downloadesp32-ws2812b-05e3f6bb7293c771629c7b3599392c8f335e7dd8.tar.gz
esp32-ws2812b-05e3f6bb7293c771629c7b3599392c8f335e7dd8.tar.bz2
esp32-ws2812b-05e3f6bb7293c771629c7b3599392c8f335e7dd8.zip
Add an HTTP Server.
This server allows the user to control the parameters of the state for displaying the lights.
Diffstat (limited to 'include/ws2812b_writer.h')
-rw-r--r--include/ws2812b_writer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ws2812b_writer.h b/include/ws2812b_writer.h
index 89b4f7a..e8fa84f 100644
--- a/include/ws2812b_writer.h
+++ b/include/ws2812b_writer.h
@@ -6,11 +6,13 @@
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
+extern const int NUMBER_PARAMS;
+
typedef struct {
ws2812b_t* drv;
struct {
-#define STATE_PARAM(t, n) t n;
+#define STATE_PARAM(t, n, ...) t n;
#include "state_params.i"
#undef STATE_PARAM
} state;