Replace the oled-display-library module by the upstream Zephyr solomon,ssd1306 display driver and the character framebuffer (CFB) subsystem, so that the external module can be removed from the manifest. - A new uext_oled shield adds the display to the UEXT I2C bus, which gets a uext_i2c node label in all boards. The display is enabled with -DSHIELD=uext_oled instead of CONFIG_UEXT_OLED_DISPLAY=y. - The display uses deferred init, so the application can power the UEXT port via the uext_en GPIO before initializing it. - The classic Adafruit 5x7 font is ported to a CFB font to keep the screen layout unchanged. The Libre Solar logo is shown for 2 seconds after startup. - CONFIG_UEXT_OLED_BRIGHTNESS is replaced by CONFIG_SSD1306_DEFAULT_CONTRAST. - The heap is enlarged for the CFB frame buffer. - oled.cpp is fixed for boards with PWM port or without load output and is only built if the display is enabled. - A build-only twister scenario with the shield is added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
# Main application configuration (overrides board-specific settings)
|
|
|
|
# only very small heap necessary for malloc in printf statements with %f
|
|
CONFIG_HEAP_MEM_POOL_SIZE=256
|
|
|
|
CONFIG_CPP=y
|
|
CONFIG_REQUIRES_FULL_LIBCPP=y
|
|
|
|
CONFIG_PICOLIBC_IO_FLOAT=y
|
|
|
|
CONFIG_WATCHDOG=y
|
|
CONFIG_TASK_WDT=y
|
|
CONFIG_THREAD_NAME=y
|
|
|
|
CONFIG_REBOOT=y
|
|
|
|
CONFIG_HWINFO=y
|
|
|
|
CONFIG_CRC=y
|
|
|
|
CONFIG_CONSOLE_SUBSYS=y
|
|
CONFIG_CONSOLE_GETCHAR=y
|
|
|
|
# Use minimal logging by default to save memory for STM32F0 with little RAM
|
|
CONFIG_LOG=y
|
|
CONFIG_LOG_MODE_MINIMAL=y
|
|
|
|
CONFIG_THINGSET=y
|
|
CONFIG_THINGSET_SDK=y
|
|
CONFIG_THINGSET_STORAGE=y
|
|
CONFIG_THINGSET_SERIAL=y
|
|
CONFIG_THINGSET_STORAGE_DATA_VERSION=6
|
|
CONFIG_THINGSET_NODE_NAME="Libre Solar MPPT"
|
|
|
|
# Must be lower than LED thread to avoid flickering in boards with charlieplexing
|
|
CONFIG_THINGSET_SDK_THREAD_PRIORITY=6
|
|
|
|
# Uncomment to disable regular data publication on ThingSet serial at startup
|
|
#CONFIG_THINGSET_REPORTING_LIVE_ENABLE_PRESET=n
|
|
|
|
# I2C OLED display in UEXT connector is enabled by building with -DSHIELD=uext_oled
|
|
|
|
# Select initial battery configuration: GEL (default), FLOODED, AGM, LFP, NMC or NMC_HV
|
|
#CONFIG_BAT_TYPE_???=y
|
|
|
|
# Change number of cells considering selected type (12V/24V battery by default if not set)
|
|
#CONFIG_BAT_NUM_CELLS=?
|