fork of Camera_LS_Y201 lib supporting the 2MP variant/successor
Fork of Camera_LS_Y201 by
Diff: Camera_LS_Y201.h
- Revision:
- 2:ce4d1351bdeb
- Parent:
- 1:43358d40f879
diff -r 43358d40f879 -r ce4d1351bdeb Camera_LS_Y201.h --- a/Camera_LS_Y201.h Wed Dec 01 23:10:56 2010 +0000 +++ b/Camera_LS_Y201.h Tue Mar 18 17:28:47 2014 +0000 @@ -67,11 +67,25 @@ * Image size. */ enum ImageSize { - ImageSize160x120, /**< 160x120. */ - ImageSize320x280, /**< 320x280. */ - ImageSize640x480 /**< 640x480. */ + ImageSize160x120, // crappy ... firmware seems to record the upper left part of the image + ImageSize320x240, // OK + ImageSize640x480, // OK + ImageSize800x600, + ImageSize1024x768, + ImageSize1280x960, + ImageSize1600x1200 // OK }; + enum BaudRate { + //BaudRate9600=0xae, // doesn't seem to work, not investiated, as no one seriously will use 9600 baud anyway + BaudRate38400=0x2a, + BaudRate57600=0x1c, + BaudRate115200=0x0d, + BaudRate128000=0x7e, + BaudRate256000=0x56 + }; + + /** * Reset module. * @@ -87,6 +101,13 @@ */ ErrorCode setImageSize(ImageSize is); + + // values: 0..9 highest compression at 9 + // Ups, and value 5 is simply ignored by the firmware + ErrorCode setCompressionRatio(int cr); + + ErrorCode setBaudRate(BaudRate br); + /** * Take picture. *