Extendes Version of TextLCD which scrolls oversized lines.
Dependents: RF22_MAX_test_Send
Extended version of TextLCD, which can scoll oversized lines. Uses a ticker!
Revision 4:92a07dbc9222, committed 2013-03-12
- Comitter:
- charly
- Date:
- Tue Mar 12 20:00:04 2013 +0000
- Parent:
- 3:1d7a7a249647
- Child:
- 5:e3b565c4190c
- Commit message:
- Strings with length = columns() can be displayed without scolling.
Changed in this revision
| TextLCDScroll.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/TextLCDScroll.cpp Tue Mar 12 19:40:29 2013 +0000
+++ b/TextLCDScroll.cpp Tue Mar 12 20:00:04 2013 +0000
@@ -82,7 +82,7 @@
locate(j,i);
// is string shorter than width of display
- if (strlen(line[i]) < columns()) {
+ if (strlen(line[i]) <= columns()) {
if (j < strlen(line[i])) {
putc(line[i][j]);
} else {
@@ -128,7 +128,7 @@
locate(j,i);
// is string shorter than width of display
- if (strlen(line[i]) < columns()) {
+ if (strlen(line[i]) <= columns()) {
if (j < strlen(line[i])) {
putc(line[i][j]);
} else {