adafruit / Adafruit_CircuitPython_OV5640

CircuitPython driver for OV5640 Camera
MIT License
4 stars 4 forks source link

Implement capture steps from appnote #1

Open jepler opened 3 years ago

jepler commented 3 years ago

Section 4.11 of the appnote https://www.arducam.com/downloads/modules/OV5640/OV5640_Software_app_note_parallel.pdf explains the sequence of operations to switch between preview mode & capture mode, correctly exposing the capture.

Implement it, so that a "capture_jpeg(buf, jpeg_resolution)" method can be called. It performs all the steps, including setting back to preview mode, and returns the jpeg image data.