Screen blackout elecrow 5" display using lvgl.h when using more number of widgets

screen blackout elecrow 5" display using lvgl.h when using more number of widgets. i have enough flash memory (4Mb) for those UI files including my code takes everything total takes 1.49 Mb.

"Sketch uses 677245 bytes (21%) of program storage space. Maximum is 3145728 bytes.
Global variables use 142748 bytes (43%) of dynamic memory, leaving 184932 bytes for local variables. Maximum is 327680 bytes"

1 Like

How have you configured your lv_conf.h.
Specifically on the memory section

#define LV_USE_STDLIB_MALLOC    LV_STDLIB_BUILTIN

    /** Size of memory available for `lv_malloc()` in bytes (>= 2kB) */
    #define LV_MEM_SIZE (64 * 1024U)          /**< [bytes] */
1 Like