cauqleuir madre
Dependencies: SDFileSystem mbed TFTLCD
Diff: main.cpp
- Revision:
- 46:bad7d98b0ff8
- Parent:
- 45:28f9c84be5ef
- Child:
- 47:295031bba3c2
diff -r 28f9c84be5ef -r bad7d98b0ff8 main.cpp --- a/main.cpp Sat Feb 02 13:47:54 2013 +0000 +++ b/main.cpp Sat Feb 02 13:53:22 2013 +0000 @@ -32,7 +32,8 @@ for(int i=0;i<sizeOfBuffer;i=i+4) { - colorBuffer[j]=((buffer[i]<<11)&0xf800)+((buffer[i+1]<<6)&0x7e0)+((buffer[i+2]>>3)&0x1F); + colorBuffer[j]=RGB(buffer[i],buffer[i+1],buffer[i+2]); + //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]);