Hello in my arduino code i simple want to include another file like this:

#include "letters.h"

but it says

 error: letters.h: No such file or directory

the letters.h is definitely there, right next to the ino file from which i compile.

link|improve this question

50% accept rate
feedback

1 Answer

up vote 2 down vote accepted

You don't need to include, just call functions from another file. It handles for you.

link|improve this answer
yep, but only if the other files also ends with .ino – clamp Feb 26 at 12:34
Arduino says that the programming language of platform is "Arduino Programming Language", not C or C++ (they gotta be kidding =) ). But it parses your .pde (or .ino) files to a .cpp file under temp folder of your OS. .h files may not be added. One possible way can be moving your header files to "ardunio include directory" and using angle brackets instead. But changing the file extension might be easier. – Onur Feb 26 at 12:59
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.