Spark file extensions guide

Is there a guide to understand how to use all extensions (.ino .cpp .h etc etc) ?

No, not at the moment. The main difference is that .ino files go through a pre-processor that transforms them into .cpp files that can be compiled. For example, here is the .cpp version of Tinker. If you you were to represent this code as a .ino file in the Web IDE, you wouldn’t need the #include "application.h" because the pre-processor added it for you.

As far as the particulars of .h and .cpp files, the info about how those work is largely documented in other places on the web. Given this, I’m not sure how useful a guide for this would be. Do have any examples of particular questions a guide like this would answer?

3 Likes

Your answer is very completed !
No more need a guide :smile:
Thanks very much