PicoCamera 0.2.0
Camera library for RP2040 with an esp32-camera compatible API
GitHub
Loading...
Searching...
No Matches
ov5640.h
Go to the documentation of this file.
1/*
2 * This file is part of the PicoCamera project.
3 * https://github.com/umeiko/PicoCamera
4 *
5 * Author: umeko <umeko@stu.xmu.edu.cn>
6 * License: MIT
7 */
8
13#pragma once
14
15#include "../sensor.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#define OV5640_SCCB_ADDR 0x3C // 0x78 >> 1
22#define OV5640_PID 0x5640
23
28int ov5640_detect(sensor_t *sensor);
29
34int ov5640_init_sensor(sensor_t *sensor);
35
36#ifdef __cplusplus
37}
38#endif
int ov5640_init_sensor(sensor_t *sensor)
Fill sensor_t function pointers and write the default register set.
Definition ov5640.cpp:396
int ov5640_detect(sensor_t *sensor)
Probe the bus for an OV5640. On success fills sensor->id.
Definition ov5640.cpp:375
Common camera sensor types, aligned with esp32-camera's sensor.h (subset).
中文文档