Clear white?
This commit is contained in:
parent
583589c384
commit
57e1e8b63b
@ -151,7 +151,7 @@ int draw() {
|
|||||||
Debug("Code: %s\n", code);
|
Debug("Code: %s\n", code);
|
||||||
Paint_DrawString(5, 5, code, &Font24, WHITE, BLACK);
|
Paint_DrawString(5, 5, code, &Font24, WHITE, BLACK);
|
||||||
|
|
||||||
Paint_DrawRectangle(10, 112, 240, 92, BLACK, DOT_PIXEL_1X1, DRAW_FILL_FULL);
|
Paint_DrawRectangle(10, 112, 240, 92, WHITE, DOT_PIXEL_1X1, DRAW_FILL_FULL);
|
||||||
EPD_2in13_V4_Display_Base(BlackImage);
|
EPD_2in13_V4_Display_Base(BlackImage);
|
||||||
|
|
||||||
Paint_NewImage(BlackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 90, WHITE);
|
Paint_NewImage(BlackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 90, WHITE);
|
||||||
@ -168,6 +168,7 @@ int draw() {
|
|||||||
Debug("Time Left: %d\n", i);
|
Debug("Time Left: %d\n", i);
|
||||||
double percentLeft = ((double)i / (double)(30 * 1000));
|
double percentLeft = ((double)i / (double)(30 * 1000));
|
||||||
progBarEndIndex = (int)(228 * percentLeft);
|
progBarEndIndex = (int)(228 * percentLeft);
|
||||||
|
Paint_ClearWindows(progBarCurrentIndex, 111, progBarEndIndex, 93, WHITE);
|
||||||
while (progBarCurrentIndex < progBarEndIndex) {
|
while (progBarCurrentIndex < progBarEndIndex) {
|
||||||
Paint_DrawLine(progBarCurrentIndex, 111, progBarCurrentIndex, 93, BLACK, DOT_PIXEL_1X1, LINE_STYLE_SOLID);
|
Paint_DrawLine(progBarCurrentIndex, 111, progBarCurrentIndex, 93, BLACK, DOT_PIXEL_1X1, LINE_STYLE_SOLID);
|
||||||
++progBarCurrentIndex;
|
++progBarCurrentIndex;
|
||||||
|
Loading…
Reference in New Issue
Block a user