同步esp-video组件驱动摄像头的配置(waveshare s3-3.5、s3-3.5b、s3-audio-board) (#1291)

* 同步esp-video组件驱动摄像头的配置

* 修改Waveshare ESP32-S3-AUDIO-Board 摄像头配置。

* Modify the XCLK parameters of the camera, and modify the config.txt to be compatible with 2640 and 5640.

* Update the esp_video component version to 1.3.0

* Downgrade the esp_video component version. There are unfixed bugs.

* Update component version
This commit is contained in:
Y1hsiaochunnn
2025-10-20 21:20:42 +08:00
committed by GitHub
parent a601a5cbc1
commit 3176a45ebe
7 changed files with 44 additions and 30 deletions

View File

@@ -20,7 +20,7 @@
#include "led/circular_strip.h"
#include "esp_lcd_jd9853.h"
#define TAG "waveshare_lcd_1_85c"
#define TAG "waveshare_s3_audio_board"
#define LCD_OPCODE_WRITE_CMD (0x02ULL)
#define LCD_OPCODE_READ_CMD (0x0BULL)
@@ -175,13 +175,9 @@ private:
};
esp_video_init_sccb_config_t sccb_config = {
.init_sccb = true,
.i2c_config = {
.port = 0,
.scl_pin = CAMERA_PIN_SIOC,
.sda_pin = CAMERA_PIN_SIOD,
},
.freq = 100000,
.init_sccb = false, // 不初始化新的 SCCB使用现有的 I2C 总线
.i2c_handle = i2c_bus_, // 使用现有的 I2C 总线句柄
.freq = 100000, // 100kHz
};
esp_video_init_dvp_config_t dvp_config = {
@@ -189,7 +185,7 @@ private:
.reset_pin = CAMERA_PIN_RESET,
.pwdn_pin = CAMERA_PIN_PWDN,
.dvp_pin = dvp_pin_config,
.xclk_freq = XCLK_FREQ_HZ,
.xclk_freq = 12000000,
};
esp_video_init_config_t video_config = {
@@ -197,7 +193,7 @@ private:
};
camera_ = new Esp32Camera(video_config);
camera_->SetVFlip(1);
}
public:
CustomBoard() :