6.9.2. 参数配置

6.9.2.1. 使能LVGL库和LVGL demo

在 Luban-Lite根目录下执行 scons --menuconfig,进入 menuconfig 的功能配置界面,配置如下:

Application options  --->
    *** Filesystem related ***
    [*] Using File System Image 0  --->
        --- Using File System Image 0
        Select File System Type (FATFS)  --->
        (application/os/helloworld/lvgl/base_demo/lvgl_src/) Data Directory
        (app.fatfs) Image Name
        [*] auto calcuate image size
    [*] Using File System Image 1  ----
        Select File System Type (LittleFS)  --->
        (application/os/helloworld/lvgl/base_demo/data_src/) Data Directory
        (data.lfs) Image Name
        (4096) Erase block size
        (256) Page size
    *** lvgl demo select related ***
    -*- ArtInChip lvgl demo
          select lvgl demo (lvgl demo with basic function)  --->
          (X) lvgl demo with basic function
          ( ) lvgl demo of meter
          ( ) lvgl music demo

目前LVGL demo提供了三个示例,只能多选一:

  1. lvgl demo with basic function为默认demo,此demo演示了指针旋转,页面滑动等功能。

  2. lvgl demo of meter为仪表盘演示,当选中的时候,需要修改Using File System Image 0中的图片资源文件路径为: application/os/helloworld/lvgl/meter_demo/lvgl_src

  3. lvgl music demo为官方自带的music演示demo,此demo不需要配置资源文件,内部使用的都是build-in的图片

根目录下有四个挂载点

/ram        --ramfs文件系统,对应Using File System Image 0中Data Directory中的资源文件
/data       --挂载nor/nand文件系统,对应Using File System Image 1中Data Directory中的资源文件文件
/sdcard     --挂载SD卡
/udisk      --挂载U盘

注解

  • 目前演示demo把图片资源文件放在了Using File System Image 0中对应的Data Directory

  • 把视频文件放在Using File System Image 1中对应的Data Directory