Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix camera OV3660 error #218

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions main/camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,17 @@ static void jade_camera_init(void)
JADE_LOGE("Failed to set camera hmirror/vflip, returned: %d/%d", hret, vret);
}
}

// OV3660 needs a vertical flip for the ESP32 Wrover Cam
else if (camera_info->model == CAMERA_OV3660) {
JADE_ASSERT(camera_sensor->set_vflip);
const int vret = camera_sensor->set_vflip(camera_sensor, 1);
if (vret) {
JADE_LOGE("Failed to set camera vflip, returned: %d", vret);
}
}


// OV5640 needs vertical flip for T-Display S3 PRO
else if (camera_info->model == CAMERA_OV5640) {
JADE_ASSERT(camera_sensor->set_vflip);
Expand Down