st7789_mpy
st7789_mpy copied to clipboard
My screen is 240x280,How should I modify parameters to fit the screen.
I made changes here
WIDTH_240 = [(240, 280, 0, 20), (280, 240, 20, 0), (240, 240, 0, 80), (240, 240, 80, 0)]
But there is still a large part below that cannot show how to make changes
According to https://github.com/Bodmer/TFT_eSPI/pull/1681 the offset should be 20.
st7789.ST7789(spi, 280, 240, xstart=20 (or ystart=20))