How / where to include?
Posted: Mon Apr 26, 2021 9:44 am
Hi, I am pretty new to the esp-idf for VSC. I succesfully installed the extension, read the docs (Tutorials, Basic Usage) and ran several examples. Now I want to transfer an existing Arduino code (.ino) to the new environment. I created a folder and a project (took the "Hello World" example as a kind of template). I copied the code in my .ino in the hello_world_main.c file and started building.
My .ino contains several includes (.h). Not surprisingly, the builder tells me that it can not find those files. I have some questions:
1) How do I import the includes in my project? Is there a command for that?
2) Is there a way to store commonly used includes such that different projects can use them?
3) What is the best way to start a project from scratch? I see several options. Preferably I don't want to start from an example. I I have to start from a template, I want the template to be as lean/empty as possible.
Great if someone could boost my learning cycle
Fred
My .ino contains several includes (.h). Not surprisingly, the builder tells me that it can not find those files. I have some questions:
1) How do I import the includes in my project? Is there a command for that?
2) Is there a way to store commonly used includes such that different projects can use them?
3) What is the best way to start a project from scratch? I see several options. Preferably I don't want to start from an example. I I have to start from a template, I want the template to be as lean/empty as possible.
Great if someone could boost my learning cycle
Fred