Struggling to figure out how to include IDF components
Posted: Sat Jun 20, 2026 5:27 pm
I'm new to ESP, and have been tinkering with some examples for the Waveshare 3.4" LCD board. using IDF 5.5.4 with VScode.
There are two examples, which do pretty much all I need - 05_sdmmc and 07_Displaycolorbar.
I have both of these working fine on their own, but am having no luck combining them into one project, specifically figuring out how to enable components & have it recognise #include headers.
I'm sure I'm missing something fundamental but have spent ages looking at docs and numerous tutorial vids and am still none the wiser!
A simple example - in the LCD demo, I use so I can update the cache to display correctly, however if I include this in the sdmmc project main C source, I get a "file not found" error on this include file when building.
I've looked through all the files in both projects and can't for the life of me figure out how teh build system gets told which components need to be included, or where to find the include files. I thought this was to do with the sdkconfig, but as far as I can see this is about configuring components rather than specifying which components are included
One difference I see is that the LCD has a "managed_components" folder but sdmmc does not.
What am I missing?
There are two examples, which do pretty much all I need - 05_sdmmc and 07_Displaycolorbar.
I have both of these working fine on their own, but am having no luck combining them into one project, specifically figuring out how to enable components & have it recognise #include headers.
I'm sure I'm missing something fundamental but have spent ages looking at docs and numerous tutorial vids and am still none the wiser!
A simple example - in the LCD demo, I use
Code: Select all
#include "esp_cache.h"I've looked through all the files in both projects and can't for the life of me figure out how teh build system gets told which components need to be included, or where to find the include files. I thought this was to do with the sdkconfig, but as far as I can see this is about configuring components rather than specifying which components are included
One difference I see is that the LCD has a "managed_components" folder but sdmmc does not.
What am I missing?