Skip to content

Commit

Permalink
small adjustment to loading progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Thieme-Garmann committed Jan 17, 2025
1 parent c2f68ba commit 7675ada
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion variants/sensebox_mcu_esp32s2/APOTA.ino
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ void displayStatusBar(int progress) {
display.fillRect(0, SCREEN_HEIGHT - 24, SCREEN_WIDTH-4, 8, BLACK); // Clear status bar area
display.drawRect(0, SCREEN_HEIGHT - 24, SCREEN_WIDTH-4, 8, WHITE); // Draw border
int filledWidth = (progress * SCREEN_WIDTH-4) / 100; // Calculate progress width
display.fillRect(1, SCREEN_HEIGHT - 23, filledWidth, 6, WHITE); // Fill progress bar
display.fillRect(1, SCREEN_HEIGHT - 23, filledWidth-4, 6, WHITE); // Fill progress bar

display.setCursor((SCREEN_WIDTH/2)-12, SCREEN_HEIGHT - 10);
display.setTextSize(1);
Expand Down

0 comments on commit 7675ada

Please sign in to comment.