almindor / mipidsi

MIPI Display Serial Interface unified driver
MIT License
108 stars 46 forks source link

Support for ST7789 with display of 240x240 but frame buffer of 240x320 #30

Closed xgroleau closed 1 year ago

xgroleau commented 1 year ago

Some St7789 have a display of 240x240 but a frame buffer of 240x320 which causes issue when using inverted orientation since the image is draws in valid the valid frame buffer pixels, but are not show since they do not exist on the display itself.

Fixes #29. Piggy backed on what was done for the pico display by simply using an offset.

The st7789_240x240_b240x320 is quite long but I'm not sure how to keep it short and descriptive so I am open to suggestions.