Driver for Text OLED display - 20x4 Winstar or Newhaven, with Winstar WS0010 driver IC

Files at this revision

API Documentation at this revision

Comitter:
RodColeman
Date:
Mon Jan 21 11:26:17 2013 +0000
Parent:
2:c7834290ea1c
Commit message:
added return value for out-of-range column address.

Changed in this revision

TextOLED20x4.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TextOLED20x4.cpp	Wed Dec 19 14:25:18 2012 +0000
+++ b/TextOLED20x4.cpp	Mon Jan 21 11:26:17 2013 +0000
@@ -155,7 +155,9 @@
                     return 0x94 + column;
                 case 3:
                     return 0xd4 + column;
-            }/*
+            }
+            return 0x80 + column;
+            /*
         case LCD16x2B:
             return 0x80 + (row * 40) + column;
         case LCD16x2: