TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface. forked from simon/textLCD and modified a bit

Dependents:   Robo

Fork of TextLCD by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
narendraj9
Date:
Sun Oct 27 09:15:48 2013 +0000
Parent:
7:44f34c09bd37
Commit message:
modified cls function

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	Sun Oct 27 09:15:48 2013 +0000
@@ -54,6 +54,12 @@
 }
 
 void TextLCD::cls() {
+    //writeCommand(0x01); // cls, and set cursor to 0
+    //wait(0.00164f);     // This command takes 1.64 ms
+    locate(0, 0);
+}
+
+void TextLCD::cls_all() {
     writeCommand(0x01); // cls, and set cursor to 0
     wait(0.00164f);     // This command takes 1.64 ms
     locate(0, 0);
--- a/TextLCD.h	Sat Dec 04 11:29:57 2010 +0000
+++ b/TextLCD.h	Sun Oct 27 09:15:48 2013 +0000
@@ -42,7 +42,7 @@
  */
 class TextLCD : public Stream {
 public:
-
+  
     /** LCD panel format */
     enum LCDType {
         LCD16x2     /**< 16x2 LCD panel (default) */
@@ -84,7 +84,7 @@
 
     /** Clear the screen and locate to 0,0 */
     void cls();
-
+    void cls_all();
     int rows();
     int columns();