Update write image example

This commit is contained in:
iabdalkader 2014-06-18 21:22:12 +02:00
parent c76f04baf5
commit 2142219e20

View File

@ -1,3 +1,4 @@
import sensor, time import sensor, time
sensor.set_pixformat(sensor.GRAYSCALE) sensor.set_framesize(sensor.QCIF)
sensor.snapshot().save("0:/test.ppm", subimage=(0, 0, 10,10)) sensor.set_pixformat(sensor.RGB565)
sensor.snapshot().save("1:/test.ppm")