mirror of
https://github.com/fmalpartida/New-LiquidCrystal.git
synced 2026-07-27 19:56:57 +00:00
Added compatibility with Arduino SDK 22.
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user