Worky plea
This commit is contained in:
parent
83a49eadf2
commit
5323faab57
@ -69,8 +69,9 @@ int draw() {
|
|||||||
startTime = clock();
|
startTime = clock();
|
||||||
Debug("Time Left: %dms\n", i);
|
Debug("Time Left: %dms\n", i);
|
||||||
int progWidth = (int)(((double)i / (double)(30 * 1000)) * 240);
|
int progWidth = (int)(((double)i / (double)(30 * 1000)) * 240);
|
||||||
Debug("Progress bar width: %d", progWidth);
|
Debug("Progress bar width: %d\n", progWidth);
|
||||||
Paint_DrawRectangle(10, 112, progWidth, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_FULL);
|
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);
|
EPD_2in13_V4_Display_Partial(BlackImage);
|
||||||
endTime = clock();
|
endTime = clock();
|
||||||
elapsedTime = (double)(endTime - startTime) / CLOCKS_PER_SEC;
|
elapsedTime = (double)(endTime - startTime) / CLOCKS_PER_SEC;
|
||||||
|
Loading…
Reference in New Issue
Block a user