ESP32 / ESP8266 & BME280 / SHT2x sensor with InfluxDB support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ui.h 1017B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * ui.h
  3. *
  4. * ESP8266 / ESP32 Environmental Sensor
  5. *
  6. * ----------------------------------------------------------------------------
  7. * "THE BEER-WARE LICENSE" (Revision 42):
  8. * <xythobuz@xythobuz.de> wrote this file. As long as you retain this notice
  9. * you can do whatever you want with this stuff. If we meet some day, and you
  10. * think this stuff is worth it, you can buy me a beer in return. Thomas Buck
  11. * ----------------------------------------------------------------------------
  12. */
  13. #ifndef __UI_H__
  14. #define __UI_H__
  15. struct ui_status {
  16. bool light_corner;
  17. bool light_workspace;
  18. bool light_kitchen;
  19. bool sound_amplifier;
  20. bool light_bench;
  21. bool light_pc;
  22. bool light_amp;
  23. bool light_box;
  24. };
  25. extern struct ui_status ui_status;
  26. enum ui_state {
  27. UI_INIT = 0,
  28. UI_WIFI_CONNECT,
  29. UI_WIFI_CONNECTING,
  30. UI_WIFI_CONNECTED,
  31. UI_READY,
  32. };
  33. void ui_init(void);
  34. void ui_draw_menu(void);
  35. void ui_run(void);
  36. void ui_progress(enum ui_state state);
  37. #endif // __UI_H__