Hello everybody!
Im trying to split my project into several subcomponents, so i can debug and update each component separately.
Now, the file structure looks something like this:
MainProject/
MainProject.ino
Module1/
Module1.h
Module1.cpp
Module1.ino
the Module1.ino is the test-enviroment specific to Module1 and should not be included in the MainProject.ino
The MainProject.ino contains:
#include "Module1/Module1.h"
The Module1.ino contains
#include "Module1.h"
and the Module1.cpp contains
#include "Module1.h"
Now, the Module1 compiles with no errors, but the MainProject.ino will not compile, blaming "undefined reference Module1::method()
Is this supposed to work?
Am i doing something wrong?
Is there another way to keep my modules separate, but included in my MainProject folder?
I understand that i should be able to do this using a standard library, moving th Module1/ to /Libraries/Module1
but am i allowed to have a .ino file inside the library folder?
..I really want to have a submodule test enviroment where i can test out the isolated submodule..