UITask.h 457 B

123456789101112131415161718
  1. #pragma once
  2. #include <helpers/ui/DisplayDriver.h>
  3. class UITask {
  4. DisplayDriver* _display;
  5. unsigned long _next_read, _next_refresh, _auto_off;
  6. int _prevBtnState;
  7. const char* _node_name;
  8. char _version_info[32];
  9. void renderCurrScreen();
  10. public:
  11. UITask(DisplayDriver& display) : _display(&display) { _next_read = _next_refresh = 0; }
  12. void begin(const char* node_name, const char* build_date, const char* firmware_version);
  13. void loop();
  14. };