mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-03-30 17:05:52 +00:00
18 lines
457 B
C++
18 lines
457 B
C++
#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();
|
|
}; |