Interface for LinkSprite JPEG camera module LS-Y201
Dependents: JPEGCameraExample InfraredCameraExample CanSat_Alex cansat_alex_v1 ... more
Revision 1:27417b6a951d, committed 2011-11-17
- Comitter:
- yamaguch
- Date:
- Thu Nov 17 13:59:40 2011 +0000
- Parent:
- 0:974923b4db2d
- Commit message:
Changed in this revision
JPEGCamera.cpp | Show annotated file Show diff for this revision Revisions of this file |
JPEGCamera.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 974923b4db2d -r 27417b6a951d JPEGCamera.cpp --- a/JPEGCamera.cpp Tue Nov 15 07:56:40 2011 +0000 +++ b/JPEGCamera.cpp Thu Nov 17 13:59:40 2011 +0000 @@ -140,32 +140,4 @@ } return i; -} - -#if 0 -void takePicture(char *filename) { - FILE *fp = fopen(filename, "wb"); - if (fp != 0) { - if (camera.takePicture()) { - leds[3] = 1; - led.setColor(BLUE); - led = 1; - int imageSize = camera.getImageSize(); - for (int size, address = 0; address < imageSize; address += size) { - char data[1024]; - size = camera.readData(data, sizeof(data), address); - fwrite(data, size, 1, fp); - leds[3] = !leds[3]; - led = !led; - } - camera.stopPictures(); - wait(0.1); - fclose(fp); - leds[3] = 0; - led = 0; - } else - printf("takePicture(%s) failed", filename); - } else - printf("fopen() failed"); -} -#endif +} \ No newline at end of file
diff -r 974923b4db2d -r 27417b6a951d JPEGCamera.h --- a/JPEGCamera.h Tue Nov 15 07:56:40 2011 +0000 +++ b/JPEGCamera.h Thu Nov 17 13:59:40 2011 +0000 @@ -10,7 +10,7 @@ #include "mbed.h" -** +/** * Interface for LinkSprite JPEG Camera module LS-Y201 */ class JPEGCamera : public Serial {