Hi, please could someone answer some basic questions I have. I’m a bit dumb when it comes to file types. We have .h files, .cpp files and in the case of the Arduino .ino files.
As I understand it .h files are header files which effectively contain a sort of prototype for a class. Cpp file contain the implementation of the class. I don’t know what type of file the actual code file is, in the case of the Arduino it’s an ino file.
I’m asking because when I create a large project for the Arduino I like to separate off all the house keeping functions into a few separate ino files so that I can keep the meat of the code clean.
Please could someone tell me ho I can do this for the spark, can I just create a .h file and put them in there? I want any global variables I create in the main source file to be accessible to the additional fills, in effect I just want to create multiple ino files like I can in the Arduino IDE, I’d also like to know how .h, .cpp and .ino files differ from one another.
Thanks for reading, RIck.