Fork tetxldc
Fork of TextLCD_piano by
Revision 10:4276b56b4400, committed 2018-07-03
- Comitter:
- aknin001
- Date:
- Tue Jul 03 02:04:42 2018 +0000
- Parent:
- 9:05c9b97e4a91
- Commit message:
- piano with 4 octaves and 8 notes, bug display notes
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 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; }
--- a/TextLCD.h Mon Jul 02 17:58:56 2018 +0000 +++ b/TextLCD.h Tue Jul 03 02:04:42 2018 +0000 @@ -88,14 +88,12 @@ * @param type Sets the panel size/addressing mode (default = LCD16x2) */ TextLCD(PinName rs, PinName rw, PinName e, PinName d0, PinName d1, PinName d2, PinName d3, LCDType type = LCD16x2); - -#if DOXYGEN_ONLY + #if DOXYGEN_ONLY /** Write a character to the LCD * * @param c The character to write to the display */ int putc(int c); - /** Write a formated string to the LCD * * @param format A printf-style format string, followed by the