Sketch include file with functions

Hi all,

I’ve a sketch folder where I have main .ino file. I want to include to this sketch additional file with some functions.

But if I do #include functions.c compiler say me errors, for simple istruction like digitalRead:

'Serial' undeclared (first use in this function)
'LOW' undeclared (first use in this function)
'OUTPUT' undeclared (first use in this function)

How can I include of a file with functions without create a library?

Try here.

How can I include of a file with functions without create a library?

You will have far higher chances of success when you realize that the Arduino is programmed using C++, which means that the ino file is converted to a cpp file, not a c file.

Just add another .ino file into your program directory The Arduino IDE will automatically include it.

...R