Version 3: Trying to interleave capture and read

Dependencies:   ov7670_lib Project_test

Revision:
6:c7450b320c30
Parent:
5:4135ec0f88e6
Child:
7:9e4e66a8554e
--- a/main.cpp	Mon Apr 06 10:09:18 2020 +0000
+++ b/main.cpp	Mon Apr 06 10:26:11 2020 +0000
@@ -23,8 +23,8 @@
     int pixel2[QQVGA];
     camera.Init('y', QQVGA);
     pc.printf("Camera initiated");
-    //camera.CaptureNext();
-    //while(camera.CaptureDone() == false);  
+    camera.CaptureNext();
+    while(camera.CaptureDone() == false);  
     camera.ReadStart();  
         t1 = t.read_ms();
         t.start();
@@ -34,7 +34,7 @@
                //fprintf(fp,"%i", pixel[x]);
                //pixel2[x]=camera.ReadOnebyte();
                //fprintf(fp,"%i/n", pixel2[x]);
-               pc.putc(camera.ReadOnebyte());       
+               printf("%d ", camera.ReadOnebyte());       
         }
        
         camera.ReadStop();