Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial OV5640 support #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Adafruit_ImageCapture
# SparkFun_ImageCapture_Arduino_Library
Arduino library for image sensors

This is a fork of [this Arduino library](https://github.com/adafruit/Adafruit_ImageCapture) that adds simple support for the OV5640 based on [this Python library](https://github.com/adafruit/Adafruit_CircuitPython_OV5640). This is only intended as a quick hack to add basic OV5640 support, so features are limited and long-term support is not guaranteed.
13 changes: 6 additions & 7 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name=Adafruit Image Capture
version=1.0.1
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
name=SparkFun Image Capture
version=0.1.0
author=SparkFun Electronics <[email protected]>
maintainer=SparkFun Electronics <sparkfun.com>
sentence=An Arduino library for interfacing with image sensors.
paragraph=An Arduino library for interfacing with image sensors. This provides base classes (not instantiated on their own in user code), used with further subclasses (in other libraries) to work with specific cameras.
category=Sensors
url=https://github.com/adafruit/Adafruit_ImageCapture
architectures=samd, rp2040
depends=Adafruit Zero DMA Library,Adafruit ILI9341,SD,Adafruit ST7735 and ST7789 Library
url=https://github.com/sparkfun/SparkFun_ImageCapture_Arduino_Library
architectures=samd, rp2040, rp2350
1 change: 1 addition & 0 deletions src/Adafruit_ImageCapture.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ typedef enum {
ICAP_STATUS_ERR_PERIPHERAL, ///< Peripheral (e.g. timer) not found
ICAP_STATUS_ERR_PINS, ///< Pin config doesn't align with peripheral(s)
ICAP_STATUS_ERR_TIMEOUT, ///< Function didn't complete in expected time
ICAP_STATUS_ERR_CAMERA_ID, ///< Wrong camera ID (not found or not responding)
} iCap_status;

// Must include ALL arch headers here (each has #ifdef checks for specific
Expand Down
6 changes: 6 additions & 0 deletions src/Adafruit_iCap_parallel.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ typedef struct {
uint8_t value; ///< Value to store
} iCap_parallel_config;

/** Register/value combo for camera configuration over I2C. */
typedef struct {
uint16_t reg; ///< Register address
uint8_t value; ///< Value to store
} iCap_parallel_config16;

/*!
@brief Class encapsulating functionality common to image sensors using
a parallel data interface + I2C for configuration. (This is the
Expand Down
Loading