If you get “error: WProgram.h: No such file or directory” while compiling, make sure to change

#include "WProgram.h"

to

#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif
in the header files of included libraries.
Advertisements