mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 05:36:37 +00:00
Set larger LV_MEM_SIZE for PSram enabled devices
This commit is contained in:
parent
efe621fd56
commit
4635931ba6
@ -88,8 +88,12 @@ typedef int16_t lv_coord_t;
|
|||||||
#ifndef LV_MEM_SIZE
|
#ifndef LV_MEM_SIZE
|
||||||
#if defined(ARDUINO_ARCH_ESP8266)
|
#if defined(ARDUINO_ARCH_ESP8266)
|
||||||
# define LV_MEM_SIZE (12 * 1024U) // Minimum 12 Kb
|
# define LV_MEM_SIZE (12 * 1024U) // Minimum 12 Kb
|
||||||
|
#elif defined(ESP32S2) && defined(DBOARD_HAS_PSRAM)
|
||||||
|
# define LV_MEM_SIZE (48 * 1024U) // 48Kb on ESP32-S2 with PSram
|
||||||
#elif defined(ESP32S2)
|
#elif defined(ESP32S2)
|
||||||
# define LV_MEM_SIZE (32 * 1024U) // 32Kb on ESP32-S2
|
# define LV_MEM_SIZE (32 * 1024U) // 32Kb on ESP32-S2
|
||||||
|
#elif defined(ARDUINO_ARCH_ESP32) && defined(DBOARD_HAS_PSRAM)
|
||||||
|
# define LV_MEM_SIZE (64 * 1024U) // 64Kb on ESP32 with PSram
|
||||||
#elif defined(ARDUINO_ARCH_ESP32)
|
#elif defined(ARDUINO_ARCH_ESP32)
|
||||||
# define LV_MEM_SIZE (48 * 1024U) // 48Kb on ESP32
|
# define LV_MEM_SIZE (48 * 1024U) // 48Kb on ESP32
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user