Fork tetxldc
Fork of TextLCD_piano by
Diff: TextLCD.cpp
- Revision:
- 10:4276b56b4400
- Parent:
- 9:05c9b97e4a91
diff -r 05c9b97e4a91 -r 4276b56b4400 TextLCD.cpp --- a/TextLCD.cpp Mon Jul 02 17:58:56 2018 +0000 +++ b/TextLCD.cpp Tue Jul 03 02:04:42 2018 +0000 @@ -63,6 +63,7 @@ void TextLCD::cls() { writeCommand(0x01); // cls, and set cursor to 0 + wait(0.00164f); locate(0, 0); } @@ -71,7 +72,9 @@ _row = row; } - +/**int TextLCD::putc(int values) { + return(_putc(values)); + }**/ int TextLCD::_putc(int value) { if (value == '\n') { @@ -101,16 +104,16 @@ } void TextLCD::writeByte(int value) { - _e = 1; - wait(0.000001f); + _e = 1; + wait(0.000040f); _d = value >> 4; - wait(0.000001f); + wait(0.000040f); _e = 0; - wait(0.000001f); + wait(0.000040f); _e = 1; - wait(0.000001f); + wait(0.000040f); _d = value >> 0; - wait(0.000001f); + wait(0.000040f); _e = 0; }