I have code that uses the ADUINO define to distinguish between arduino 1.x and previous versions. That is eesential as the one uses Arduino.h and the other WProgram.h as a central include.
Unfortunately the VisualMicro addon defines ARDUINO as 10 and so the conditional defines in standard arduino code fail. Then WProgram.h is included instead of Arduino.h.
Code example:
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
The above will use WProgram.h if compiled with VisualMico as ARDUINO is defined as 10 and not 100.
See also arduino release notes: http://arduino.cc/en/Main/ReleaseNotes
Unfortunately the VisualMicro addon defines ARDUINO as 10 and so the conditional defines in standard arduino code fail. Then WProgram.h is included instead of Arduino.h.
Code example:
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
The above will use WProgram.h if compiled with VisualMico as ARDUINO is defined as 10 and not 100.
See also arduino release notes: http://arduino.cc/en/Main/ReleaseNotes