前置条件

  • 会使用Linux FrameBuffer

前往:上级目录的 Linux-Framebuffer编程.md

  • 会使用/dev/input/event*

前往:上级目录的 Linux-input-event.md

流程

  1. 下载lvgl源码
https://github.com/lvgl/lvgl/
  1. 删除没有用的文件和文件夹

1

  1. 将lv_conf_template.h复制并改名为lv_conf.h

  2. 修改lv_conf.h:

    1. lv_conf.h中的**#if 0**为#if 1,
    2. 修改lv_conf.h中LV_COLOR_DEPTH 色深
    3. 修改lv_conf.h中LV_MEM_CUSTOM开启自动分配内存
  3. 在src同级目录新建porting文件夹用来存放lvgl整合触摸和显示代码