![]() |
PicoCamera 0.2.0
Camera library for RP2040 with an esp32-camera compatible API
|
GitHub |
OV5640 sensor driver (16-bit SCCB register addresses). 更多...
#include "ov5640.h"#include "pico/stdlib.h"#include "../driver/sccb.h"#include "ov5640_regs.h"#include "ov5640_settings.h"函数 | |
| int | ov5640_detect (sensor_t *sensor) |
| Probe the bus for an OV5640. On success fills sensor->id. | |
| int | ov5640_init_sensor (sensor_t *sensor) |
| Fill sensor_t function pointers and write the default register set. | |
OV5640 sensor driver (16-bit SCCB register addresses).
Register tables and control logic adapted from esp32-camera's ov5640.c (Apache-2.0). The autofocus (AF) firmware machinery, init_status and the advanced tuning functions (brightness/contrast/saturation/...) are not ported - same trimming level as ov3660.cpp.
| int ov5640_detect | ( | sensor_t * | sensor | ) |
Probe the bus for an OV5640. On success fills sensor->id.
| int ov5640_init_sensor | ( | sensor_t * | sensor | ) |
Fill sensor_t function pointers and write the default register set.