1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
-
-
- #ifndef __UI_H__
- #define __UI_H__
-
- #ifdef FEATURE_NTP
- #include <time.h>
- String time_to_date_str(struct tm timeinfo);
- String time_to_time_str(struct tm timeinfo);
- #endif
-
- #ifdef FEATURE_UI
-
- enum bathroom_light_states {
- BATH_LIGHT_OFF,
- BATH_LIGHT_NONE,
- BATH_LIGHT_BIG,
- BATH_LIGHT_SMALL,
- };
-
- 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;
- enum bathroom_light_states bathroom_lights;
- bool light_sink;
- bool pc_displays;
- };
-
- extern struct ui_status ui_status;
-
- enum ui_state {
- UI_INIT = 0,
- UI_MEMORY_READY,
- 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
-
- #endif
|