Colors are weird

This commit is contained in:
Steven Tracey 2024-11-20 16:59:06 -05:00
parent 7cf29ea6f9
commit 38ffb5fd29

View File

@ -151,7 +151,7 @@ int draw() {
Debug("Code: %s\n", code);
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);
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));
progBarEndIndex = (int)(228 * percentLeft);
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;
}
EPD_2in13_V4_Display_Partial(BlackImage);