PicoCamera 0.2.0
Camera library for RP2040 with an esp32-camera compatible API
GitHub
Loading...
Searching...
No Matches
gc2145.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
15#pragma once
16
17#include "../sensor.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23#define GC2145_SCCB_ADDR 0x3C // 0x78 >> 1
24#define GC2145_PID 0x2145
25
30int gc2145_detect(sensor_t *sensor);
31
36int gc2145_init_sensor(sensor_t *sensor);
37
38#ifdef __cplusplus
39}
40#endif
int gc2145_init_sensor(sensor_t *sensor)
Fill sensor_t function pointers and write the default register set.
Definition gc2145.cpp:282
int gc2145_detect(sensor_t *sensor)
Probe the bus for a GC2145. On success fills sensor->id.
Definition gc2145.cpp:262
Common camera sensor types, aligned with esp32-camera's sensor.h (subset).
中文文档