Sprinter icon indicating copy to clipboard operation
Sprinter copied to clipboard

Compiling on arduino 1.0

Open equinoxefr opened this issue 12 years ago • 5 comments

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

equinoxefr avatar Mar 15 '12 17:03 equinoxefr

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 avatar Apr 04 '12 19:04 lemio

lemio: Thank you for the solution. This should definitively be a part of the source.

AndKe avatar Apr 27 '12 06:04 AndKe

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.

KazW avatar May 20 '12 16:05 KazW

The new version can open pde files, so that is not a problem.

stipmonster avatar May 21 '12 18:05 stipmonster

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.

KazW avatar May 21 '12 23:05 KazW