cauqleuir madre

Dependencies:   SDFileSystem mbed TFTLCD

Files at this revision

API Documentation at this revision

Comitter:
Danton
Date:
Sat Feb 02 03:05:33 2013 +0000
Parent:
26:dd8e83feefb9
Child:
28:4a233bc57aab
Commit message:
embettered colorCompute

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Feb 02 02:56:59 2013 +0000
+++ b/main.cpp	Sat Feb 02 03:05:33 2013 +0000
@@ -28,10 +28,12 @@
 {
     printf("ColorCompute\c\n");
     int aux= sizeOfBuffer+offset;
-    for(int i=offset;i<aux;i=i+4)
+    int j=offset;
+    for(int i=i;i<sizeOfBuffer;i=i+4)
     {
-        printf("%d",i);
-        colorBuffer[i]=buffer[i]<<16+buffer[i+1]<<8+buffer[i+2];
+        printf("%d ",i);
+        colorBuffer[j]=buffer[i]<<16+buffer[i+1]<<8+buffer[i+2];
+        j++;
     }
     printf("\n");
 }