Code for OV7670 camera with AL422 FIFO buffer

Dependencies:   BufferedSerial mbed OV7670

Committer:
wrecky
Date:
Sat Jan 02 15:55:47 2016 +0000
Revision:
0:cf824ff9f30c
Child:
2:0aeb1c0e6a06
Initial template

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wrecky 0:cf824ff9f30c 1 #include "mbed.h"
wrecky 0:cf824ff9f30c 2
wrecky 0:cf824ff9f30c 3 DigitalOut myled(LED_GREEN);
wrecky 0:cf824ff9f30c 4 Serial pc(USBTX, USBRX);
wrecky 0:cf824ff9f30c 5
wrecky 0:cf824ff9f30c 6 int main()
wrecky 0:cf824ff9f30c 7 {
wrecky 0:cf824ff9f30c 8 int i = 0;
wrecky 0:cf824ff9f30c 9 pc.printf("Hello World!\n");
wrecky 0:cf824ff9f30c 10
wrecky 0:cf824ff9f30c 11 while (true) {
wrecky 0:cf824ff9f30c 12 wait(0.5f); // wait a small period of time
wrecky 0:cf824ff9f30c 13 pc.printf("%d \n", i); // print the value of variable i
wrecky 0:cf824ff9f30c 14 i++; // increment the variable
wrecky 0:cf824ff9f30c 15 myled = !myled; // toggle a led
wrecky 0:cf824ff9f30c 16 }
wrecky 0:cf824ff9f30c 17 }