Colors are weird
This commit is contained in:
parent
7cf29ea6f9
commit
38ffb5fd29
@ -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);
|
||||||
@ -186,7 +186,7 @@ int draw() {
|
|||||||
double percentLeft = ((double)i / (double)(30 * 1000));
|
double percentLeft = ((double)i / (double)(30 * 1000));
|
||||||
progBarEndIndex = (int)(228 * percentLeft);
|
progBarEndIndex = (int)(228 * percentLeft);
|
||||||
while (progBarCurrentIndex < progBarEndIndex) {
|
while (progBarCurrentIndex < progBarEndIndex) {
|
||||||
Paint_DrawLine(progBarCurrentIndex, 111, progBarCurrentIndex, 93, WHITE, DOT_PIXEL_1X1, LINE_STYLE_SOLID);
|
Paint_DrawLine(progBarCurrentIndex, 111, progBarCurrentIndex, 93, BLACK, DOT_PIXEL_1X1, LINE_STYLE_SOLID);
|
||||||
++progBarCurrentIndex;
|
++progBarCurrentIndex;
|
||||||
}
|
}
|
||||||
EPD_2in13_V4_Display_Partial(BlackImage);
|
EPD_2in13_V4_Display_Partial(BlackImage);
|
||||||
|
Loading…
Reference in New Issue
Block a user