I'm doing a university thesis. I would to know how do I include external libraries. I have .h and .c files:
I created the folder "sketchbook/libraries" as required. Here I put my files. Then I included the #include statement in the sketch.
The problem is that libraries have a chain of inclusions of other headers (which are not in /usr/share/arduino/hardware/arduino/cores/arduino) that I have... this library is very huge!
Do you think I can include them manually? If so, where? In the folder of the sketch, or in the installation dir of Arduino?
I created the folder "sketchbook/libraries" as required. Here I put my files.
Your source files have to be placed into "sketchbook/libraries/".
lets says you named your library "MyFirstLib" then your .h and .c(pp) files have to be installed into "sketchbook/libraries/MyFirstLib"
@PaulS: the library is the libmodbus (or i'll try the freemodbus) you can see here: libmodbus in Launchpad
it's 80KB of code, i'll try to select only the code i need.
anyway my problem is that library was not written for avr, so it needs other headers file arduino doesn't have... could i copy that files in the project, even if they're not wrtten for avr?