After spending hours in front of the computer, I managed to compile and display the demo project “Futuristic_Ebike” on my 480x272 display. To do this, I used the LVGL and LovyanGFX libraries; I unsuccessfully tried the Arduino_GFX_Library but my display doesn’t seem to work well with it.
I should mention that I compiled the sketch using LVGL 8.3.0dev library. These are the problems I have encountered:
when starting the program, the bottom part of the display is not drawn, but touching the screen near the sliders completes the screen rendering. Modifying any text with an event does not change it. This does not happen (so everything works fine) when I set LV_USE_PERF_MONITOR 1 to display CPU usage and FPS count. It seems that screen refresh is missing during the static phase!
Pressing the BTN BG2 button, switching to the battery group, LV_USE_PERF_MONITOR 0, the wave and particulate animations work correctly, and modifying the text with events works fine.
Thanks for the reply!
I tried the 8.3.5 version but without success, indeed now the animation of the particulate matter has also disappeared but not of the waves!
So even with 8.3.5 the whole display is not drawn!
What more can I try?
I don’t know lgfx so I don’t really know. But what you can try is adding e.g. a 100 ms delay at the end of the flush_cb. It will be super slow but ensure that the DMA finishes. If it solves the issue we will know where to search.
The problem has been solved, the ARDUINO_GFX and LOVYANGFX drivers are not perfectly compatible with my display.
Luckily the LOVYANGFX developer was able to solve the problem by modifying the library, probably the modification will be carried over to new versions of the library.
So all ok, thank you all!