Closed KiraVerSace closed 3 years ago
after try too many times,include changing the row and column offset, I think it's a bug.
If I change the width and height to 360 360 , it can fill all the screen.
Please give me some tips.
Define the display size in portrait orientation as noted here and in example https://github.com/Bodmer/TFT_eSPI/blob/master/User_Setups/Setup135_ST7789.h#L5-L6.
The display driver addresses a total area of 240 x 320 pixels and different suppliers map the actual display pixels to different positions in the total area. So if the change above does not work then you have a new display variant and the offsets for your display will need to be determined empirically (to do this set the size to 240x 320 and determine the coordinate of the top left pixel in the display by creating a test sketch..
Follow your tips, I change the width to 135 and the height 240, the problem is still exist, and if I comment the #define CGRAM_OFFSET, the display will be abnormally,the picture is uncomment.
Please help me,if I use the library adafruit-st7789, it can work!
Thank you for your help.
Down load the latest (2.2.20 ) library as a zip file direct from Github. Use this setup as the basis for your tests with NO modifications other than pin settings and processor related settings. Run the "Read_User_Setup" exmple to make sure you have selected the correct setup in "User_Setup_Select.h", post the serial monitor output here so I can see all the settings you are using.
yeap, thank you for you fix the bug, I will try to enable the DMA in stm32 to drive the screen, improve the fps! [Link removed] Thank you very much!
After five hours study, I still can not slove the problem. I use the screen without rst, ST7789 1.14 and 135* 240 Here is my setup:
and here is my main.c
thisi is display picture https://imgchr.com/i/0eyfMQ