From 2142219e2015571d543b12dd9cf0da96d5524996 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Wed, 18 Jun 2014 21:22:12 +0200 Subject: [PATCH] Update write image example --- usr/examples/write_image.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/examples/write_image.py b/usr/examples/write_image.py index 8e8a389e1..77ca391e6 100644 --- a/usr/examples/write_image.py +++ b/usr/examples/write_image.py @@ -1,3 +1,4 @@ import sensor, time -sensor.set_pixformat(sensor.GRAYSCALE) -sensor.snapshot().save("0:/test.ppm", subimage=(0, 0, 10,10)) +sensor.set_framesize(sensor.QCIF) +sensor.set_pixformat(sensor.RGB565) +sensor.snapshot().save("1:/test.ppm")