2
Revision 9:69b27e45f43b, committed 2021-03-04
- Comitter:
- serg1958
- Date:
- Thu Mar 04 17:43:39 2021 +0000
- Parent:
- 8:308d188a2d3a
- Commit message:
- 1
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 308d188a2d3a -r 69b27e45f43b TextLCD.cpp --- a/TextLCD.cpp Thu Jan 02 21:07:01 2014 +0000 +++ b/TextLCD.cpp Thu Mar 04 17:43:39 2021 +0000 @@ -142,7 +142,7 @@ case LCD16x2: case LCD16x2B: default: - return 16; + return 20; } } @@ -154,6 +154,6 @@ case LCD16x2B: case LCD20x2: default: - return 2; + return 4; } }
diff -r 308d188a2d3a -r 69b27e45f43b TextLCD.h --- a/TextLCD.h Thu Jan 02 21:07:01 2014 +0000 +++ b/TextLCD.h Thu Mar 04 17:43:39 2021 +0000 @@ -45,7 +45,7 @@ /** LCD panel format */ enum LCDType { - LCD16x2 /**< 16x2 LCD panel (default) */ + LCD16x2 /**< 16x2 LCD panel (default) */ , LCD16x2B /**< 16x2 LCD panel alternate addressing */ , LCD20x2 /**< 20x2 LCD panel */ , LCD20x4 /**< 20x4 LCD panel */ @@ -58,7 +58,7 @@ * @param d4-d7 Data lines for using as a 4-bit interface * @param type Sets the panel size/addressing mode (default = LCD16x2) */ - TextLCD(PinName rs, PinName e, PinName d4, PinName d5, PinName d6, PinName d7, LCDType type = LCD16x2); + TextLCD(PinName rs, PinName e, PinName d4, PinName d5, PinName d6, PinName d7, LCDType type = LCD20x4); #if DOXYGEN_ONLY /** Write a character to the LCD