mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
feat: Add support for ov5640 cameras
This commit is contained in:
parent
3fa84dc100
commit
59a22d5b9d
@ -35,9 +35,20 @@ void CameraHandler::setupCameraPinout() {
|
|||||||
pinMode(14, INPUT_PULLUP);
|
pinMode(14, INPUT_PULLUP);
|
||||||
log_i("CAM_BOARD");
|
log_i("CAM_BOARD");
|
||||||
#endif
|
#endif
|
||||||
#if ETVR_EYE_TRACKER_USB_API
|
#ifdef ETVR_EYE_TRACKER_USB_API
|
||||||
/* ESP32-S3 is capable of using higher freqs */
|
auto camera_id = camera_sensor->id.PID;
|
||||||
xclk_freq_hz = 24000000;
|
|
||||||
|
switch (camera_id)
|
||||||
|
{
|
||||||
|
// Thanks to lick_it, we discovered that OV5640 likes to overheat when
|
||||||
|
// running at higher than usual xclk frequencies.
|
||||||
|
// Hence why we're limit the faster ones for OV2640
|
||||||
|
case OV2640_PID:
|
||||||
|
xclk_freq_hz = 24000000;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
config.ledc_channel = LEDC_CHANNEL_0;
|
config.ledc_channel = LEDC_CHANNEL_0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user