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!

Files at this revision

API Documentation at this revision

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 {