I am trying to create a new library but have run into the issue of including it in my main .ino file. Below is my project structure.
Using #include “sensor.h” in the main.ino file produces the error “No such file or directory”.
I am trying to create a new library but have run into the issue of including it in my main .ino file. Below is my project structure.
Using #include “sensor.h” in the main.ino file produces the error “No such file or directory”.
The directories in libs must follow this file structure.
In particular, all .cpp and .h files should be in the “src” directory in “Sensor” as other directories are not added to the include path.