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: mbed JPEGCamera
Diff: main.cpp
- Revision:
- 1:a9210ea335cb
- Parent:
- 0:8399d5434f4f
- Child:
- 2:b7411087c261
--- a/main.cpp Thu Nov 17 14:00:47 2011 +0000
+++ b/main.cpp Thu Nov 14 06:52:19 2019 +0000
@@ -2,13 +2,13 @@
#include "JPEGCamera.h"
int main() {
- JPEGCamera camera(p28, p27); // TX, RX
+ JPEGCamera camera(p9, p10); // TX, RX
LocalFileSystem local("local");
Timer timer;
timer.start();
camera.setPictureSize(JPEGCamera::SIZE320x240);
- for (int i = 0; i < 10; i++) {
+ for (int i = 0; i < 1; i++) {
if (camera.isReady()) {
char filename[32];
sprintf(filename, "/local/pict%03d.jpg", i);
@@ -18,10 +18,10 @@
camera.processPicture();
}
} else {
- printf("take picture failed\n");
+ printf("take picture failed\r\n");
}
} else {
- printf("camera is not ready\n");
+ printf("camera is not ready\r\n");
}
}
printf("time = %f\n", timer.read());