Test Code for OV7670 Camera module with FIFO AL422
Dependencies: MODSERIAL mbed ov7670
You can find more information in this page: https://mbed.org/users/edodm85/notebook/ov7670-camera-module/
Diff: main.h
- Revision:
- 2:bbd557817319
- Parent:
- 0:19429e334b75
- Child:
- 4:d0d4760d32b2
diff -r 922cfb5e36ba -r bbd557817319 main.h
--- a/main.h Sun Mar 10 13:20:27 2013 +0000
+++ b/main.h Sat Mar 16 13:45:09 2013 +0000
@@ -16,10 +16,6 @@
//Camera
-#define SIZEX (160)
-#define SIZEY (120)
-#define SIZE (SIZEX*SIZEY)
-
OV7670 camera
(
p28,p27, // SDA,SCL(I2C / SCCB)
@@ -28,19 +24,16 @@
p26,p29,p30 // RRST,OE,RCLK
);
-unsigned char bank0 [SIZE];
-unsigned char *bank1 = (unsigned char *)(0x2007C000);
-
//RESET
extern "C" void mbed_reset();
//Serial
-char word[8];
+char word[25];
int t1 = 0;
int t2 = 0;
int t3 = 0;
//
void parse_cmd();
-void CameraSnap(char c);
+void CameraSnap();
void CameraGrab();
OV7670 Camera