1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*
- * ui.h
- *
- * ESP8266 / ESP32 Environmental Sensor
- *
- * ----------------------------------------------------------------------------
- * "THE BEER-WARE LICENSE" (Revision 42):
- * <xythobuz@xythobuz.de> wrote this file. As long as you retain this notice
- * you can do whatever you want with this stuff. If we meet some day, and you
- * think this stuff is worth it, you can buy me a beer in return. Thomas Buck
- * ----------------------------------------------------------------------------
- */
-
- #ifndef __UI_H__
- #define __UI_H__
-
- struct ui_status {
- bool light_corner;
- bool light_workspace;
- bool light_kitchen;
- bool sound_amplifier;
- bool light_bench;
- bool light_pc;
- bool light_amp;
- bool light_box;
- };
-
- extern struct ui_status ui_status;
-
- enum ui_state {
- UI_INIT = 0,
- UI_WIFI_CONNECT,
- UI_WIFI_CONNECTING,
- UI_WIFI_CONNECTED,
- UI_READY,
- UI_UPDATE,
- };
-
- void ui_init(void);
- void ui_run(void);
-
- void ui_progress(enum ui_state state);
-
- #endif // __UI_H__
|