Application Notes
ArduCAM Camera Shield Software Application Note
www.ArduCAM.com
12
Param1: sensor internal register address
Param2: value read from the register
Return value: error status
rdSensorReg16_16 function is used to read a single sensor’s internal register value over I2C
interface and sensor’s register is accessed with 16bit address and 16bit data.
6.21 void OV2640_set_JPEG_size(uint8_t size)
Param1: resolution code
OV2640_set_JPEG_size function is used to set the desired resolution with JPEG format for
OV2640. Current support resolution is shown as follows:
#define OV2640_160x120 0 //160x120
#define OV2640_176x144 1 //176x144
#define OV2640_320x240 2 //320x240
#define OV2640_352x288 3 //352x288
#define OV2640_640x480 4 //640x480
#define OV2640_800x600 5 //800x600
#define OV2640_1024x768 6 //1024x768
#define OV2640_1280x1024 7 //1280x1024
#define OV2640_1600x1200 8 //1600x1200
6.22 void OV5642_set_JPEG_size(uint8_t size)
Param1: resolution code
OV5642_set_JPEG_size function is used to set the desired resolution with JPEG format for
OV5642. Current support resolution is shown as follows:
#define OV5642_320x240 0 //320x240
#define OV5642_640x480 1 //640x480
#define OV5642_1024x768 2 //1024x768
#define OV5642_1280x960 3 //1280x960
#define OV5642_1600x1200 4 //1600x1200
#define OV5642_2048x1536 5 //2048x1536
#define OV5642_2592x1944 6 //2592x1944
6.23 void OV5640_set_JPEG_size(uint8_t size)
Param1: resolution code
OV5640_set_JPEG_size function is used to set the desired resolution with JPEG format for
OV564. Current support resolution is shown as follows:
#define OV5640_320x240 0 //320x240
#define OV5640_352x288 1 //352x288
#define OV5640_640x480 2 //640x480
#define OV5640_800x480 3 //800x480
#define OV5640_1024x768 4 //1024x768
#define OV5640_1280x960 5 //1280x960
#define OV5640_1600x1200 6 //1600x1200
#define OV5640_2048x1536 7 //2048x1536
#define OV5640_2592x1944 8 //2592x1944
6.24 void set_format(byte fmt)
set_format function is used to set the sensor between RGB mode and JPEG mode. The