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

Configuration structure for camera initialization. More...

#include <pico_camera.h>

Data Fields

int pin_pwdn
int pin_reset
int pin_xclk
int pin_sccb_sda
int pin_sccb_scl
int pin_d0
int pin_d1
int pin_d2
int pin_d3
int pin_d4
int pin_d5
int pin_d6
int pin_d7
int pin_vsync
int pin_href
int pin_pclk
int xclk_freq_hz
int sccb_i2c_port
pixformat_t pixel_format
framesize_t frame_size
int jpeg_quality
size_t fb_count
camera_fb_location_t fb_location

Detailed Description

Configuration structure for camera initialization.

Pin fields mirror esp32-camera. Note the RP2040 PIO constraint: pin_d0..pin_d7 must be 8 consecutive GPIOs (pin_dN == pin_d0 + N). pin_vsync / pin_href / pin_pclk are free choice. A pin value of -1 means "not connected" (pin_pwdn / pin_reset) or, for pin_sccb_sda, "reuse an already initialized I2C bus" (see that field).


The documentation for this struct was generated from the following file:
中文文档