Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

ArduCAM::OV5642_Test_Pattern option DLI Does Not Work

Open patrickmoffitt opened this issue 4 years ago • 1 comments

When I try the DLI option in JPEG mode I get an octet-stream result that is not a valid JPEG. In my setup the rest of the API options work fine so I'm reporting this API feature as broken.

	void ArduCAM::OV5642_Test_Pattern(uint8_t Pattern)
	{
	#if defined(OV5642_CAM) || defined(OV5642_CAM_BIT_ROTATION_FIXED)|| defined(OV5642_MINI_5MP) || defined (OV5642_MINI_5MP_PLUS)	
	  switch(Pattern)
		{
            case Normal:
                wrSensorReg16_8(0x503d , 0x00);
                wrSensorReg16_8(0x503e, 0x00);
                break;
			case Color_bar:
				wrSensorReg16_8(0x503d , 0x80);
				wrSensorReg16_8(0x503e, 0x00);
				break;
			case Color_square:
				wrSensorReg16_8(0x503d , 0x85);
				wrSensorReg16_8(0x503e, 0x12);
				break;
			case BW_square:
				wrSensorReg16_8(0x503d , 0x85);
				wrSensorReg16_8(0x503e, 0x1a);
				break;
			case DLI:
				wrSensorReg16_8(0x4741 , 0x4);
				break;
		}
#endif
	}

patrickmoffitt avatar Jun 05 '20 14:06 patrickmoffitt

Hi, The DLI option is not for JPEG mode, it is the test mode used when the sensor outputs parallel data.

ArducamSupport avatar Jun 08 '20 08:06 ArducamSupport