Diff: I2CTextLCD.h
- Revision:
- 1:0eb3365ec819
- Parent:
- 0:9218cf335f9b
- Child:
- 2:1c5dea5d8783
--- a/I2CTextLCD.h Sat Dec 18 20:06:14 2010 +0000 +++ b/I2CTextLCD.h Sun Dec 19 19:19:39 2010 +0000 @@ -30,6 +30,7 @@ */ #define E_ON 0x10 //P4 +#define BACKLIGHT_ON 0x20 //P5 #define RS_ON 0x80 //P7 namespace mbed { @@ -105,6 +106,7 @@ virtual void cls(); virtual void reset(); + virtual void backlight(bool on); protected: @@ -114,6 +116,7 @@ void writeByte(int value, bool rs); void writeNibble(int value, bool rs); void writeI2CByte(int data); + int readI2C(); virtual int _putc(int c); virtual int _getc(); virtual void newline(); @@ -125,6 +128,7 @@ I2C _i2c; int _i2cAddress; + bool _backlight; private: