Skip to main content

CircuitPython driver for OV7670 cameras

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit-circuitpython-ov7670-1.1.1.tar.gz (35.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

adafruit_circuitpython_ov7670-1.1.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

Details for the file adafruit-circuitpython-ov7670-1.1.1.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-ov7670-1.1.1.tar.gz
Algorithm Hash digest
SHA256 2bbd7e53b0a437fcdb1d1c85e389203774d2d3bf0b99bc9850c54a7790987657
MD5 938a2f8d1b6f520a8b371a9a9bf2c46c
BLAKE2b-256 8d060ae56c3b7ebc69379145e37bb9f84c2732418fc7a562f9434d136a284b6e

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_ov7670-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_ov7670-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46288b01f7bd56266643a9073aae1fd98b9e59ac87b3151b0a586982f49ccbc5
MD5 d176fd7773c4042037d61a2a945cf4e6
BLAKE2b-256 44aadb5f468a27393cda1983da7261f7cd68f73f89421201aa769e5bda47e7b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page