bump to 0.8.0

This commit is contained in:
Terrence
2024-11-14 23:15:43 +08:00
parent ddb375173e
commit ec918748f1
34 changed files with 1039 additions and 497 deletions

View File

@@ -123,10 +123,10 @@ void Display::UpdateDisplay() {
}
}
int battery_voltage;
int battery_level;
bool charging;
if (board.GetBatteryVoltage(battery_voltage, charging)) {
text += "\n" + std::to_string(battery_voltage) + "mV";
if (board.GetBatteryLevel(battery_level, charging)) {
text += "\nPower " + std::to_string(battery_level) + "%";
if (charging) {
text += " (Charging)";
}