This commit is contained in:
Steven Tracey 2024-11-20 11:06:51 -05:00
parent 240db9bfde
commit c5b8228d3d

View File

@ -30,10 +30,9 @@ int draw() {
UWORD ImageSize = ((EPD_2in13_V4_WIDTH % 8 == 0) ? (EPD_2in13_V4_WIDTH / 8) : (EPD_2in13_V4_WIDTH / 8 + 1)) * EPD_2in13_V4_HEIGHT;
if ((BlackImage = (UBYTE *) malloc(ImageSize)) == NULL) {
Debug("Failed to apply for black memory...\n");
free(ImageSize);
return -1;
}
Paint_NewImage(BlackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 0, WHITE);
Paint_NewImage(BlackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 90, WHITE);
Paint_Clear(WHITE);
Paint_DrawString(32, 10, "Hello, World!", &Font16, WHITE, BLACK);