TextLCD library for controlling various LCD panels based on the HD44780 4-bit interface

Dependents:   TextLCD_HelloWorld analog_test AVR_standalone_writer XBeeApi_RemoteCommand ... more

Files at this revision

API Documentation at this revision

Comitter:
simon
Date:
Thu May 27 18:03:45 2010 +0000
Parent:
3:2a46d5820a78
Child:
5:a53b3e2d6f1e
Commit message:

Changed in this revision

TextLCD.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TextLCD.cpp	Thu May 27 17:56:12 2010 +0000
+++ b/TextLCD.cpp	Thu May 27 18:03:45 2010 +0000
@@ -126,11 +126,11 @@
                     return 0xd4 + column;
             }
         case LCD16x2B:
-            return 0x80 + (row * 0x40) + column;
+            return 0x80 + (row * 40) + column;
         case LCD16x2:
         case LCD20x2:
         default:
-            return 0x80 + (row * 40) + column;
+            return 0x80 + (row * 0x40) + column;
     }
 }