Incomplete fillscreen in landscape mode #2933
-
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 8 replies
-
Run the Read_User_Setup sketch and post the serial monitor output. |
Beta Was this translation helpful? Give feedback.
-
It's the same with |
Beta Was this translation helpful? Give feedback.
-
It's the same but colours are inverted. |
Beta Was this translation helpful? Give feedback.
-
I use PlatformIO without any changes Here's the full platformio.ini file
Is this what you asked me for? |
Beta Was this translation helpful? Give feedback.
-
Here's also the json file for my board. It's the PlatformIO native one.
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your help!
Doc says there are three boards:
I use the second one: X-NUCLEO-GFX01M2 (XNGFX01M2$AZ1) |
Beta Was this translation helpful? Give feedback.
-
I have run some tests and reproduced the problem. I have a work-around for you until I track down what is happening. Add the following line after tft.begin();
So your example should now look like this:
This then works and the screen is filled with red. The extra line should not be needed, so I will have to track down the root cause. |
Beta Was this translation helpful? Give feedback.
-
@Bodmer it works fine this way. |
Beta Was this translation helpful? Give feedback.
-
@Bodmer I've found that removing this line solves the problem too:
|
Beta Was this translation helpful? Give feedback.
-
The problem is specific to the STM32F processors when used with the ST7789V driver. There was a temporary fix done a long time ago to get around a problem #510 with that particular combination here: Changing the line to to disable the patch fixes the problem for ST7789V displays: This appears to be an issue with timing or line states as the two code lines should be equivalent. I will have to check if the fix breaks the library for the older ST7789 chips and older board packages before implementing it. I may have to create a specific driver switch for the V display variant. |
Beta Was this translation helpful? Give feedback.
-
I have updated the master library via #2942 Thanks for reporting this. |
Beta Was this translation helpful? Give feedback.
-
I've just tried the new lib, everything works fine. Thanks for everything, and especially for your responsiveness. |
Beta Was this translation helpful? Give feedback.
I have updated the master library via #2942
Thanks for reporting this.