添加自定义组件相关

Moderator: ESP_ZT

nanling
Posts: 6
Joined: Tue Jul 05, 2022 9:52 am

添加自定义组件相关

Postby nanling » Tue Jul 05, 2022 9:59 am

1.jpg
1.jpg (207.08 KiB) Viewed 4863 times
这是我的项目结构,在components下,我自定义了三个组件,分别为my_gpio,my_timer,my_seg,每个组件都添加了CMAKE,并且my_gpio和my_timer组件已经能成功使用,但是我my_seg组件和前两者结构一致,CMAKE我也写了,我不知道为什么my_seg组件就找不到my_seg.h头文件,图片中下部分是报错信息,中上部分是my_seg中的CMAKE

nanling
Posts: 6
Joined: Tue Jul 05, 2022 9:52 am

Re: 添加自定义组件相关

Postby nanling » Wed Jul 06, 2022 9:21 am

没事了,我解决了,#include "../../main/main.h"就好了

Who is online

Users browsing this forum: No registered users and 12 guests