I want to introduce a boolean that is the first iteration of loop and then false every subsequent iteration. I want it invisible, so I have to modify loop in some way. Is that possible?
The way to do this isn't to overload the loop function, the way to do this is to abuse the linker and replace main(). The main.cpp file that gets used in the Arduino make prototypes main as
Both get compiled, but the |
|||
|
setup()
called once the first time, andloop()
called forever afterwards? What's the point? You should edit your question to make it much clearer what you really want. – jfpoilpret Apr 7 at 18:11