diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2025-12-07 15:37:04 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2025-12-07 15:37:04 -0700 |
| commit | c9efee6f3ffcf19e139d72d946aa4d837bbcbb9e (patch) | |
| tree | dc1c5c4c78e9758140029118a7f7c969703572b5 /include | |
| parent | b2b344ebec8f7b55506deb0c2138a1e2b9ffeb46 (diff) | |
| download | esp32-ws2812b-c9efee6f3ffcf19e139d72d946aa4d837bbcbb9e.tar.gz esp32-ws2812b-c9efee6f3ffcf19e139d72d946aa4d837bbcbb9e.tar.bz2 esp32-ws2812b-c9efee6f3ffcf19e139d72d946aa4d837bbcbb9e.zip | |
Better timing.
No longer hammering the SPI bus, but rather being more controlled, and
interpolation is handled better.
Diffstat (limited to 'include')
| -rw-r--r-- | include/param.h | 1 | ||||
| -rw-r--r-- | include/state_params.i | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/param.h b/include/param.h index b66b1b1..5259e0a 100644 --- a/include/param.h +++ b/include/param.h @@ -25,3 +25,4 @@ DECL_PARAMETER_INSTANCE(bool); DECL_PARAMETER_INSTANCE(uint32_t); DECL_PARAMETER_INSTANCE(color_int_t); DECL_PARAMETER_INSTANCE(int); +DECL_PARAMETER_INSTANCE(int32_t); diff --git a/include/state_params.i b/include/state_params.i index 875328d..e768768 100644 --- a/include/state_params.i +++ b/include/state_params.i @@ -1,8 +1,10 @@ +// version 1 + // 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(int32_t, time, "Current Time", 0) +STATE_PARAM(int, speed, "Speed", 1000) STATE_PARAM(uint8_t, brightness, "Brightness", 50) STATE_PARAM(uint8_t, n_snow, "Snow Effect", 10) STATE_PARAM(uint8_t, n_red, "Desaturation", 32) @@ -14,3 +16,4 @@ STATE_PARAM(bool, use_static_color, "Use Static Color", false) STATE_PARAM(color_int_t, static_color, "Static Color", 0xffddbb) STATE_PARAM(bool, twinkle, "Twinkle", true) STATE_PARAM(uint8_t, twink_amt, "Twinkle Amount", 0) +STATE_PARAM(uint8_t, base_brightness, "Base Brightness", 0) |