adafruit_vc0706
¶
VC0706 serial TTL camera module. Allows basic image capture and download of image data from the camera over a serial connection. See examples for demo of saving image to a SD card (must be wired up separately).
Author(s): Tony DiCola
Implementation Notes¶
Hardware:
Adafruit TTL Serial JPEG Camera with NTSC Video (Product ID: 397)
Software and Dependencies:
Adafruit CircuitPython firmware for the ESP8622 and M0-based boards: https://github.com/adafruit/circuitpython/releases
- class adafruit_vc0706.VC0706(uart, *, buffer_size=100)[source]¶
Driver for VC0706 serial TTL camera module.
- Parameters
- property baudrate¶
Return the currently configured baud rate.
- property frame_length¶
Return the length in bytes of the currently capture frame/picture.
- property image_size¶
Get the current image size, will return a value of IMAGE_SIZE_640x480, IMAGE_SIZE_320x240, or IMAGE_SIZE_160x120.
- read_picture_into(buf)[source]¶
Read the next bytes of frame/picture data into the provided buffer. Returns the number of bytes written to the buffer (might be less than the size of the buffer). Buffer MUST be a multiple of 4 and 100 or less. Suggested buffer size is 32.
- resume_video()[source]¶
Tell the camera to resume being a camera after the video has stopped (Such as what happens when a picture is taken).
- set_motion_detect(enabled)[source]¶
Set gesture detection status.
- Parameters
enabled (bool) – False to disable motion detected, True to enable motion detection.
- property version¶
Return camera version byte string.