feat(color): increase RAM allocation to LVGL (#6447)
e.g. for Lua scripts with many images
This commit is contained in:
@@ -57,7 +57,11 @@
|
|||||||
#endif
|
#endif
|
||||||
#if LV_MEM_CUSTOM == 0
|
#if LV_MEM_CUSTOM == 0
|
||||||
/*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/
|
/*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/
|
||||||
#define LV_MEM_SIZE (1024U * 1024U) /*[bytes]*/
|
#if defined(SIMU)
|
||||||
|
#define LV_MEM_SIZE (4 * 1024U * 1024U) /*[bytes]*/
|
||||||
|
#else
|
||||||
|
#define LV_MEM_SIZE (2 * 1024U * 1024U) /*[bytes]*/
|
||||||
|
#endif
|
||||||
|
|
||||||
/*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
|
/*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/
|
||||||
#define LV_MEM_ADR 0 /*0: unused*/
|
#define LV_MEM_ADR 0 /*0: unused*/
|
||||||
|
|||||||
Reference in New Issue
Block a user