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.
Fork of TextLCD by
Revision 8:ae61b88ec9e7, committed 2012-07-27
- Comitter:
- scachat
- Date:
- Fri Jul 27 20:18:10 2012 +0000
- Parent:
- 7:44f34c09bd37
- Commit message:
- add rw pin handling
Changed in this revision
TextLCD.cpp | Show annotated file Show diff for this revision Revisions of this file |
TextLCD.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/TextLCD.cpp Sat Dec 04 11:29:57 2010 +0000 +++ b/TextLCD.cpp Fri Jul 27 20:18:10 2012 +0000 @@ -23,11 +23,12 @@ #include "TextLCD.h" #include "mbed.h" -TextLCD::TextLCD(PinName rs, PinName e, PinName d4, PinName d5, - PinName d6, PinName d7, LCDType type) : _rs(rs), +TextLCD::TextLCD(PinName rs, PinName rw,PinName e, PinName d4, PinName d5, + PinName d6, PinName d7, LCDType type) : _rs(rs),_rw(rw), _e(e), _d(d4, d5, d6, d7), _type(type) { + _rw=0; _e = 1; _rs = 0; // command mode
--- a/TextLCD.h Sat Dec 04 11:29:57 2010 +0000 +++ b/TextLCD.h Fri Jul 27 20:18:10 2012 +0000 @@ -58,7 +58,7 @@ * @param d4-d7 Data lines for using as a 4-bit interface * @param type Sets the panel size/addressing mode (default = LCD16x2) */ - TextLCD(PinName rs, PinName e, PinName d4, PinName d5, PinName d6, PinName d7, LCDType type = LCD16x2); + TextLCD(PinName rs, PinName rw,PinName e, PinName d4, PinName d5, PinName d6, PinName d7, LCDType type = LCD16x2); #if DOXYGEN_ONLY /** Write a character to the LCD @@ -100,7 +100,7 @@ void writeCommand(int command); void writeData(int data); - DigitalOut _rs, _e; + DigitalOut _rs,_rw, _e; BusOut _d; LCDType _type;