aboutsummaryrefslogtreecommitdiff
path: root/include/ws2812b_writer.h
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2021-12-01 23:42:19 -0700
committerJosh Rahm <joshuarahm@gmail.com>2021-12-01 23:42:19 -0700
commit62715093e446d952bbc3fa82fdb65deacd576be2 (patch)
treec4fca7d19d8cd73b76c030de8f66eedc1930ec22 /include/ws2812b_writer.h
parentb1ca00800f34ab86c0a99c46796c73a8028157ff (diff)
downloadesp32-ws2812b-62715093e446d952bbc3fa82fdb65deacd576be2.tar.gz
esp32-ws2812b-62715093e446d952bbc3fa82fdb65deacd576be2.tar.bz2
esp32-ws2812b-62715093e446d952bbc3fa82fdb65deacd576be2.zip
Add a controller shell.
This adds a mini shell to the tcp server that allows the user to modify the current state. Commands are in the form: set [int_attribute] (=|+=|-=) [number] set [bool_attribute] (on|off|toggle) print end for example: set brightness += 5 set power on print end
Diffstat (limited to 'include/ws2812b_writer.h')
-rw-r--r--include/ws2812b_writer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ws2812b_writer.h b/include/ws2812b_writer.h
index 2252230..9da9345 100644
--- a/include/ws2812b_writer.h
+++ b/include/ws2812b_writer.h
@@ -11,7 +11,7 @@ typedef struct {
struct {
uint32_t time;
- int32_t timetick;
+ int timetick;
uint8_t brightness;
uint8_t off;
uint8_t n_snow;