knxdisplay/sdkconfig.defaults
2026-02-04 18:18:07 +01:00

39 lines
1.2 KiB
Plaintext

# LVGL Fonts for Widget Editor
# Enable multiple font sizes for flexible widget configuration
CONFIG_LV_FONT_MONTSERRAT_14=y
CONFIG_LV_FONT_MONTSERRAT_18=y
CONFIG_LV_FONT_MONTSERRAT_22=y
CONFIG_LV_FONT_MONTSERRAT_28=y
CONFIG_LV_FONT_MONTSERRAT_36=y
CONFIG_LV_FONT_MONTSERRAT_48=y
# Keep LVGL draw thread stack reasonable to avoid xTaskCreate failures
CONFIG_LV_DRAW_THREAD_STACK_SIZE=32768
# Use C library malloc instead of LVGL builtin - enables PSRAM usage
CONFIG_LV_USE_BUILTIN_MALLOC=n
CONFIG_LV_USE_CLIB_MALLOC=y
# Increase draw layer buffer for large icons (250px icons need ~120KB)
CONFIG_LV_DRAW_LAYER_SIMPLE_BUF_SIZE=131072
# Backup LVGL heap size (used if builtin malloc is enabled)
CONFIG_LV_MEM_SIZE_KILOBYTES=512
# Enable object names for LVGL debug mapping
CONFIG_LV_USE_OBJ_NAME=y
# Enable FreeType fonts for extended glyph coverage (e.g. umlauts)
CONFIG_LV_USE_FREETYPE=y
CONFIG_ESP_LVGL_ADAPTER_ENABLE_FREETYPE=y
# Increase main task stack for FreeType (needs ~16KB+)
CONFIG_ESP_MAIN_TASK_STACK_SIZE=16384
# PSRAM configuration for large allocations
# Allocations > 1KB go to PSRAM to avoid internal RAM exhaustion
CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=1024
# Allow PSRAM as malloc target
CONFIG_SPIRAM_USE_MALLOC=y