OV7670 without FIFO, SCCB protocol rewritten.
Fork of ov7670s by
Revision 2:7fa4be5a4952, committed 2017-09-26
- Comitter:
- josephjins11
- Date:
- Tue Sep 26 09:17:55 2017 +0000
- Parent:
- 1:6fde2d3aea7b
- Commit message:
- hi
Changed in this revision
diff -r 6fde2d3aea7b -r 7fa4be5a4952 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Sep 26 09:17:55 2017 +0000 @@ -0,0 +1,20 @@ +#include <stdio.h> +#include "mbed.h" +#include "ov7670sreg.h" +#include "ov7670s.h" +#include "FastPWM.h" + +Serial pc(USBTX, USBRX); +/*#if defined(TARGET_WIZwiki_W7500) + OV7670 s(A4,A5,D11,PortC,8,D1); + +#endif*/ +OV7670 s(PB_3,PB_10,PA_10,PortC,8,PB_12); + +int main() +{ + pc.baud(115200); + s.Init("BAW",19200); + + + } \ No newline at end of file
diff -r 6fde2d3aea7b -r 7fa4be5a4952 ov7670s.cpp --- a/ov7670s.cpp Tue Feb 16 14:37:26 2016 +0000 +++ b/ov7670s.cpp Tue Sep 26 09:17:55 2017 +0000 @@ -1,5 +1,5 @@ #include "mbed.h" -#include "global.h" +//#include "global.h" #include "math.h" #include "ov7670sreg.h" #include "ov7670s.h" @@ -174,7 +174,7 @@ return dr; } -void OV7670::exrgbf(int j) +/*void OV7670::exrgbf(int j) { int ncl = nc*2; @@ -203,7 +203,7 @@ } } -} +}*/ // capture request
diff -r 6fde2d3aea7b -r 7fa4be5a4952 ov7670s.h --- a/ov7670s.h Tue Feb 16 14:37:26 2016 +0000 +++ b/ov7670s.h Tue Sep 26 09:17:55 2017 +0000 @@ -1,8 +1,8 @@ #pragma once #include "mbed.h" -#include "global.h" +//#include "global.h" #include "ov7670sreg.h" -#include "SDFileSystem.h" +//#include "SDFileSystem.h" #include "SPI_TFT_ILI9341.h" #include "FastPWM.h"