Sprinter
Sprinter copied to clipboard
Compiling on arduino 1.0
Hi,
Here's a little patch to build Sprinter with arduino 1.0. I don't now if it's clean but it work's ;-)
http://pastebin.com/7Ub8hjD9
Pierre
The best is to make Sprinter compatible with both Arduino 1.0 and Arduino 23. With using this kind of code: #if defined(ARDUINO) && ARDUINO >= 100 #include "Arduino.h" #else #include "WProgram.h" #endif
lemio: Thank you for the solution. This should definitively be a part of the source.
I've added lemio's fix to a pull request, because it seems to be the best solution. But it should be noted that when the IDE updates the pde to an ino file, if the pde and ino file are both present, compiling breaks. This minor caveat shouldn't affect anyone because this isn't the default behaviour of the Arduino IDE and only happens if you change the default behaviour and paste in the file.
The new version can open pde files, so that is not a problem.
I know, please read my comment again. The default behaviour is for the Arduino IDE to replace a pde file with an ino file, but it can be changed.