diff --git a/include/lv_conf_v7.h b/include/lv_conf_v7.h index c5a6f9e9..abaf9cd9 100644 --- a/include/lv_conf_v7.h +++ b/include/lv_conf_v7.h @@ -88,6 +88,8 @@ typedef int16_t lv_coord_t; #ifndef LV_MEM_SIZE #if defined(ARDUINO_ARCH_ESP8266) # define LV_MEM_SIZE (12 * 1024U) // Minimum 12 Kb +#elif defined(ESP32S2) && defined(BOARD_HAS_PSRAM) +# define LV_MEM_SIZE (48 * 1024U) // 48Kb on ESP32-S2 with PSram #elif defined(ESP32S2) # define LV_MEM_SIZE (32 * 1024U) // 32Kb on ESP32-S2 #elif defined(ARDUINO_ARCH_ESP32) && defined(BOARD_HAS_PSRAM) diff --git a/user_setups/esp32/wt32-sc01.ini b/user_setups/esp32/wt32-sc01.ini index 9e98b4ce..1a8922ad 100644 --- a/user_setups/esp32/wt32-sc01.ini +++ b/user_setups/esp32/wt32-sc01.ini @@ -33,6 +33,7 @@ build_flags = -D TOUCH_RST=-1 ; not used, connected to 3.3V -D I2C_TOUCH_FREQUENCY=400000 -D I2C_TOUCH_ADDRESS=0x38 + -D LV_MEM_SIZE=60416U ;endregion ;region -- Library options -------------------------------