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: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 |
--- 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();
