Jul 262012
 

Recently I bought some more Arduino “toys”, the Rainbow shield and an LCD shield. But no matter how I tried, I could not get both to work. Always errors like:

delayns() not declared in this scope

The reason for this is that the Arduino 1.0.1 environment is different from the latest pre 1.x version (0023). So if you include the following lines on top of your LIBRARIES (yes, you have to modify the old library files), things should work out:

#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif

At least I could compile my sketches, now lets see if they do what I told them to 🙂

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)