From 7264b28e62ab5e4085c6a734501e7579ea95ad2b Mon Sep 17 00:00:00 2001 From: philmoz Date: Wed, 23 Jul 2025 10:21:27 +1000 Subject: [PATCH] feat(color): increase RAM allocation to LVGL (#6447) e.g. for Lua scripts with many images --- radio/src/gui/colorlcd/lv_conf.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/radio/src/gui/colorlcd/lv_conf.h b/radio/src/gui/colorlcd/lv_conf.h index 67454607a..27c9c6217 100644 --- a/radio/src/gui/colorlcd/lv_conf.h +++ b/radio/src/gui/colorlcd/lv_conf.h @@ -57,7 +57,11 @@ #endif #if LV_MEM_CUSTOM == 0 /*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.*/ #define LV_MEM_ADR 0 /*0: unused*/