Open Foxstails opened 2 months ago
Hello,
Did you change the size of the bufferOld
and bufferNew
static buffers (EPD_DISPLAY_266_SIZE_V
and EPD_DISPLAY_266_SIZE_H
) on lines 60, 61 and lines 214, 218 of main.c to the correct screen size?
Have a nice day!
this works, is an example to change from landscape to portrait? Thank you
Hello,
I don't have an example for a portrait image display, but you'll probably need to invert the values of epdDev.x_dim
and epdDev.y_dim
. Possibly there are changes to be made in the epd_pset
function in order to fill the buffer “correctly”, knowing that the origin of the screen in this code is taken in the upper left corner (looking at the screen with its connector to the left).
For information, here's how a frame is represented in the buffer for display on the screen. The buffers of the fastUpdateDisplay
function respect this setting.
hello, I tried this program and I tried changing it to 2.9 inch with the format as below: // RetargetInit(&huart1); // printf epd.spi = &hspi1;
but why doesn't the window adjust to the screen?
I tried checking in UG_WindowCreate I tried changing changing wnd->xs = 0; becomes wnd->xs = -90;
but the window still doesn't fit the screen. Are there any variables that need to be improved? Thank You