Taking pictures with the OV7670 at 17fps.

Dependencies:   ov7670_lib Project_test

Revision:
5:4135ec0f88e6
Parent:
4:d0d4760d32b2
Child:
8:36adb37e976d
--- a/main.h	Sat Feb 15 15:01:55 2014 +0000
+++ b/main.h	Mon Apr 06 10:09:18 2020 +0000
@@ -1,11 +1,10 @@
 #pragma once 
 #include "mbed.h"
 #include "ov7670.h"
-#include "MODSERIAL.h"
 
 
 
-MODSERIAL pc(USBTX,USBRX);
+Serial pc(USBTX,USBRX);
 Timer t;
 bool new_send = false;
 
@@ -18,11 +17,11 @@
 //Camera
 OV7670 camera
 (
-    p28,p27,            // SDA,SCL(I2C / SCCB)
-    p23,NC,p25,         // VSYNC,HREF,WEN(FIFO)  
-    Port0,0x07878000,   // PortIn data        p18(P0.26),p17(P0.25),p16(P0.24),p15(P0.23),p11(P0.18),p12(P0.17),p14(P0.16),p13(P0.15)
-    p26,p29,p30         // RRST,OE,RCLK
-); 
+    PTE25,PTE24,            // SDA,SCL(I2C / SCCB)
+    PTA1,PTC16,PTD2,         // VSYNC,HREF,WEN(FIFO)  
+    PTB23,PTA2,PTC2,PTC3,PTB11,PTB10,PTB3,PTB2,   // Ds       p18(P0.26),p17(P0.25),p16(P0.24),p15(P0.23),p11(P0.18),p12(P0.17),p14(P0.16),p13(P0.15)
+    PTB9,PTC4,PTC17         // RRST,OE,RCLK
+);  
 
 //RESET
 extern "C" void mbed_reset();