Browse files

make InkShield Arduino 1.0 compatible

  • Loading branch information...
1 parent 81e58b6 commit b0565884bd600950bcfdbdac9e17624a2c7f39f6 @nrpatel nrpatel committed Dec 18, 2011
View
1 ArduinoLibraries/InkShield/InkShield.cpp
@@ -23,7 +23,6 @@
//* Includes
//******************************************************************************
-#include "WProgram.h"
#include "InkShield.h"
//******************************************************************************
View
4 ArduinoLibraries/InkShield/InkShield.h
@@ -22,7 +22,11 @@
#ifndef InkShield_h
#define InkShield_h
+#if defined(ARDUINO) && ARDUINO >= 100
+#include "Arduino.h"
+#else
#include "WProgram.h"
+#endif
class InkShieldA0A3
{
View
4 ArduinoLibraries/InkShieldLite/InkShieldLite.h
@@ -22,7 +22,11 @@
#ifndef InkShieldLite_h
#define InkShieldLite_h
+#if defined(ARDUINO) && ARDUINO >= 100
+#include "Arduino.h"
+#else
#include "WProgram.h"
+#endif
#include <avr/io.h>
View
1 ArduinoLibraries/InkShieldMega/InkShieldMega.cpp
@@ -23,7 +23,6 @@
//* Includes
//******************************************************************************
-#include "WProgram.h"
#include "InkShieldMega.h"
//******************************************************************************
View
4 ArduinoLibraries/InkShieldMega/InkShieldMega.h
@@ -22,7 +22,11 @@
#ifndef InkShieldMega_h
#define InkShieldMega_h
+#if defined(ARDUINO) && ARDUINO >= 100
+#include "Arduino.h"
+#else
#include "WProgram.h"
+#endif
class InkShieldA0A3
{

0 comments on commit b056588

Please sign in to comment.