summaryrefslogtreecommitdiff
path: root/shared-bindings/camera/Camera.c
diff options
context:
space:
mode:
authorKamil Tomaszewski <kamil.tomaszewski@sony.com>2020-09-14 12:55:53 +0200
committerKamil Tomaszewski <kamil.tomaszewski@sony.com>2020-09-14 13:12:20 +0200
commitce7ee58e92eca840f75c2fcf885fe862f1ebec13 (patch)
tree725ba356ef1647b54151d48db95eeee98f6374c7 /shared-bindings/camera/Camera.c
parenta25e3c2858e565e465849669c96da560b4af228f (diff)
camera: Update camera module
Diffstat (limited to 'shared-bindings/camera/Camera.c')
-rw-r--r--shared-bindings/camera/Camera.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-bindings/camera/Camera.c b/shared-bindings/camera/Camera.c
index 3b839d802..5fe54e429 100644
--- a/shared-bindings/camera/Camera.c
+++ b/shared-bindings/camera/Camera.c
@@ -52,7 +52,7 @@
//|
//| buffer = bytearray(512 * 1024)
//| file = open("/sd/image.jpg","wb")
-//| size = cam.take_picture()
+//| size = cam.take_picture(buffer, camera.ImageFormat.JPG)
//| file.write(buffer, size)
//| file.close()"""
//|
@@ -99,7 +99,7 @@ STATIC void check_for_deinit(camera_obj_t *self) {
//| def take_picture(self, buf: WriteableBuffer, format: ImageFormat) -> int:
//| """Take picture and save to ``buf`` in the given ``format``
//|
-//| :return: the size of the picture taken
+//| :return: the number of bytes written into buf
//| :rtype: int"""
//| ...
//|