Closed MNDJ777 closed 6 months ago
My 320240 TFT can only displays a limited part when enabling frame buffer, then I found that variable 'size' overflowed, where it should be set to uint32_t. It doesn't work under resolution at 320240, https://github.com/nopnop2002/esp-idf-st7789/blob/8adf642cc26cf5d5815fb09d3006d063cb7c826e/components/st7789/st7789.c#L1069
Will it work correctly if you change to uint32_t in 320x240 TFT?
Yes, it works perfectly now. before: after:
Thank you for the report. Fixed.
My 320240 TFT can only displays a limited part when enabling frame buffer, then I found that variable 'size' overflowed, where it should be set to uint32_t. It doesn't work under resolution at 320240, https://github.com/nopnop2002/esp-idf-st7789/blob/8adf642cc26cf5d5815fb09d3006d063cb7c826e/components/st7789/st7789.c#L1069