mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-07-26 06:02:31 +00:00
22 lines
626 B
C++
22 lines
626 B
C++
#pragma once
|
|
|
|
#include <helpers/ui/DisplayDriver.h>
|
|
#include <helpers/CommonCLI.h>
|
|
|
|
class UITask {
|
|
mesh::MainBoard* _board;
|
|
DisplayDriver* _display;
|
|
unsigned long _next_read, _next_refresh, _auto_off;
|
|
int _prevBtnState;
|
|
NodePrefs* _node_prefs;
|
|
char _version_info[32];
|
|
unsigned long _powering_off_at = 0;
|
|
unsigned long _started_at = 0;
|
|
|
|
void renderCurrScreen();
|
|
public:
|
|
UITask(mesh::MainBoard& board, DisplayDriver& display) : _board(&board), _display(&display) { _next_read = _next_refresh = 0; }
|
|
void begin(NodePrefs* node_prefs, const char* build_date, const char* firmware_version);
|
|
|
|
void loop();
|
|
}; |