aboutsummaryrefslogtreecommitdiff
path: root/include/state_params.i
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/state_params.i
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/state_params.i')
-rw-r--r--include/state_params.i21
1 files changed, 12 insertions, 9 deletions
diff --git a/include/state_params.i b/include/state_params.i
index 447b72b..15a5b43 100644
--- a/include/state_params.i
+++ b/include/state_params.i
@@ -1,9 +1,12 @@
-STATE_PARAM(uint32_t, time)
-STATE_PARAM(int, timetick)
-STATE_PARAM(uint8_t, brightness)
-STATE_PARAM(uint8_t, off)
-STATE_PARAM(uint8_t, n_snow)
-STATE_PARAM(uint8_t, n_red)
-STATE_PARAM(bool, sleep)
-STATE_PARAM(bool, power)
-STATE_PARAM(bool, cool)
+// List of parameters.
+// type name display name, default value
+
+STATE_PARAM(uint32_t, time, "Current Time", 0)
+STATE_PARAM(int, timetick, "Speed", 100)
+STATE_PARAM(uint8_t, brightness, "Brightness", 50)
+STATE_PARAM(uint8_t, n_snow, "Snow Effect", 10)
+STATE_PARAM(uint8_t, n_red, "Desaturation", 32)
+STATE_PARAM(int, x_scale, "X Scale", 255)
+STATE_PARAM(bool, power, "Power", true)
+STATE_PARAM(bool, cool, "Cool", false)
+STATE_PARAM(bool, invert, "Invert", false)