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.
main.cpp
- Committer:
- ollyhicks
- Date:
- 2014-05-23
- Revision:
- 0:78595d38d985
File content as of revision 0:78595d38d985:
#include "mbed.h"
#include "camera.h"
/*
* Links
* https://gist.github.com/franciscospaeth/8503747
* http://embeddedprogrammer.blogspot.co.uk/2012/07/hacking-ov7670-camera-module-sccb-cheat.html
* http://www.voti.nl/docs/OV7670.pdf
*/
LocalFileSystem local("local");
int main() {
printf("\r\n\n\nSetup camera\r\n");
camera_setup();
printf(" Done!\r\n");
printf("Take photo\r\n");
FILE *fp = fopen("/local/img", "w");
camera_grab(fp);
fclose(fp);
printf(" Done!\r\n");
}