画像を2枚撮影
Diff: JPEGCamera.cpp
- Revision:
- 1:27417b6a951d
- Parent:
- 0:974923b4db2d
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