mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
refactor(lcd): use LZ4-compressed binary images in i80_controller example
- Remove the EXAMPLE_LCD_IMAGE_SOURCE Kconfig option (embedded binary vs
file system) and always load images from LittleFS.
- Convert the PNG images into LZ4-compressed LVGL binary images (.bin)
at
build time using LVGLImage.py, and flash them to a LittleFS partition.
- Upgrade lvgl to 9.6.0 and add the espressif/lz4 component; link the
external LZ4 library into lvgl.
- Split the example: main.c focuses on the esp_lcd i80 API, while the
LVGL
porting (lvgl_port.c) and the UI (lvgl_demo_ui.c) live in separate
files.
- Rework the demo animation to use the LVGL animation engine (lv_anim)
with
easing paths instead of a manual software timer for smoother
rendering.
- Remove the embedded C image arrays (esp_logo.c, esp_text.c) and the
obsolete sdkconfig.ci.image_in_{bin,fs} variants.
This commit is contained in:
@@ -4,8 +4,3 @@ include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
|
||||
idf_build_set_property(MINIMAL_BUILD ON)
|
||||
project(parlio_simulate)
|
||||
|
||||
# TODO IDF-15784: remove
|
||||
# lvgl upstream sets locals without reading them; silence -Wunused-but-set-variable
|
||||
idf_component_get_property(lvgl_lib lvgl__lvgl COMPONENT_LIB)
|
||||
target_compile_options(${lvgl_lib} PRIVATE -Wno-unused-but-set-variable)
|
||||
|
||||
@@ -3,5 +3,5 @@ set(embedded_images)
|
||||
file(GLOB_RECURSE embedded_images images/*.c)
|
||||
|
||||
idf_component_register(SRCS "parlio_simulate_example_main.c" "lvgl_demo_ui.c" ${embedded_images}
|
||||
PRIV_REQUIRES esp_driver_gpio esp_driver_parlio esp_lcd
|
||||
PRIV_REQUIRES esp_driver_gpio esp_driver_parlio esp_lcd esp_timer
|
||||
INCLUDE_DIRS ".")
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
dependencies:
|
||||
lvgl/lvgl: "9.2.2"
|
||||
lvgl/lvgl: "9.6.0"
|
||||
|
||||
Reference in New Issue
Block a user