Add red to battery icons less than or equal to 25%
This commit is contained in:
parent
a1672a7c13
commit
d779adeee9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue