mirror of https://github.com/meshcore-dev/MeshCore
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.
22 lines
573 B
22 lines
573 B
#pragma once
|
|
|
|
#include <helpers/ui/DisplayDriver.h>
|
|
|
|
class UITask {
|
|
DisplayDriver* _display;
|
|
unsigned long _next_read, _next_refresh, _auto_off;
|
|
int _prevBtnState;
|
|
const char* _node_name;
|
|
const char* _build_date;
|
|
char _origin[62];
|
|
char _msg[80];
|
|
|
|
void renderCurrScreen();
|
|
public:
|
|
UITask(DisplayDriver& display) : _display(&display) { _next_read = _next_refresh = 0; }
|
|
void begin(const char* node_name, const char* build_date);
|
|
|
|
void clearMsgPreview();
|
|
void showMsgPreview(uint8_t path_len, const char* from_name, const char* text);
|
|
void loop();
|
|
};
|