TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface. forked from simon/textLCD and modified a bit
Fork of TextLCD by
Revision 8:228a730399f3, committed 2013-10-27
- 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 |
diff -r 44f34c09bd37 -r 228a730399f3 TextLCD.cpp --- 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);
diff -r 44f34c09bd37 -r 228a730399f3 TextLCD.h --- 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();