Fix RNDIS board and enhance camera initialization (#1702)
* Add support for RNDIS board and enhance camera initialization - Included rndis_board.cc in the build for ESP32S3 and ESP32P4 targets. - Updated camera initialization logic in esp32s3_korvo2_v3_board.cc and esp32s3_korvo2_v3_board.cc to use a more structured camera_config_t setup. - Improved code readability by refining comments and formatting in the camera initialization functions. * Remove outdated camera configuration options from esp32s3-korvo2-v3-rndis config.json to streamline setup and improve clarity. * Update IDF version in build configuration and component dependencies to v5.5.2 for improved compatibility. * update discord links --------- Co-authored-by: Xiaoxia <terrence.huang@tenclass.com>
This commit is contained in:
@ -353,12 +353,11 @@ private:
|
||||
}
|
||||
|
||||
void InitializeCamera() {
|
||||
// ESP32-S3 使用 esp_camera 组件
|
||||
camera_config_t camera_config = {
|
||||
.pin_pwdn = CAMERA_PIN_PWDN,
|
||||
.pin_reset = CAMERA_PIN_RESET,
|
||||
.pin_xclk = CAMERA_PIN_XCLK,
|
||||
.pin_sccb_sda = -1, // 使用已初始化的 I2C
|
||||
.pin_sccb_sda = -1, // Use initialized I2C
|
||||
.pin_sccb_scl = -1,
|
||||
.pin_d7 = CAMERA_PIN_D7,
|
||||
.pin_d6 = CAMERA_PIN_D6,
|
||||
@ -386,8 +385,7 @@ private:
|
||||
};
|
||||
|
||||
camera_ = new Esp32Camera(camera_config);
|
||||
if(camera_ != nullptr)
|
||||
{
|
||||
if(camera_ != nullptr) {
|
||||
camera_->SetVFlip(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user