Finally reversing battery level
This commit is contained in:
parent
af0e105366
commit
a13936c35e
@ -475,9 +475,8 @@ void drawBatteryLevel() {
|
|||||||
|
|
||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < 5; i++) {
|
||||||
int p = round((100 / 5) * i);
|
int p = round((100 / 5) * i);
|
||||||
if (p <= level)
|
if (p <= level) {
|
||||||
{
|
u8g2.drawBox(x + 4 + (3 * (4-i)), y + 2, 2, 5);
|
||||||
u8g2.drawBox(x + 4 + (3 * i), y + 2, 2, 5);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user