A driver code library for Text LCD panels using the 4-bit HD44780 lcd display driver.
Fork of TextLCD by
Diff: TextLCD.cpp
- Revision:
- 8:122fc41ed965
- Parent:
- 7:44f34c09bd37
diff -r 44f34c09bd37 -r 122fc41ed965 TextLCD.cpp --- a/TextLCD.cpp Sat Dec 04 11:29:57 2010 +0000 +++ b/TextLCD.cpp Sun Dec 09 09:43:55 2012 +0000 @@ -129,6 +129,7 @@ return 0x80 + (row * 40) + column; case LCD16x2: case LCD20x2: + case LCD40x2: default: return 0x80 + (row * 0x40) + column; } @@ -136,6 +137,8 @@ int TextLCD::columns() { switch (_type) { + case LCD40x2: + return 40; case LCD20x4: case LCD20x2: return 20; @@ -153,6 +156,7 @@ case LCD16x2: case LCD16x2B: case LCD20x2: + case LCD40x2: default: return 2; }