UI: battery indicator, boot screen, radio settings

此提交包含在:
Jacob Quatier
2025-04-20 19:17:02 -07:00
提交者 JQ
父節點 7b1582a0b9
當前提交 c34dd2a40c
共有 10 個檔案被更改,包括 195 行新增70 行删除
+3 -2
查看文件
@@ -1,18 +1,19 @@
#pragma once
#include <helpers/ui/DisplayDriver.h>
#include <helpers/CommonCLI.h>
class UITask {
DisplayDriver* _display;
unsigned long _next_read, _next_refresh, _auto_off;
int _prevBtnState;
const char* _node_name;
NodePrefs* _node_prefs;
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 begin(NodePrefs* node_prefs, const char* build_date, const char* firmware_version);
void loop();
};