使能 LVGL 库和 LVGL demo
3 Mar 2025
                    Read time: 2 minute(s)
                
    在 Luban-Lite 根目录下执行 scons --menuconfig,进入 menuconfig
            的功能配置界面,配置如下:
        Application options  --->
    *** Filesystem related ***
    [*] Using File System Image 0  --->
        --- Using File System Image 0
        Select File System Type (FATFS)  --->
        (packages/artinchip/lvgl-ui/aic_demo/base_demo/lvgl_src/) Data Directory
        (app.fatfs) Image Name
        [*] auto calcuate image size
    [ ] Using File System Image 1  ----
    *** lvgl demo select related ***
    -*- LVGL (official): powerful and easy-to-use embedded GUI library  --->
        (20)  Priority of LVGL thread
        (32768) Stack size of LVGL thread
        (5)   Display refresh period (ms)
        [ ]   Support SquareLine Studio
        [ ]   Enable built-in examples
        [ ]   Enable built-in demos
    -*- ArtInChip lvgl demo
        select lvgl demo (lvgl demo with basic function)  --->
            (X) lvgl demo with basic function
            ( ) lvgl demo of meter
        (16)  LVGL color depth(32/16)
        (8)   LVGL image cached number
    (/rodata/lvgl_data) LVGL Resource Directory根目录下有多个挂载点:
        /ram --挂载 ramdisk 文件系统 /rodata --对应 Using File System Image 0 中 Data Directory 中的资源文件 /data --对应 Using File System Image 1 中 Data Directory 中的资源文件 /sdcard --挂载 SD 卡 /udisk --挂载 U 盘
资源文件配置说明:
        - 不同的 demo 需要配置对应的资源路径,例如:lvgl demo with basic function 对应的资源路径为:packages/artinchip/lvgl-ui/aic_demo/base_demo/lvgl_src/
 - 上述配置中使用了 File System Image 0 分区来存储 demo 资源文件,所以我们配置 lvgl 的资源路径为/rodata/lvgl_data
 
注: 
            
    - LVGL color depth 可以配置为 16 或 32,16 表示显示 buffer 格式为 rgb565,32 表示显示格式为 argb8888, 此格式需要与 display 驱动中的 framebuffer 格式对应。
 - 可以通过 Stack size of LVGL thread 配置 LVGL 线程的堆栈大小,需配置合适的大小避免出现 stack 溢出。
 - 可以通过 LVGL image cached number 来配置图片缓存张数,可以通过图片缓存机制来提升 UI 流畅度,但是缓存越多,占用内存也越多。
 
