前置条件
- 会使用Linux FrameBuffer
前往:上级目录的 Linux-Framebuffer编程.md
- 会使用/dev/input/event*
前往:上级目录的 Linux-input-event.md
流程
- 下载lvgl源码
https://github.com/lvgl/lvgl/
- 删除没有用的文件和文件夹

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