Add Backlight and PowerSaveTimer

This commit is contained in:
Terrence
2025-03-05 09:37:13 +08:00
parent 3609aaa412
commit cead024698
61 changed files with 1331 additions and 3840 deletions

View File

@@ -16,7 +16,7 @@ private:
public:
Battery() : Thing("Battery", "电池管理") {
// 定义设备的属性
properties_.AddNumberProperty("level", "当前电量百分比0-100", [this]() -> int {
properties_.AddNumberProperty("level", "当前电量百分比", [this]() -> int {
auto& board = Board::GetInstance();
if (board.GetBatteryLevel(level_, charging_)) {
return level_;