1.ESP_IDF环境搭建(等待添加)
2.ESP32 创建工程(等待添加)
3.ESP32自定义组件(components)
3.1 万能Cmake模板:
1.最外层Cmake
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(hello-world)
2.自定义组件模板(components)
file(GLOB source *.c)
idf_component_register(SRCS ${source}
INCLUDE_DIRS “include”
)
3.使用方法
在components下建自己的需要的组件文件夹,然后在文件夹中在构建一个include文件夹,用来存放h文件。将.c文件放在与include平级目录下。
例子:
4. LVGL二维码移植
4.1 准备工作
1.二维码生成库链接