Rotate
This commit is contained in:
parent
240db9bfde
commit
c5b8228d3d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user