Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling on arduino 1.0 #151

Open
equinoxefr opened this issue Mar 15, 2012 · 5 comments
Open

Compiling on arduino 1.0 #151

equinoxefr opened this issue Mar 15, 2012 · 5 comments

Comments

@equinoxefr
Copy link

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

@lemio
Copy link
Contributor

lemio commented Apr 4, 2012

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

@AndKe
Copy link

AndKe commented Apr 27, 2012

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

@KazW
Copy link

KazW commented May 20, 2012

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.

@stipmonster
Copy link

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

@KazW
Copy link

KazW commented May 21, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants