Tested on Nucleo F411RE Based on OV7670 without FIFO, SCCB protocol rewritten. View on TFT ILI9341, possible capture picture on sd Around 3 frames per second Basic image treatment: zoom, rotation, etc Very basic pattern recognition, pattern being stored on SD, after camera capture, or from .bmp file (rgb 565, 120x160 max)
Dependencies: FastPWM SDFileSystem SPI_TFT_ILI9341 TFT_fonts imagetrlib mbed ov7670s
Diff: main.cpp
- Revision:
- 3:19b0a9d60055
- Parent:
- 2:7e06db0773c1
- Child:
- 5:761794587e4e
diff -r 7e06db0773c1 -r 19b0a9d60055 main.cpp --- a/main.cpp Wed Feb 17 16:37:01 2016 +0000 +++ b/main.cpp Wed Feb 17 16:48:45 2016 +0000 @@ -6,6 +6,10 @@ #include "ov7670sreg.h" #include "SPI_TFT_ILI9341.h" #include "SDFileSystem.h" +#include "Arial12x12.h" +#include "Arial24x23.h" +#include "Arial28x28.h" +#include "font_big.h" #define SCTFT PA_5 // sclk TFT #define MISOTFT PA_6 //miso TFT @@ -65,6 +69,7 @@ SDFileSystem sd(MOSD, MISD, SCSD, PD_2, "sd",NC,SDFileSystem::SWITCH_NONE,2500000); // mosi, miso, sclk, cs, cd unused, switchtype, speed spi +imagetr imagetr; char desfile[25]; char patfile[25]; @@ -72,6 +77,8 @@ const int tmarray = nc*2*nl; unsigned char bank[tmarray]; unsigned char bankt[nl][nc]; +unsigned char bankta[nlta][ncta][nv]; +unsigned char banktatc[nlta][ncta]; unsigned char bankf[tmarray]; unsigned char banktc[nl][nc];