From 8139d6ff073a87392d9502d50da37a5aedf16ac5 Mon Sep 17 00:00:00 2001 From: Vilem Zavodny Date: Wed, 10 Apr 2024 16:18:38 +0200 Subject: [PATCH] feat(LVGL port): Generate C arrays for images during build process --- components/esp_lvgl_port/CHANGELOG.md | 13 +- components/esp_lvgl_port/README.md | 24 + .../examples/touchscreen/main/CMakeLists.txt | 3 + .../touchscreen/main/images/.gitignore | 1 + .../touchscreen/main/images/esp_logo.png | Bin 0 -> 6639 bytes .../examples/touchscreen/main/main.c | 10 +- components/esp_lvgl_port/idf_component.yml | 2 +- .../esp_lvgl_port/project_include.cmake | 59 +++ examples/display/main/CMakeLists.txt | 12 +- examples/display/main/esp_logo.c | 423 ------------------ examples/display/main/esp_text.c | 198 -------- examples/display/main/images/esp_logo.c | 129 ++++++ examples/display/main/images/esp_logo.png | Bin 0 -> 6639 bytes examples/display/main/images/esp_text.c | 73 +++ examples/display/main/images/esp_text.png | Bin 0 -> 3217 bytes examples/display_rotation/main/CMakeLists.txt | 13 +- .../display_rotation/main/images/.gitignore | 1 + 17 files changed, 328 insertions(+), 633 deletions(-) create mode 100644 components/esp_lvgl_port/examples/touchscreen/main/images/.gitignore create mode 100644 components/esp_lvgl_port/examples/touchscreen/main/images/esp_logo.png create mode 100644 components/esp_lvgl_port/project_include.cmake delete mode 100644 examples/display/main/esp_logo.c delete mode 100644 examples/display/main/esp_text.c create mode 100644 examples/display/main/images/esp_logo.c create mode 100644 examples/display/main/images/esp_logo.png create mode 100644 examples/display/main/images/esp_text.c create mode 100644 examples/display/main/images/esp_text.png create mode 100644 examples/display_rotation/main/images/.gitignore diff --git a/components/esp_lvgl_port/CHANGELOG.md b/components/esp_lvgl_port/CHANGELOG.md index 3994b5012..b6e2ee84d 100644 --- a/components/esp_lvgl_port/CHANGELOG.md +++ b/components/esp_lvgl_port/CHANGELOG.md @@ -1,16 +1,17 @@ # Changelog -## 2.0.1 +## 2.1.0 ### Features - Added unit test -- Allow to sleep main LVGL task -- Wake LVGL task from touch and display, when set big maximum sleep -- Allow to select display color mode (only with LVGL9) +- Allowed to sleep main LVGL task +- Allowed wake LVGL task from touch and display, when set big maximum sleep +- Allowed to select display color mode (only with LVGL9) +- Added script for generating C array images during build (depends on LVGL version) ### Fixes -- Apply display rotation from configuration -- Wait for stop task when deinit +- Applied display rotation from configuration +- Added wait for stop task when deinit - Added esp_idf_version.h ## 2.0.0 diff --git a/components/esp_lvgl_port/README.md b/components/esp_lvgl_port/README.md index 329d6b08f..6f6765869 100644 --- a/components/esp_lvgl_port/README.md +++ b/components/esp_lvgl_port/README.md @@ -280,6 +280,30 @@ If the SRAM is insufficient, you can use the PSRAM as a canvas and use a small t } ``` +### Generating images (C Array) + +Images can be generated during build by adding these lines to end of the main CMakeLists.txt: +``` +# Generate C array for each image +lvgl_port_create_c_image("images/logo.png" "images/" "ARGB8888" "NONE") +lvgl_port_create_c_image("images/image.png" "images/" "ARGB8888" "NONE") +# Add generated images to build +lvgl_port_add_images(${COMPONENT_LIB} "images/") +``` + +Usage of create C image function: +``` +lvgl_port_create_c_image(input_image output_folder color_format compression) +``` + +Available color formats: +L8,I1,I2,I4,I8,A1,A2,A4,A8,ARGB8888,XRGB8888,RGB565,RGB565A8,RGB888,TRUECOLOR,TRUECOLOR_ALPHA,AUTO + +Available compression: +NONE,RLE,LZ4 + +**Note:** Parameters `color_format` and `compression` are used only in LVGL 9. + ## Power Saving The LVGL port can be optimized for power saving mode. There are two main features. diff --git a/components/esp_lvgl_port/examples/touchscreen/main/CMakeLists.txt b/components/esp_lvgl_port/examples/touchscreen/main/CMakeLists.txt index cf2c455cb..a9741b610 100644 --- a/components/esp_lvgl_port/examples/touchscreen/main/CMakeLists.txt +++ b/components/esp_lvgl_port/examples/touchscreen/main/CMakeLists.txt @@ -1,2 +1,5 @@ idf_component_register(SRCS "main.c" INCLUDE_DIRS ".") + +lvgl_port_create_c_image("images/esp_logo.png" "images/" "ARGB8888" "NONE") +lvgl_port_add_images(${COMPONENT_LIB} "images/") diff --git a/components/esp_lvgl_port/examples/touchscreen/main/images/.gitignore b/components/esp_lvgl_port/examples/touchscreen/main/images/.gitignore new file mode 100644 index 000000000..09b2ac1d1 --- /dev/null +++ b/components/esp_lvgl_port/examples/touchscreen/main/images/.gitignore @@ -0,0 +1 @@ +*.c \ No newline at end of file diff --git a/components/esp_lvgl_port/examples/touchscreen/main/images/esp_logo.png b/components/esp_lvgl_port/examples/touchscreen/main/images/esp_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..510b6a5299bea6eed35247037b09a0d84cdb8aa3 GIT binary patch literal 6639 zcmVQ`NQp)=p+JFd*-loB#sK`y?Zf$1sX^q*@=<)~liw)M~BITdP%jYxPpK zkE_3mg4$ZGz1ChIs8m{fR4Y|cc}+4AB?*X3feIuUP*8+nW|Hi6|40UtlatBGNe1fo z53u&$Yp<}**=O(d+Jvtt7@&5K^ED<+0Z<3PmTBq&&;ju00CfVq8$_FlX*08I1MxCU=}ft>H|@W$>E<8<6RI|5b=t7f8>LT3ReQYvI>a%)ccv~M-^d4 z_!pR;O_BBSQT`7;st8ZRQ-4Jfb*r-=a4mt(1yEB#)@un^R6lmgpJ~aGR0a9!;w!6w z9&DX9ZE#Ih@*)DRVqjVYS^tv>3%dI6e`4HpYXiX;mW5l{m(PI6h?uo-mR6hjZJEcwq!g7-QD!MH%+Sji?V02(~rgI9Va2J5{ zQJFU)3Bp2q%62;igNX|8GbdEcJ5>e5I{=0P*djou)(1jc3iXeB8@|qvPXnkoDQ6ml z{Q&;Lgr}6Fr@UeGBe~Nvb-EyNKY-@4=Km6Y0lKKS-)s~mD*Vd@_I)|CJzYnpzi1j5&46Sg*wt*Pl4_#~LmFGoNFNC8+1<^@V?#9yp)yrH3% zZK?SH-3-85=G+X>9ZDed3$qLiD}VutdtHA8_**#)7=NuFH|6~7)Tn6AIvx1q# z+eBDU?+?FH?8DveQ;%b&Cn~aaB|L8LKm2N1u_9UeP=knhoIeKP*P7vP?%#Xx%n5C6 zT{(Td&U*peQmQ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aVn``JAfj(i_CNw)8-OL<-QB(tw$%elDK`T)wr}6Q zV8?=&UV3S`=tJ$6xv^fz8-{WIB=~$Uw{82eh;>$s0RY)-_CWv_qlQj(tB`k5IBV6O zux1@IYu2n+;l8PIWNCqI+s_cuSpY)MvKSH@n0av~lX)RRoeID&r%jvo%?Ne+=6}&h zQp)@0&Yk;*SS)rqfD-}CLhXKXU;rD5Xe~3Z0&wp{$DuOwFcE#MDG&RJy%oSXy?!!S zc6D_*LWltX<93~iNV_qZ&1P2$AzmP&r2tN5=0o9rc5p55A%L|29?#`+cZYSha0y!h zyhlXc%zXDm4}xOk(zwkn!!R~z%C_t30??-Ct(5-)Uw(8G3|j^>00000NkvXXu0mjf DF3bGa literal 0 HcmV?d00001 diff --git a/examples/display_rotation/main/CMakeLists.txt b/examples/display_rotation/main/CMakeLists.txt index 944764dd2..d1e80f216 100644 --- a/examples/display_rotation/main/CMakeLists.txt +++ b/examples/display_rotation/main/CMakeLists.txt @@ -1,4 +1,11 @@ -file(GLOB_RECURSE IMAGE_SOURCES images/*.c) - -idf_component_register(SRCS "main.c" ${IMAGE_SOURCES} +idf_component_register(SRCS "main.c" INCLUDE_DIRS ".") + +if(COMMAND lvgl_port_create_c_image) + lvgl_port_create_c_image("images/esp_logo.png" "images/" "ARGB8888" "NONE") + lvgl_port_add_images(${COMPONENT_LIB} "images/") +else() + file(GLOB_RECURSE IMAGE_SOURCES images/*.c) + target_sources(${COMPONENT_LIB} PRIVATE ${IMAGE_SOURCES}) + idf_build_set_property(COMPILE_OPTIONS "-DLV_LVGL_H_INCLUDE_SIMPLE=1" APPEND) +endif() diff --git a/examples/display_rotation/main/images/.gitignore b/examples/display_rotation/main/images/.gitignore new file mode 100644 index 000000000..09b2ac1d1 --- /dev/null +++ b/examples/display_rotation/main/images/.gitignore @@ -0,0 +1 @@ +*.c \ No newline at end of file