Update multi booter

add battery percentage displaying
This commit is contained in:
cuu
2025-06-01 00:15:57 +08:00
parent e403bc04d8
commit cb0b1fbb63
6 changed files with 47 additions and 10 deletions

View File

@@ -141,3 +141,11 @@ int keypad_get_key(void)
return act_key;
}
int keypad_get_battery() {
int bat_pcnt = read_battery();
bat_pcnt = bat_pcnt >> 8;
//int bat_charging = bitRead(bat_pcnt, 7);
bitClear(bat_pcnt, 7);
return bat_pcnt;
}