Using the following 5 inch touchscreen
https://www.aliexpress.us/item/3256804766379290.html?
Squareline studio generated UI includes buttons that toggle colors when pressed
causes the display to glitch. If I simply touch anywhere else on the touchscreen, no
glitching occurs, it is only when pressing the Squareline studio generated UI buttons that the glitch occurs.
Tried changing the GFX library versions from (v 1.2.9( to (v 1.5.6)
Tried changing the LVGL versions from (v 8.3.3) to (v 8.3.11)
Note: Pressing the touchscreen anywhere does it is only when pressing the not result in the display glitch, it is only when pressing the LVGL buttons that have an animated color toggle where the display glitches.
So, I am sure that the display drivers and libraries are OK, I believe that the LVGL animation timing is conflicting with the display refresh timing. They must be getting out of sync somehow.
Finally, I tried changing the following settings in the LVGL config file.
No effect on the issue.
“lv_config.h”
/Default display refresh period. LVG will redraw changed areas with this period time/
#define LV_DISP_DEF_REFR_PERIOD 15 /[ms]/ //15
/Input device read period in milliseconds/
#define LV_INDEV_DEF_READ_PERIOD 30 /[ms]///30