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.
18 lines
457 B
18 lines
457 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;
|
|
char _version_info[32];
|
|
|
|
void renderCurrScreen();
|
|
public:
|
|
UITask(DisplayDriver& display) : _display(&display) { _next_read = _next_refresh = 0; }
|
|
void begin(const char* node_name, const char* build_date, const char* firmware_version);
|
|
|
|
void loop();
|
|
};
|