cauqleuir madre

Dependencies:   SDFileSystem mbed TFTLCD

Revision:
45:28f9c84be5ef
Parent:
44:7a39d772bf21
Child:
46:bad7d98b0ff8
--- a/main.cpp	Sat Feb 02 13:45:15 2013 +0000
+++ b/main.cpp	Sat Feb 02 13:47:54 2013 +0000
@@ -32,7 +32,7 @@
     for(int i=0;i<sizeOfBuffer;i=i+4)
     {
         
-        colorBuffer[j]=((buffer[i]<<16)&0xf800)+((buffer[i+1]<<6)&0x7e0)+((buffer[i+2]>>3)&0x1F);
+        colorBuffer[j]=((buffer[i]<<11)&0xf800)+((buffer[i+1]<<6)&0x7e0)+((buffer[i+2]>>3)&0x1F);
         //colorBuffer[j]=(0xff<<16)+(0x00<<8)+(0x00);
         //colorBuffer[j]=0xFFFFFF;
         //printf("%d ,%d ",j,colorBuffer[j]);