Page 1 of 1

esp32s3 lvgl screen shifting error and flash data storage

Posted: Wed Mar 06, 2024 11:52 am
by Jack potter
I am using elecrow 5" ESP32 display, Arduino IDE to program, lvgl.h 8.3.6, esp32 2.0.3 version for one of my projects.

I've been running into some hurdles with my elecrow 5" ESP32 display project, particularly concerning the user interface (UI) stability. The issues seem to revolve around UART0 usage and data storage using the Preferences library & SPIFFS.

UART0 Usage:

Using UART0 introduces a noticeable delay in UI screen rendering. This delay leads to a shifting error on the screen, resulting in a less-than-desirable user experience. This delay persists until the UART0 operation is complete, impacting the overall usability of the device.

Preferences Library:

Instead of SPIFFS, I've been utilizing the Preferences library for data storage. However, when writing data to preferences, the UI screen shifts abruptly, disrupting the user experience momentarily until the writing process is complete.

I'm seeking advice and solutions from the community to address these challenges effectively, especially considering the shift from SPIFFS to the Preferences library.

Has anyone encountered similar issues with UART0 and the Preferences library on the ESP32 platform? How did you manage to mitigate them? Any insights, tips, or alternative approaches would be greatly appreciated.

I have attached the zip file of my code images and video too.

I
media_20240306_170712_5612232295693671259.jpg
screen shifting due to writing operation
media_20240306_170712_5612232295693671259.jpg (2.09 MiB) Viewed 1939 times