Version 3: Trying to interleave capture and read

Dependencies:   ov7670_lib Project_test

main.h

Committer:
sebbarpar
Date:
2020-06-20
Revision:
8:36adb37e976d
Parent:
5:4135ec0f88e6

File content as of revision 8:36adb37e976d:

#pragma once 
#include "mbed.h"
#include "ov7670.h"



Serial pc(USBTX,USBRX);
Timer t;
bool new_send = false;

DigitalOut led1(LED1,1);
DigitalOut led2(LED2,1);
DigitalOut led3(LED3,1);
DigitalOut led4(LED4,1);


//Camera
OV7670 camera
(
    PTE25,PTE24,            // SDA,SCL(I2C / SCCB)
    PTA1,PTD3,PTB11,         // VSYNC,HREF,WEN(FIFO)  
    PortC, 0x0F0F,   // Ds       
    PTD2,PTC4,PTD1         // RRST,OE,RCLK
);  

//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();