v2

Dependencies:   ov7670 FastPWM

Revision:
0:520e7ccaa52d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.h	Tue Jul 30 09:05:12 2019 +0000
@@ -0,0 +1,35 @@
+#pragma once 
+#include "mbed.h"
+#include "ov7670.h"
+#include "FastPWM.h" 
+
+
+
+
+Timer t;
+bool new_send = false;
+
+
+
+//Camera
+OV7670 camera
+(
+    D14,D15,            // SDA,SCL(I2C / SCCB)
+    D9,D8,NC,         // VSYNC,HREF,WEN(FIFO)  
+    PortB,0xFF,   // 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)
+    NC,NC,D7         // RRST,OE,PCLK
+); 
+
+//RESET
+extern "C" void mbed_reset();
+
+//Serial
+char word[25];
+int t1 = 0; 
+int t2 = 0;
+int t3 = 0;
+
+//
+void parse_cmd();
+void CameraSnap();
+void CameraGrab();