Add red to battery icons less than or equal to 25%

This commit is contained in:
KemoNine 2019-05-13 01:23:12 -04:00
parent a1672a7c13
commit d779adeee9
1 changed files with 2 additions and 2 deletions

View File

@ -115,10 +115,10 @@ void loop()
display.drawInvertedBitmap(0, 0, battery_50, 32, 32, GxEPD_BLACK);
}
else if (battery_percent > 25.0) {
display.drawInvertedBitmap(0, 0, battery_25, 32, 32, GxEPD_BLACK);
display.drawInvertedBitmap(0, 0, battery_25, 32, 32, GxEPD_RED);
}
else {
display.drawInvertedBitmap(0, 0, battery_0, 32, 32, GxEPD_BLACK);
display.drawInvertedBitmap(0, 0, battery_0, 32, 32, GxEPD_RED);
}
display.print(" ");
display.print(battery_percent);