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.
Dependencies: SDFileSystem mbed
Diff: main.cpp
- Revision:
- 3:2f9cbbda52e8
- Parent:
- 2:2b3a04c086da
- Child:
- 4:3bbf0941481f
--- a/main.cpp Wed Mar 11 05:09:18 2015 +0000
+++ b/main.cpp Mon Apr 06 22:17:20 2015 +0000
@@ -1,4 +1,4 @@
-/*******************************************************************************************************
+0/*******************************************************************************************************
This code uses the LS-Y202 camera module to take an image, and save it an SD card.
The SD card is interfaced via an SD card shield.
@@ -63,7 +63,6 @@
}
char get_byte(){ // get a byte from UART buffer
-
char p;
while(rx_in == rx_out);// wait for byte
__disable_irq(); // disable interrupts
@@ -188,7 +187,7 @@
wait(0.100);
// 0x22 = 160*120, 0x11 = 320*240, 0x00 = 640*480, 0x1D = 800*600
// 0x1C = 1024*768, 0x1B = 1280*960, 0x21 = 1600*1200
- SetImageSizeCmd(0x00);
+ SetImageSizeCmd(0x1D);
wait(0.100);
SendTakePhotoCmd();
wait(3);