Retire SquareLine: hand-coded gauge screen (oil quadrant dropped), LVGL lock, updates on change only; LVGL pool in PSRAM, millis tick, log off; 16 MB flash + OTA partitions; docs and wiki
This commit is contained in:
@@ -14,7 +14,14 @@
|
||||
|
||||
/* Memory settings */
|
||||
#define LV_MEM_CUSTOM 0 // Use LVGL's built-in memory manager
|
||||
#define LV_MEM_SIZE (64 * 1024U) // 64KB for LVGL heap
|
||||
/* 128 KB pool in PSRAM (2026-09-27, as on Controller A): the old 64 KB pool sat
|
||||
* in the scarce internal RAM. Draw buffers stay internal (SPI DMA). */
|
||||
#define LV_MEM_SIZE (128 * 1024U)
|
||||
#define LV_MEM_ADR 0
|
||||
#if LV_MEM_ADR == 0
|
||||
#define LV_MEM_POOL_INCLUDE <esp_heap_caps.h>
|
||||
#define LV_MEM_POOL_ALLOC(size) heap_caps_malloc((size), MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT)
|
||||
#endif
|
||||
|
||||
/* Display settings */
|
||||
#define LV_DPI_DEF 130 // DPI for 1.3" display
|
||||
@@ -26,10 +33,10 @@
|
||||
#define LV_USE_GPU_SDL 0
|
||||
|
||||
/* Logging */
|
||||
#define LV_USE_LOG 1
|
||||
#define LV_USE_LOG 0 // off: every log call costs CPU on the render path
|
||||
#if LV_USE_LOG
|
||||
#define LV_LOG_LEVEL LV_LOG_LEVEL_WARN // Warn level for debugging
|
||||
#define LV_LOG_PRINTF 1 // Use printf for logging
|
||||
#define LV_LOG_LEVEL LV_LOG_LEVEL_WARN
|
||||
#define LV_LOG_PRINTF 1
|
||||
#endif
|
||||
|
||||
/* Performance settings */
|
||||
@@ -37,7 +44,7 @@
|
||||
#define LV_USE_MEM_MONITOR 1 // Enable memory monitor (shows memory usage)
|
||||
#define LV_USE_REFR_DEBUG 0 // Disable refresh debug overlay
|
||||
|
||||
/* Font settings - Montserrat fonts disabled (using Ubuntu fonts from SquareLine Studio) */
|
||||
/* Font settings - Montserrat 14 only; the screen uses the Ubuntu fonts in src/assets */
|
||||
#define LV_FONT_MONTSERRAT_8 0
|
||||
#define LV_FONT_MONTSERRAT_10 0
|
||||
#define LV_FONT_MONTSERRAT_12 0
|
||||
@@ -128,8 +135,12 @@
|
||||
#define LV_USE_MSGBOX 0
|
||||
#define LV_USE_IMG_CACHE_DEF_SIZE 0 // Disable image cache
|
||||
|
||||
/* Tick settings */
|
||||
#define LV_TICK_CUSTOM 0
|
||||
/* Tick settings: LVGL reads millis() itself, no lv_tick_inc() bookkeeping */
|
||||
#define LV_TICK_CUSTOM 1
|
||||
#if LV_TICK_CUSTOM
|
||||
#define LV_TICK_CUSTOM_INCLUDE "Arduino.h"
|
||||
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (millis())
|
||||
#endif
|
||||
|
||||
/* Assert settings */
|
||||
#define LV_USE_ASSERT_NULL 1
|
||||
|
||||
Reference in New Issue
Block a user