Commits

F Malpartida committed 61f1274

Added compatibility with Arduino SDK 22.

Comments (0)

Files changed (6)

 //
 // @author F. Malpartida - fmalpartida@gmail.com
 // ---------------------------------------------------------------------------
+#if (ARDUINO <  100)
+#include <wiring.h>
+#else
+#include <Arduino.h>
+#endif
+
 #include <inttypes.h>
-#include <Arduino.h>
 #include <Wire.h>
 #include <I2CIO.h>
 
 #include <string.h>
 #include <inttypes.h>
 
+#if (ARDUINO <  100)
+#include <wiring.h>
+#else
 #include <Arduino.h>
+#endif
 #include <LCD.h>
 
 // CLASS CONSTRUCTORS
    send(value, LOW);
 }
 
+#if (ARDUINO <  100)
+void LCD::write(uint8_t value) 
+#else
 size_t LCD::write(uint8_t value) 
+#endif
 {
    send(value, HIGH);
    
     
     @param      value Value to write to the LCD.
     */
-   size_t write(uint8_t value);
+#if (ARDUINO <  100)
+   virtual oid write(uint8_t value);
+#else
+   virtual size_t write(uint8_t value);
+#endif
+
    
    /*!
     @function

LiquidCrystal.cpp

 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
+#if (ARDUINO <  100)
+#include <wiring.h>
+#else
 #include <Arduino.h>
+#endif
 #include <LiquidCrystal.h>
 
 // When the display powers up, it is configured as follows:

LiquidCrystal_I2C.cpp

 //
 // @author F. Malpartida - fmalpartida@gmail.com
 // ---------------------------------------------------------------------------
+#if (ARDUINO <  100)
+#include <wiring.h>
+#else
+#include <Arduino.h>
+#endif
 #include <inttypes.h>
-#include <Arduino.h>
 #include <I2CIO.h>
 #include <LiquidCrystal_I2C.h>
 

LiquidCrystal_SR.cpp

 #include <stdio.h>
 #include <string.h>
 #include <inttypes.h>
+#if (ARDUINO <  100)
+#include <wiring.h>
+#else
 #include <Arduino.h>
+#endif
 #include <LiquidCrystal_SR.h>
 
 // When the display powers up, it is configured as follows: