|
@@ -9,7 +9,7 @@
|
|
|
|
|
|
//Update the battery reading from ADC pin
|
|
|
void updateBatteryReading(){
|
|
|
- batRemain = 80;
|
|
|
+ batRemain = 19;
|
|
|
}
|
|
|
|
|
|
//Draw the battery icon at the bottom right hand corner
|
|
@@ -26,9 +26,9 @@ void drawBatteryIcon() {
|
|
|
display.drawRoundRect(iconBaseX, iconBaseY, 40, 20, 3, GxEPD_BLACK);
|
|
|
display.fillRoundRect(iconBaseX + 40, iconBaseY + 5, 4, 10, 3, GxEPD_BLACK);
|
|
|
//Internal bar
|
|
|
- int maxBarWidth = 36;
|
|
|
+ int maxBarWidth = 34;
|
|
|
int barWidth = int(float(batRemain)/100.0 * maxBarWidth);
|
|
|
- display.fillRoundRect(iconBaseX + 2, iconBaseY + 2, barWidth, 16, 3, barColor);
|
|
|
+ display.fillRoundRect(iconBaseX + 3, iconBaseY + 3, barWidth, 14, 3, barColor);
|
|
|
|
|
|
//Draw percentage
|
|
|
int16_t tbx, tby; uint16_t tbw, tbh;
|