Packed 12bit Raw image file load to display to Nokia LCD. Add function "blit12" to Nokia LCD for native 12bit color buffer.

Dependencies:   mbed

Revision:
4:f746ea56e891
Parent:
2:7cf441bf092d
--- a/NokiaLCD.cpp	Thu Feb 10 14:29:29 2011 +0000
+++ b/NokiaLCD.cpp	Thu Feb 10 14:44:49 2011 +0000
@@ -339,7 +339,7 @@
 
 void NokiaLCD::blit12(int x, int y, int width, int height, const unsigned char* colour12) {
     _cs = 0;
-    _window(x, y, width, height);
+    _window(x, y, width, height+2); // The reason is not understood.
 
     switch (_type) {
         case LCD6100:
@@ -349,7 +349,7 @@
              }
              break;
         case LCD6610:
-            for (int i=0; i<width*height*3/2; i++) { 
+            for (int i=0; i<width*height/2*3; i++) { 
                 data(colour12[i]); 
             }
             break;