Worky plea

This commit is contained in:
Steven Tracey 2024-11-20 14:46:35 -05:00
parent 83a49eadf2
commit 5323faab57

View File

@ -69,8 +69,9 @@ int draw() {
startTime = clock();
Debug("Time Left: %dms\n", i);
int progWidth = (int)(((double)i / (double)(30 * 1000)) * 240);
Debug("Progress bar width: %d", progWidth);
Paint_DrawRectangle(10, 112, progWidth, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_FULL);
Debug("Progress bar width: %d\n", progWidth);
Paint_DrawRectangle(10, 112, 240 - progWidth, 102, BLACK, DOT_PIXEL_1X1, DRAW_FILL_FULL);
Paint_DrawRectangle(10, 102, 240 - progWidth, 92, WHITE, DOT_PIXEL_1X1, DRAW_FILL_FULL);
EPD_2in13_V4_Display_Partial(BlackImage);
endTime = clock();
elapsedTime = (double)(endTime - startTime) / CLOCKS_PER_SEC;