As I understand, Arduino IDE considers two paths for the libraries:
first,
"C:\Program Files\Arduino\libraries"
and second, the "libraries" folder next to the schetchbook.
I have a configuration.h file, that I include in the main file, Test.ino
, like this:
#include <configuration.h>
and in the configuration.h
file I try to include SPI.h
like this:
#include <SPI.h>
But I get the following error:
fatal error: SPI.h: No such file or directory
It seems that I am obliged to include SPI.h
only from the ino file. But why?
And how can I do what I want here? do I have to change IDE?
P.S: the software is large and I am improving maintainability.