Ethernet Camera and SDcard

Dependents:   Camera_LS_Y201_HTTP_SDcard_file_server_WIZwiki-W7500 VC0706_jins VC0706_FTP_Client_Ethernet_MQTT

Fork of Camera_LS_Y201 by Shinichiro Nakamura

Files at this revision

API Documentation at this revision

Comitter:
WizLeo
Date:
Mon Jun 29 07:36:02 2015 +0000
Parent:
1:43358d40f879
Commit message:
Change picture size library

Changed in this revision

Camera_LS_Y201.cpp Show annotated file Show diff for this revision Revisions of this file
Camera_LS_Y201.h Show annotated file Show diff for this revision Revisions of this file
diff -r 43358d40f879 -r e32cc85c8bd8 Camera_LS_Y201.cpp
--- a/Camera_LS_Y201.cpp	Wed Dec 01 23:10:56 2010 +0000
+++ b/Camera_LS_Y201.cpp	Mon Jun 29 07:36:02 2015 +0000
@@ -86,7 +86,7 @@
  * @param is Image size.
  * @return Error code.
  */
-Camera_LS_Y201::ErrorCode Camera_LS_Y201::setImageSize(ImageSize is) {
+Camera_LS_Y201::ErrorCode Camera_LS_Y201::setImageSize() {//ImageSize is) {
     uint8_t send[9] = {
         0x56,
         0x00,
@@ -99,7 +99,7 @@
         0x00    // 0x11:320x240, 0x00:640x480, 0x22:160x120
     };
     uint8_t recv[5];
-    switch (is) {
+/*    switch (is) {
         case ImageSize160x120:
             send[8] = 0x22;
             break;
@@ -112,6 +112,8 @@
         default:
             return InvalidArguments;
     }
+    */
+    send[8] = 0x00;
     if (!sendBytes(send, sizeof(send), 200 * 1000)) {
         return SendError;
     }
diff -r 43358d40f879 -r e32cc85c8bd8 Camera_LS_Y201.h
--- a/Camera_LS_Y201.h	Wed Dec 01 23:10:56 2010 +0000
+++ b/Camera_LS_Y201.h	Mon Jun 29 07:36:02 2015 +0000
@@ -69,7 +69,7 @@
     enum ImageSize {
         ImageSize160x120,   /**< 160x120. */
         ImageSize320x280,   /**< 320x280. */
-        ImageSize640x480    /**< 640x480. */
+        ImageSize640x480   /**< 640x480. */
     };
 
     /**
@@ -85,7 +85,7 @@
      * @param is Image size.
      * @return Error code.
      */
-    ErrorCode setImageSize(ImageSize is);
+    ErrorCode setImageSize(); //ImageSize is);
 
     /**
      * Take picture.