Added compatibility with Arduino SDK 22.

This commit is contained in:
FMC
2011-10-30 11:09:40 +01:00
parent 48e144b0e3
commit 9bcbf3b689
6 changed files with 33 additions and 3 deletions
+6 -1
View File
@@ -25,8 +25,13 @@
//
// @author F. Malpartida - fmalpartida@gmail.com
// ---------------------------------------------------------------------------
#include <inttypes.h>
#if (ARDUINO < 100)
#include <wiring.h>
#else
#include <Arduino.h>
#endif
#include <inttypes.h>
#include <Wire.h>
#include <I2CIO.h>
+8
View File
@@ -37,7 +37,11 @@
#include <string.h>
#include <inttypes.h>
#if (ARDUINO < 100)
#include <wiring.h>
#else
#include <Arduino.h>
#endif
#include <LCD.h>
// CLASS CONSTRUCTORS
@@ -173,7 +177,11 @@ void LCD::command(uint8_t value)
send(value, LOW);
}
#if (ARDUINO < 100)
void LCD::write(uint8_t value)
#else
size_t LCD::write(uint8_t value)
#endif
{
send(value, HIGH);
+6 -1
View File
@@ -324,7 +324,12 @@ public:
@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
+4
View File
@@ -32,7 +32,11 @@
#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:
+5 -1
View File
@@ -29,8 +29,12 @@
//
// @author F. Malpartida - fmalpartida@gmail.com
// ---------------------------------------------------------------------------
#include <inttypes.h>
#if (ARDUINO < 100)
#include <wiring.h>
#else
#include <Arduino.h>
#endif
#include <inttypes.h>
#include <I2CIO.h>
#include <LiquidCrystal_I2C.h>
+4
View File
@@ -75,7 +75,11 @@
#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: