![]() |
PicoCamera 0.2.0
Camera library for RP2040 with an esp32-camera compatible API
|
GitHub |
GC032A sensor driver. More...
#include "gc032a.h"#include "pico/stdlib.h"#include "../driver/sccb.h"#include "gc032a_regs.h"#include "gc032a_settings.h"Macros | |
| #define | H8(v) |
| #define | L8(v) |
Functions | |
| int | gc032a_detect (sensor_t *sensor) |
| Probe the bus for a GC032A. On success fills sensor->id. | |
| int | gc032a_init_sensor (sensor_t *sensor) |
| Fill sensor_t function pointers and write the default register set. | |
GC032A sensor driver.
Register tables and control logic adapted from esp32-camera's gc032a.c (Apache-2.0). The GC032A has no JPEG encoder, so set_pixformat(PIXFORMAT_JPEG) always fails; the core also rejects it up front via camera_sensor_info_t.support_jpeg.
Framesize scaling uses windowing: crop the requested window out of the full VGA frame (esp32-camera's gc032a.c has no subsample mode).
| #define H8 | ( | v | ) |
| #define L8 | ( | v | ) |
| int gc032a_detect | ( | sensor_t * | sensor | ) |
Probe the bus for a GC032A. On success fills sensor->id.
| int gc032a_init_sensor | ( | sensor_t * | sensor | ) |
Fill sensor_t function pointers and write the default register set.