Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: TextLCD.h
- Revision:
- 1:5c7a96a6003b
- Parent:
- 0:6beb6f498640
diff -r 6beb6f498640 -r 5c7a96a6003b TextLCD.h --- a/TextLCD.h Mon Aug 09 14:17:02 2010 +0000 +++ b/TextLCD.h Wed Jun 05 11:09:14 2019 +0000 @@ -25,8 +25,8 @@ #include "mbed.h" -#define E_ON 0x10 -#define RS_ON 0x80 +#define E_ON 0x4 +#define RS_ON 0x1 /** A TextLCD interface for driving 4-bit HD44780-based LCDs * @@ -61,7 +61,7 @@ * @param d0-d3 Data lines * @param type Sets the panel size/addressing mode (default = LCD16x2) */ - TextLCD(PinName sda, PinName scl, int i2cAddress = 0x40, LCDType type = LCD16x2); + TextLCD(PinName sda, PinName scl, int i2cAddress = 0x7e, LCDType type = LCD16x2); #if DOXYGEN_ONLY /** Write a character to the LCD