TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface. This version handles rs and rw pins

Fork of TextLCD by Simon Ford

Revision:
8:ae61b88ec9e7
Parent:
7:44f34c09bd37
--- 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