CircuitPython driver for OV7670 cameras
Project description
Introduction
CircuitPython driver for OV7670 cameras
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.
Usage Example
On an Adafruit Metro M4 Grand Central, capture a 40x30 image into a buffer:
import board
from adafruit_ov7670 import OV7670
cam = OV7670(
bus,
data_pins=[board.PCC_D0, board.PCC_D1, board.PCC_D2, board.PCC_D3, board.PCC_D4, board.PCC_D5, board.PCC_D6, board.PCC_D7],
clock=board.PCC_CLK,
vsync=board.PCC_DEN1,
href=board.PCC_DEN2,
mclk=board.D29,
shutdown=board.D39,
reset=board.D38,
)
cam.size = OV7670_SIZE_DIV16
buf = bytearray(2 * cam.width * cam.height)
cam.capture(buf)
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adafruit-circuitpython-ov7670-1.0.13.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-ov7670-1.0.13.tar.gz
- Upload date:
- Size: 35.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cfbbade49cf6d5a026b015149bf74dc0ffb3100dbc9b1c1a800e28c907d7c63 |
|
MD5 | 31f2b5ac43b2e0f60df86cde6d1692a0 |
|
BLAKE2b-256 | cba322aafad05e326d53120d74554e26e66c388c46962a6c513319679a71b81e |
File details
Details for the file adafruit_circuitpython_ov7670-1.0.13-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_ov7670-1.0.13-py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d80971563718220d68580da217f0da5624a31ff35ec694b564b1a72e099f323 |
|
MD5 | 8142f6980eaf4a21d61d02e65cb74a5f |
|
BLAKE2b-256 | fc766f7a0713b6d6a7e0724632f9d0792323f36e1225ffb738396a6ee2ee3ca8 |