What do you want to achieve?
Compile any LVGL Demo without flickering.
What have you tried so far?
Arduino IDE 2.x and latest Arduino_GFX and LVGL and all demos are able to compile but screen flickers. The precompiled binary from vendor works fine. I have two of them and all the same problem. No idea what to fix.
Screenshot or video
SquareLine Studio version: 1.23
Operating system: Windows 10
Target hardware: ESP32-4827S043 board from SUNTON
Can you send a video about the flickering? It’d help a lot the figure out what can be the root of the problem.
Not easy to see. One pixel is on, the next is off.
The display is okay.
Please see attached video.
Or not. I’m not allowed to upload video. I’m new.
Can you allow to upload video?
I’ve increased your trust level. Now you should be able to upload videos.
It’s really hard to see So every second pixel is incorrect? If so, I think it’s a mismatch between LVGL’s and the display driver’s color depth configuration. E.g. the display driver somehow works with 32 bit data, but LVGL is configured to 16 bit (
What is interesting here is that in these cases usually the colors are messed up as well.
Hi. I compare the values. My project is coded by an external guy and the same code is running correct if he compile it and if I compile it flickers. Library’s have same version. And the demos also flickers when I compile it. The same as binary works fine.
There must be an (simple?) problem. Color depth is possible. I can check tomorrow.
Another video with my two identical displays. One is self compiled and the other is demo binary from seller.
I am unsure what the problem is.
I compared the display settings but it flickers.
What is the driver model? LVGL relies on GFX and then also TFT_eSPI?
It’s up to the implementation. You can use any libraries you wish.
Yes, of course. I just can not find the error and also the manufacturer writes only that it works with him. I am a bit at a loss. As a test I take LVGLWIDGETS and it flickers…Sorry. Is not your problem. But for 4 weeks I try and just can not find it. Have also tried another PC, other Arduino version and various libraries. It flickers.
It should be a project to sell and so of course it is not functional…
The problem must be fundamental that also the demos have the same problem as my own project.
I’m sorry to hear that, it’s really painful…
What I suggest is trying out the driver without LVGL. Just fill a rectangle in the middle of the display with red and see what happens.
Yes…it flickers. try without LVGL. But i know it can run without flickering. Perhaps it is not flickering but an problem of redraw… If you see from buttom up…in an angle.
If you see the problem without LVGL too, unfortunately I can’t help much.
I’d check the pixel clock config of the TFT, if it’s too slow or fast it can cause similar issues.