TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface

Dependents:   TextLCD_HelloWorld analog_test AVR_standalone_writer XBeeApi_RemoteCommand ... more

Files at this revision

API Documentation at this revision

Comitter:
simon
Date:
Sat Dec 04 11:29:57 2010 +0000
Parent:
6:e4cb7ddee0d3
Child:
8:308d188a2d3a
Commit message:
Update pin names to d4-d7

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	Tue Nov 23 14:26:19 2010 +0000
+++ b/TextLCD.cpp	Sat Dec 04 11:29:57 2010 +0000
@@ -23,9 +23,9 @@
 #include "TextLCD.h"
 #include "mbed.h"
 
-TextLCD::TextLCD(PinName rs, PinName e, PinName d0, PinName d1,
-                 PinName d2, PinName d3, LCDType type) : _rs(rs),
-        _e(e), _d(d0, d1, d2, d3),
+TextLCD::TextLCD(PinName rs, PinName e, PinName d4, PinName d5,
+                 PinName d6, PinName d7, LCDType type) : _rs(rs),
+        _e(e), _d(d4, d5, d6, d7),
         _type(type) {
 
     _e  = 1;
--- a/TextLCD.h	Tue Nov 23 14:26:19 2010 +0000
+++ b/TextLCD.h	Sat Dec 04 11:29:57 2010 +0000
@@ -33,7 +33,7 @@
  * #include "mbed.h"
  * #include "TextLCD.h"
  * 
- * TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d0-d3
+ * TextLCD lcd(p10, p12, p15, p16, p29, p30); // rs, e, d4-d7
  * 
  * int main() {
  *     lcd.printf("Hello World!\n");
@@ -55,10 +55,10 @@
      *
      * @param rs    Instruction/data control line
      * @param e     Enable line (clock)
-     * @param d0-d3 Data lines
+     * @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 d0, PinName d1, PinName d2, PinName d3, LCDType type = LCD16x2);
+    TextLCD(PinName rs, PinName e, PinName d4, PinName d5, PinName d6, PinName d7, LCDType type = LCD16x2);
 
 #if DOXYGEN_ONLY
     /** Write a character to the LCD