mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* basic UITask added to repeater and room server (only HeltecV3 targets enable so far)
This commit is contained in:
parent
372c228210
commit
c2ae34314e
7 changed files with 242 additions and 2 deletions
18
examples/simple_room_server/UITask.h
Normal file
18
examples/simple_room_server/UITask.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#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;
|
||||
|
||||
void renderCurrScreen();
|
||||
public:
|
||||
UITask(DisplayDriver& display) : _display(&display) { _next_read = _next_refresh = 0; }
|
||||
void begin(const char* node_name, const char* build_date);
|
||||
|
||||
void loop();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue