mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* companion radio: now with optional UITask (enabled by DISPLAY_CLASS config in target/env)
22 lines
No EOL
573 B
C++
22 lines
No EOL
573 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;
|
|
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();
|
|
}; |