Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MODSERIAL mbed ov7670
main.h
00001 #pragma once 00002 #include "mbed.h" 00003 #include "ov7670.h" 00004 #include "MODSERIAL.h" 00005 00006 00007 00008 MODSERIAL pc(USBTX,USBRX); 00009 Timer t; 00010 bool new_send = false; 00011 00012 DigitalOut led1(LED1); 00013 DigitalOut led2(LED2); 00014 DigitalOut led3(LED3); 00015 DigitalOut led4(LED4); 00016 00017 00018 //Camera 00019 OV7670 camera 00020 ( 00021 p28,p27, // SDA,SCL(I2C / SCCB) 00022 p23,NC,p25, // VSYNC,HREF,WEN(FIFO) 00023 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) 00024 p26,p29,p30 // RRST,OE,RCLK 00025 ); 00026 00027 //RESET 00028 extern "C" void mbed_reset(); 00029 00030 //Serial 00031 char word[25]; 00032 int t1 = 0; 00033 int t2 = 0; 00034 int t3 = 0; 00035 00036 // 00037 void parse_cmd(); 00038 void CameraSnap(); 00039 void CameraGrab();
Generated on Thu Jul 14 2022 05:16:00 by
1.7.2
OV7670 Camera