PicoCamera 0.2.0
Camera library for RP2040 with an esp32-camera compatible API
GitHub
Loading...
Searching...
No Matches
ov2640.h File Reference

OV2640 sensor driver (8-bit SCCB register addresses). More...

#include "../sensor.h"
Include dependency graph for ov2640.h:

Go to the source code of this file.

Macros

#define OV2640_SCCB_ADDR   0x30
#define OV2640_PID   0x2642

Functions

int ov2640_detect (sensor_t *sensor)
 Probe the bus for an OV2640. On success fills sensor->id.
int ov2640_init_sensor (sensor_t *sensor)
 Fill sensor_t function pointers and write the default register set.

Detailed Description

OV2640 sensor driver (8-bit SCCB register addresses).

Function Documentation

◆ ov2640_detect()

int ov2640_detect ( sensor_t * sensor)

Probe the bus for an OV2640. On success fills sensor->id.

Returns
0 if detected

◆ ov2640_init_sensor()

int ov2640_init_sensor ( sensor_t * sensor)

Fill sensor_t function pointers and write the default register set.

Returns
0 on success
中文文档