Skip to content

Commit 70d15e1

Browse files
authored
fix incompatibility with ov5640 and Pico
Changes to Adafruit_CircuitPython_OV5640 doubled the memory usage for a given quality setting. This makes the latest release of in CircuitPython incompatible with the previous quality setting=3 + colorspace=adafruit_ov5640.OV5640_COLOR_JPEG due to that working out an an allocation size of 204800. This is too much for the first Pico. Here is the breaking change: adafruit/Adafruit_CircuitPython_OV5640#35 Quality 4 is still too large at 153,600 bytes. Quality 5 using 122,880 works.
1 parent f94718e commit 70d15e1

File tree

1 file changed

+1
-1
lines changed
  • PiCowbell_Camera_Demos/JPEG_Capture

1 file changed

+1
-1
lines changed

PiCowbell_Camera_Demos/JPEG_Capture/code.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def open_next_image():
7676
return open(filename, "wb")
7777

7878
cam.colorspace = adafruit_ov5640.OV5640_COLOR_JPEG
79-
cam.quality = 3
79+
cam.quality = 5
8080
b = bytearray(cam.capture_buffer_size)
8181
jpeg = cam.capture(b)
8282

0 commit comments

Comments
 (0)