Download the file
  1. #ifndef UI_H
  2. #define UI_H
  3.  
  4. #include "Scheduler.h"
  5. #include "heater_controller_master.h"
  6. #include "protocol.h"
  7. class Protocol;
  8.  
  9. class UI : public Task {
  10. public:
  11. UI(Protocol* protocol);
  12.  
  13. bool canRun(uint32_t now);
  14. void run(uint32_t now);
  15.  
  16. void write_status(uint8_t relay_state, float temperature, float current);
  17. void write_error(uint8_t code);
  18. void write_OK();
  19. private:
  20. Protocol* protocol;
  21. };
  22. #endif
  23.