cauqleuir madre
Dependencies: SDFileSystem mbed TFTLCD
Diff: main.cpp
- Revision:
- 44:7a39d772bf21
- Parent:
- 43:aae9babddc4d
- Child:
- 45:28f9c84be5ef
diff -r aae9babddc4d -r 7a39d772bf21 main.cpp --- a/main.cpp Sat Feb 02 13:29:32 2013 +0000 +++ b/main.cpp Sat Feb 02 13:45:15 2013 +0000 @@ -32,7 +32,7 @@ for(int i=0;i<sizeOfBuffer;i=i+4) { - colorBuffer[j]=(buffer[i]<<16)+(buffer[i+1]<<8)+(buffer[i+2]); + colorBuffer[j]=((buffer[i]<<16)&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]);