Not a problem. One other thing: If your project includes a header file (which it should for multiple files), it should be included as:
?? #include "myHeaderFile.h"
and not
? #include <myHeaderFile.h>
If you use angle brackets (<>), the compiler only looks in the IDE's libraries subdirectory and default include path for the IDE. By using double quotes, the compiler first looks in the sketch directory for the header file and then on the default include path. You will need to have data declarations in the header file for any globals that are used in multiple source files. To get the most help from the compiler in terms of debugging, there should only be one *.ino file in a project--the file that contains setup() and loop(). All the rest should be *.cpp and a header file (*.h). The globals are defined in the *.ino file, but declared in the *.h file. (Define and declare are NOT the same thing, even though programmers are incredibly sloppy when using these terms.) If you use all *.ino files, you lose type checking across source files...bugs love to hide there!
Jack, W8TEE
On Monday, June 25, 2018, 5:58:00 AM EDT, Martin FKK <g4fkk@...> wrote:
Thanks for answering Craig Jack - I've been wondering about that for a few days :)? You learn something new every day.