From a1236a39e7842ed24b3a9c986dba177d02be5114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 6 Mar 2019 22:36:22 +0100 Subject: Implement gui and fix rainbow selection For some reason when I use " in payload it is not send. I have no idea why but it is just probably some bug in bigclown. --- control/state.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 control/state.h (limited to 'control/state.h') diff --git a/control/state.h b/control/state.h new file mode 100644 index 0000000..5f9525f --- /dev/null +++ b/control/state.h @@ -0,0 +1,29 @@ +#ifndef _STATE_H_ +#define _STATE_H_ + +enum led_mode { + MODE_SOLID_RED, + MODE_SOLID_GREEN, + MODE_SOLID_BLUE, + MODE_SOLID_YELLOW, + MODE_RAINBOW, +}; + +extern enum led_mode mode; + +extern const unsigned brightness_max; +extern unsigned brightness; + +extern int enabled; + +enum state { + STATE_DEFAULT, + STATE_COLOR_SELECT, + STATE_BRIGHTNESS_SELECT, +}; + +extern enum state state; + + + +#endif -- cgit v1.2.3