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 10:cec91d426d65, committed 2018-01-08
- Comitter:
- ritarosakai
- Date:
- Mon Jan 08 09:03:56 2018 +0000
- Parent:
- 9:496c520855a1
- Commit message:
- Updated
Changed in this revision
| TextLCD.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/TextLCD.cpp Mon Jan 08 07:21:35 2018 +0000
+++ b/TextLCD.cpp Mon Jan 08 09:03:56 2018 +0000
@@ -60,22 +60,6 @@
void TextLCD::cls()
{
- _e = 1;
- _rs = 0; // command mode
-
- wait(0.015); // Wait 15ms to ensure powered up
-
- // send "Display Settings" 3 times (Only top nibble of 0x30 as we've got 4-bit bus)
- for (int i=0; i<3; i++) {
- writeByte(0x3);
- wait(0.00164); // this command takes 1.64ms, so wait for it
- }
- writeByte(0x2); // 4-bit mode
- wait(0.000040f); // most instructions take 40us
-
- writeCommand(0x28); // Function set 001 BW N F - -
- writeCommand(0x0C);
- writeCommand(0x6); // Cursor Direction and Display Shift : 0000 01 CD S (CD 0-left, 1-right S(hift) 0-no, 1-yes
writeCommand(0x01); // cls, and set cursor to 0
wait(0.00164f); // This command takes 1.64 ms
locate(0, 0);
