Skip to main content
10 events
when toggle format what by license comment
Dec 16, 2019 at 16:17 history edited Joel Spolsky CC BY-SA 4.0
slightly clarified bullet #2
Aug 25, 2018 at 11:23 comment added gilhad header file is something different from header of funfction. In your example is writen void sendMessage(void); before sendMessage is used. (and #includes as I mentioned too). No other difference.
Aug 25, 2018 at 11:18 comment added Pharap @gilhad .ino files allow you to use your own functions without declaring them first, .cpp files do not, they require you to declare a function before it's used or the compiler won't know it exists. Here is an example. I wouldn't take "write its header before first use" to mean "you must forward-declare your functions before using them", because a header is a specific kind of file and it doesn't require a header file, it just requires a function declaration.
Aug 24, 2018 at 23:16 comment added gilhad @Pharap "for each function, which is used before declaration write its header before first use" is (IMHO) exactly that... and functions used after declaration are already declared. Or are there some other cases, where usual ino -> cpp needs it?
Aug 24, 2018 at 17:08 comment added Pharap You forgot about having to predeclare functions.
Jan 4, 2017 at 20:29 history edited gilhad CC BY-SA 3.0
added 59 characters in body
Jan 4, 2017 at 18:14 comment added Edgar Bonet Whereas it makes sense to pull WeAreLeka/Arduino-Makefile as a submodule of ladislas/Bare-Arduino-Project, it doesn't make sense to provide a direct link to that fork, as it has no added value over the original. If you do want to give a direct link to Arduino-Makefile, you should edit your answer in order to link to the real project.
Jan 4, 2017 at 17:00 comment added gilhad Just because I first found the Bare-Arduino, which used this version (and then patched it with the sudar version as I now see). Anyway it is able to compile my files against Arduino 1.8.0, so it could work as starting point. Or the original Sudars makefile, but the Bare project have nice examples, how to organise your project, which I think would help @Isuru with the start. And later he can migrate to other version/system. (I build simple one over that too, to help my projects, nothing much but helped me to sort my mind faster)
Jan 4, 2017 at 16:43 comment added Edgar Bonet The Makefile you are linking to seems like a slightly outdated fork of Sudar Muthu's Arduino-Makefile. Why not link to the original instead?
Jan 4, 2017 at 16:23 history answered gilhad CC BY-SA 3.0