SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.

Dependencies:   TSI USBDevice mbed-dev

Fork of SmartWheels by haofan Zheng

Committer:
hazheng
Date:
Fri Mar 03 18:26:44 2017 +0000
Revision:
33:e3fcc4d6bb9b
Parent:
32:5badeff825dc
Child:
34:f79db3bc2f86
Added adjustable size.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hazheng 29:f87d8790f57d 1 #pragma once
hazheng 29:f87d8790f57d 2 #ifndef OV2640_REG_PROG_H
hazheng 29:f87d8790f57d 3 #define OV2640_REG_PROG_H
hazheng 29:f87d8790f57d 4
hazheng 30:ff7f83ad6369 5 #include "CamRegDefinitions.h"
hazheng 29:f87d8790f57d 6
hazheng 29:f87d8790f57d 7 #define OV2640_WRITE 0x60
hazheng 29:f87d8790f57d 8 #define OV2640_READ 0x61
hazheng 29:f87d8790f57d 9
hazheng 29:f87d8790f57d 10 #define OV2640_PID_VALUE 0x26
hazheng 29:f87d8790f57d 11 #define OV2640_VER_VALUE 0x42
hazheng 29:f87d8790f57d 12
hazheng 32:5badeff825dc 13 #define OV2640_PID_ADDR 0x0A
hazheng 32:5badeff825dc 14 #define OV2640_VER_ADDR 0x0B
hazheng 30:ff7f83ad6369 15
hazheng 30:ff7f83ad6369 16 namespace OV2640Prog
hazheng 30:ff7f83ad6369 17 {
hazheng 33:e3fcc4d6bb9b 18
hazheng 33:e3fcc4d6bb9b 19 #if (defined(RESOLUTION_WIDTH) && RESOLUTION_WIDTH == 800) && (defined(RESOLUTION_HEIGHT) && RESOLUTION_HEIGHT == 600)
hazheng 32:5badeff825dc 20 const struct sensor_reg SVGA[] =
hazheng 32:5badeff825dc 21 {
hazheng 33:e3fcc4d6bb9b 22 {0xff, 0x00},
hazheng 32:5badeff825dc 23 {0x2c, 0xff},
hazheng 32:5badeff825dc 24 {0x2e, 0xdf},
hazheng 32:5badeff825dc 25 {0xff, 0x01},
hazheng 32:5badeff825dc 26 {0x3c, 0x32},
hazheng 32:5badeff825dc 27 //
hazheng 32:5badeff825dc 28 {0x11, 0x00},
hazheng 32:5badeff825dc 29 {0x09, 0x02},
hazheng 32:5badeff825dc 30 {0x04, 0x28},
hazheng 32:5badeff825dc 31 {0x13, 0xe5},
hazheng 32:5badeff825dc 32 {0x14, 0x48},
hazheng 32:5badeff825dc 33
hazheng 32:5badeff825dc 34 {0x2c, 0x0c},
hazheng 32:5badeff825dc 35 {0x33, 0x78},
hazheng 32:5badeff825dc 36 {0x3a, 0x33},
hazheng 32:5badeff825dc 37 {0x3b, 0xfB},
hazheng 32:5badeff825dc 38 //
hazheng 32:5badeff825dc 39 {0x3e, 0x00},
hazheng 32:5badeff825dc 40 {0x43, 0x11},
hazheng 32:5badeff825dc 41 {0x16, 0x10},
hazheng 32:5badeff825dc 42 //
hazheng 32:5badeff825dc 43 {0x39, 0x92},
hazheng 32:5badeff825dc 44 //
hazheng 32:5badeff825dc 45 {0x35, 0xda},
hazheng 32:5badeff825dc 46 {0x22, 0x1a},
hazheng 32:5badeff825dc 47 {0x37, 0xc3},
hazheng 32:5badeff825dc 48 {0x23, 0x00},
hazheng 32:5badeff825dc 49 {0x34, 0xc0},
hazheng 32:5badeff825dc 50 {0x36, 0x1a},
hazheng 32:5badeff825dc 51 {0x06, 0x88},
hazheng 32:5badeff825dc 52 {0x07, 0xc0},
hazheng 32:5badeff825dc 53 {0x0d, 0x87},
hazheng 32:5badeff825dc 54 {0x0e, 0x41},
hazheng 32:5badeff825dc 55 {0x4c, 0x00},
hazheng 32:5badeff825dc 56 {0x48, 0x00},
hazheng 32:5badeff825dc 57 {0x5B, 0x00},
hazheng 32:5badeff825dc 58 {0x42, 0x03},
hazheng 32:5badeff825dc 59 //
hazheng 32:5badeff825dc 60 {0x4a, 0x81},
hazheng 32:5badeff825dc 61 {0x21, 0x99},
hazheng 32:5badeff825dc 62 //
hazheng 32:5badeff825dc 63 {0x24, 0x40},
hazheng 32:5badeff825dc 64 {0x25, 0x38},
hazheng 32:5badeff825dc 65 {0x26, 0x82},
hazheng 32:5badeff825dc 66 {0x5c, 0x00},
hazheng 32:5badeff825dc 67 {0x63, 0x00},
hazheng 32:5badeff825dc 68 {0x46, 0x22},
hazheng 32:5badeff825dc 69 {0x0c, 0x3c},
hazheng 32:5badeff825dc 70 //
hazheng 32:5badeff825dc 71 {0x61, 0x70},
hazheng 32:5badeff825dc 72 {0x62, 0x80},
hazheng 32:5badeff825dc 73 {0x7c, 0x05},
hazheng 32:5badeff825dc 74 //
hazheng 32:5badeff825dc 75 {0x20, 0x80},
hazheng 32:5badeff825dc 76 {0x28, 0x30},
hazheng 32:5badeff825dc 77 {0x6c, 0x00},
hazheng 32:5badeff825dc 78 {0x6d, 0x80},
hazheng 32:5badeff825dc 79 {0x6e, 0x00},
hazheng 32:5badeff825dc 80 {0x70, 0x02},
hazheng 32:5badeff825dc 81 {0x71, 0x94},
hazheng 32:5badeff825dc 82
hazheng 32:5badeff825dc 83 {0x73, 0xc1},
hazheng 32:5badeff825dc 84 //
hazheng 32:5badeff825dc 85 {0x12, 0x40},
hazheng 32:5badeff825dc 86 {0x17, 0x11},
hazheng 32:5badeff825dc 87 {0x18, 0x43},
hazheng 32:5badeff825dc 88 {0x19, 0x00},
hazheng 32:5badeff825dc 89 {0x1a, 0x4b},
hazheng 32:5badeff825dc 90 {0x32, 0x09},
hazheng 32:5badeff825dc 91 {0x37, 0xc0},
hazheng 32:5badeff825dc 92 {0x4f, 0xca},
hazheng 32:5badeff825dc 93 {0x50, 0xa8},
hazheng 32:5badeff825dc 94 {0x5a, 0x23},
hazheng 32:5badeff825dc 95 {0x6d, 0x00},
hazheng 32:5badeff825dc 96 {0x3d, 0x38},
hazheng 32:5badeff825dc 97 //
hazheng 32:5badeff825dc 98 {0xff, 0x00},
hazheng 32:5badeff825dc 99 {0xe5, 0x7f},
hazheng 32:5badeff825dc 100 {0xf9, 0xc0},
hazheng 32:5badeff825dc 101 {0x41, 0x24},
hazheng 32:5badeff825dc 102 {0xe0, 0x14},
hazheng 32:5badeff825dc 103 {0x76, 0xff},
hazheng 32:5badeff825dc 104 {0x33, 0xa0},
hazheng 32:5badeff825dc 105 {0x42, 0x20},
hazheng 32:5badeff825dc 106 {0x43, 0x18},
hazheng 32:5badeff825dc 107 {0x4c, 0x00},
hazheng 32:5badeff825dc 108 {0x87, 0xd5},
hazheng 32:5badeff825dc 109 {0x88, 0x3f},
hazheng 32:5badeff825dc 110 {0xd7, 0x03},
hazheng 32:5badeff825dc 111 {0xd9, 0x10},
hazheng 32:5badeff825dc 112 {0xd3, 0x82},
hazheng 32:5badeff825dc 113 //
hazheng 32:5badeff825dc 114 {0xc8, 0x08},
hazheng 32:5badeff825dc 115 {0xc9, 0x80},
hazheng 32:5badeff825dc 116 //
hazheng 32:5badeff825dc 117 {0x7c, 0x00},
hazheng 32:5badeff825dc 118 {0x7d, 0x00},
hazheng 32:5badeff825dc 119 {0x7c, 0x03},
hazheng 32:5badeff825dc 120 {0x7d, 0x48},
hazheng 32:5badeff825dc 121 {0x7d, 0x48},
hazheng 32:5badeff825dc 122 {0x7c, 0x08},
hazheng 32:5badeff825dc 123 {0x7d, 0x20},
hazheng 32:5badeff825dc 124 {0x7d, 0x10},
hazheng 32:5badeff825dc 125 {0x7d, 0x0e},
hazheng 32:5badeff825dc 126 //
hazheng 32:5badeff825dc 127 {0x90, 0x00},
hazheng 32:5badeff825dc 128 {0x91, 0x0e},
hazheng 32:5badeff825dc 129 {0x91, 0x1a},
hazheng 32:5badeff825dc 130 {0x91, 0x31},
hazheng 32:5badeff825dc 131
hazheng 32:5badeff825dc 132 {0x91, 0x5a},
hazheng 32:5badeff825dc 133 {0x91, 0x69},
hazheng 32:5badeff825dc 134 {0x91, 0x75},
hazheng 32:5badeff825dc 135 {0x91, 0x7e},
hazheng 32:5badeff825dc 136 {0x91, 0x88},
hazheng 32:5badeff825dc 137 {0x91, 0x8f},
hazheng 32:5badeff825dc 138 {0x91, 0x96},
hazheng 32:5badeff825dc 139 {0x91, 0xa3},
hazheng 32:5badeff825dc 140 {0x91, 0xaf},
hazheng 32:5badeff825dc 141 {0x91, 0xc4},
hazheng 32:5badeff825dc 142 {0x91, 0xd7},
hazheng 32:5badeff825dc 143 {0x91, 0xe8},
hazheng 32:5badeff825dc 144 {0x91, 0x20},
hazheng 32:5badeff825dc 145 //
hazheng 32:5badeff825dc 146 {0x92, 0x00},
hazheng 32:5badeff825dc 147 {0x93, 0x06},
hazheng 32:5badeff825dc 148 {0x93, 0xe3},
hazheng 32:5badeff825dc 149 {0x93, 0x05},
hazheng 32:5badeff825dc 150 {0x93, 0x05},
hazheng 32:5badeff825dc 151 {0x93, 0x00},
hazheng 32:5badeff825dc 152 {0x93, 0x04},
hazheng 32:5badeff825dc 153 {0x93, 0x00},
hazheng 32:5badeff825dc 154 {0x93, 0x00},
hazheng 32:5badeff825dc 155 {0x93, 0x00},
hazheng 32:5badeff825dc 156 {0x93, 0x00},
hazheng 32:5badeff825dc 157 {0x93, 0x00},
hazheng 32:5badeff825dc 158 {0x93, 0x00},
hazheng 32:5badeff825dc 159 {0x93, 0x00},
hazheng 32:5badeff825dc 160 //
hazheng 32:5badeff825dc 161 {0x96, 0x00},
hazheng 32:5badeff825dc 162 {0x97, 0x08},
hazheng 32:5badeff825dc 163 {0x97, 0x19},
hazheng 32:5badeff825dc 164 {0x97, 0x02},
hazheng 32:5badeff825dc 165 {0x97, 0x0c},
hazheng 32:5badeff825dc 166 {0x97, 0x24},
hazheng 32:5badeff825dc 167 {0x97, 0x30},
hazheng 32:5badeff825dc 168 {0x97, 0x28},
hazheng 32:5badeff825dc 169 {0x97, 0x26},
hazheng 32:5badeff825dc 170 {0x97, 0x02},
hazheng 32:5badeff825dc 171 {0x97, 0x98},
hazheng 32:5badeff825dc 172 {0x97, 0x80},
hazheng 32:5badeff825dc 173 {0x97, 0x00},
hazheng 32:5badeff825dc 174 {0x97, 0x00},
hazheng 32:5badeff825dc 175 //
hazheng 32:5badeff825dc 176 {0xc3, 0xed},
hazheng 32:5badeff825dc 177 {0xa4, 0x00},
hazheng 32:5badeff825dc 178 {0xa8, 0x00},
hazheng 32:5badeff825dc 179 {0xc5, 0x11},
hazheng 32:5badeff825dc 180
hazheng 32:5badeff825dc 181 {0xc6, 0x51},
hazheng 32:5badeff825dc 182 {0xbf, 0x80},
hazheng 32:5badeff825dc 183 {0xc7, 0x10},
hazheng 32:5badeff825dc 184 {0xb6, 0x66},
hazheng 32:5badeff825dc 185 {0xb8, 0xA5},
hazheng 32:5badeff825dc 186 {0xb7, 0x64},
hazheng 32:5badeff825dc 187 {0xb9, 0x7C},
hazheng 32:5badeff825dc 188 {0xb3, 0xaf},
hazheng 32:5badeff825dc 189 {0xb4, 0x97},
hazheng 32:5badeff825dc 190 {0xb5, 0xFF},
hazheng 32:5badeff825dc 191 {0xb0, 0xC5},
hazheng 32:5badeff825dc 192 {0xb1, 0x94},
hazheng 32:5badeff825dc 193 {0xb2, 0x0f},
hazheng 32:5badeff825dc 194 {0xc4, 0x5c},
hazheng 32:5badeff825dc 195 //
hazheng 32:5badeff825dc 196 {0xc0, 0x64},
hazheng 32:5badeff825dc 197 {0xc1, 0x4B},
hazheng 32:5badeff825dc 198 {0x8c, 0x00},
hazheng 32:5badeff825dc 199 {0x86, 0x3D},
hazheng 32:5badeff825dc 200 {0x50, 0x00},
hazheng 32:5badeff825dc 201 {0x51, 0xC8},
hazheng 32:5badeff825dc 202 {0x52, 0x96},
hazheng 32:5badeff825dc 203 {0x53, 0x00},
hazheng 32:5badeff825dc 204 {0x54, 0x00},
hazheng 32:5badeff825dc 205 {0x55, 0x00},
hazheng 32:5badeff825dc 206 {0x5a, 0xC8},
hazheng 32:5badeff825dc 207 {0x5b, 0x96},
hazheng 32:5badeff825dc 208 {0x5c, 0x00},
hazheng 32:5badeff825dc 209 {0xd3, 0x82},
hazheng 32:5badeff825dc 210 //
hazheng 32:5badeff825dc 211 {0xc3, 0xed},
hazheng 32:5badeff825dc 212 {0x7f, 0x00},
hazheng 32:5badeff825dc 213 //
hazheng 32:5badeff825dc 214 {0xda, 0x08},
hazheng 32:5badeff825dc 215 //
hazheng 32:5badeff825dc 216 {0xe5, 0x1f},
hazheng 32:5badeff825dc 217 {0xe1, 0x67},
hazheng 32:5badeff825dc 218 {0xe0, 0x00},
hazheng 32:5badeff825dc 219 {0xdd, 0x7f},
hazheng 32:5badeff825dc 220 {0x05, 0x00},
hazheng 30:ff7f83ad6369 221
hazheng 32:5badeff825dc 222 {0xff, 0xff}
hazheng 32:5badeff825dc 223 };
hazheng 33:e3fcc4d6bb9b 224 #endif // 800 X 600
hazheng 32:5badeff825dc 225
hazheng 33:e3fcc4d6bb9b 226 #if (defined(RESOLUTION_WIDTH) && RESOLUTION_WIDTH == 320) && (defined(RESOLUTION_HEIGHT) && RESOLUTION_HEIGHT == 240)
hazheng 32:5badeff825dc 227 const struct sensor_reg QVGA[] =
hazheng 30:ff7f83ad6369 228 {
hazheng 33:e3fcc4d6bb9b 229 /*0*/{0xff, 0x0},
hazheng 30:ff7f83ad6369 230 {0x2c, 0xff},
hazheng 30:ff7f83ad6369 231 {0x2e, 0xdf},
hazheng 33:e3fcc4d6bb9b 232 /*1*/{0xff, 0x1},
hazheng 32:5badeff825dc 233 {0x3c, 0x32},
hazheng 32:5badeff825dc 234
hazheng 30:ff7f83ad6369 235 {0x11, 0x0},
hazheng 30:ff7f83ad6369 236 {0x9, 0x2},
hazheng 33:e3fcc4d6bb9b 237 {0x04, 0x28}, /////////// //Horizontal Mirror
hazheng 30:ff7f83ad6369 238 {0x13, 0xe5},
hazheng 30:ff7f83ad6369 239 {0x14, 0x48},
hazheng 30:ff7f83ad6369 240 {0x2c, 0xc},
hazheng 30:ff7f83ad6369 241 {0x33, 0x78},
hazheng 30:ff7f83ad6369 242 {0x3a, 0x33},
hazheng 30:ff7f83ad6369 243 {0x3b, 0xfb},
hazheng 32:5badeff825dc 244
hazheng 30:ff7f83ad6369 245 {0x3e, 0x0},
hazheng 30:ff7f83ad6369 246 {0x43, 0x11},
hazheng 30:ff7f83ad6369 247 {0x16, 0x10},
hazheng 32:5badeff825dc 248
hazheng 32:5badeff825dc 249 {0x39, 0x2}, ///////////
hazheng 32:5badeff825dc 250
hazheng 32:5badeff825dc 251 {0x35, 0x88}, ///////////////
hazheng 32:5badeff825dc 252 {0x22, 0xa}, /////////////
hazheng 32:5badeff825dc 253 {0x37, 0x40}, ///////////
hazheng 30:ff7f83ad6369 254 {0x23, 0x0},
hazheng 32:5badeff825dc 255 {0x34, 0xa0},///////////////////
hazheng 32:5badeff825dc 256 {0x6, 0x2}, //++++++++++++++
hazheng 30:ff7f83ad6369 257 {0x6, 0x88},
hazheng 30:ff7f83ad6369 258 {0x7, 0xc0},
hazheng 32:5badeff825dc 259 {0xd, 0xb7}, ////////
hazheng 32:5badeff825dc 260 {0xe, 0x1}, /////////
hazheng 30:ff7f83ad6369 261 {0x4c, 0x0},
hazheng 32:5badeff825dc 262
hazheng 32:5badeff825dc 263 {0x4a, 0x81}, //++++++++++++++
hazheng 32:5badeff825dc 264
hazheng 30:ff7f83ad6369 265 {0x21, 0x99},
hazheng 30:ff7f83ad6369 266 {0x24, 0x40},
hazheng 30:ff7f83ad6369 267 {0x25, 0x38},
hazheng 30:ff7f83ad6369 268 {0x26, 0x82},
hazheng 30:ff7f83ad6369 269 {0x5c, 0x0},
hazheng 30:ff7f83ad6369 270 {0x63, 0x0},
hazheng 30:ff7f83ad6369 271 {0x46, 0x22},
hazheng 32:5badeff825dc 272 {0xc, 0x3a}, ///////////
hazheng 32:5badeff825dc 273
hazheng 32:5badeff825dc 274
hazheng 32:5badeff825dc 275 {0x5d, 0x55},//////
hazheng 32:5badeff825dc 276 {0x5e, 0x7d}, //////////
hazheng 32:5badeff825dc 277 {0x5f, 0x7d}, //////////
hazheng 32:5badeff825dc 278 {0x60, 0x55}, ///////
hazheng 32:5badeff825dc 279
hazheng 30:ff7f83ad6369 280 {0x61, 0x70},
hazheng 30:ff7f83ad6369 281 {0x62, 0x80},
hazheng 30:ff7f83ad6369 282 {0x7c, 0x5},
hazheng 32:5badeff825dc 283
hazheng 30:ff7f83ad6369 284 {0x20, 0x80},
hazheng 30:ff7f83ad6369 285 {0x28, 0x30},
hazheng 30:ff7f83ad6369 286 {0x6c, 0x0},
hazheng 30:ff7f83ad6369 287 {0x6d, 0x80},
hazheng 30:ff7f83ad6369 288 {0x6e, 0x0},
hazheng 30:ff7f83ad6369 289 {0x70, 0x2},
hazheng 30:ff7f83ad6369 290 {0x71, 0x94},
hazheng 30:ff7f83ad6369 291 {0x73, 0xc1},
hazheng 32:5badeff825dc 292
hazheng 30:ff7f83ad6369 293 {0x3d, 0x34},
hazheng 32:5badeff825dc 294
hazheng 32:5badeff825dc 295 {0x12, 0x4}, ////////////
hazheng 30:ff7f83ad6369 296 {0x5a, 0x57},
hazheng 32:5badeff825dc 297
hazheng 30:ff7f83ad6369 298 {0x4f, 0xbb},
hazheng 30:ff7f83ad6369 299 {0x50, 0x9c},
hazheng 32:5badeff825dc 300
hazheng 32:5badeff825dc 301
hazheng 33:e3fcc4d6bb9b 302 /*0*/{0xff, 0x0},
hazheng 30:ff7f83ad6369 303 {0xe5, 0x7f},
hazheng 30:ff7f83ad6369 304 {0xf9, 0xc0},
hazheng 30:ff7f83ad6369 305 {0x41, 0x24},
hazheng 30:ff7f83ad6369 306 {0xe0, 0x14},
hazheng 30:ff7f83ad6369 307 {0x76, 0xff},
hazheng 30:ff7f83ad6369 308 {0x33, 0xa0},
hazheng 30:ff7f83ad6369 309 {0x42, 0x20},
hazheng 30:ff7f83ad6369 310 {0x43, 0x18},
hazheng 30:ff7f83ad6369 311 {0x4c, 0x0},
hazheng 32:5badeff825dc 312 {0x87, 0xd0}, ///////
hazheng 30:ff7f83ad6369 313 {0x88, 0x3f},
hazheng 30:ff7f83ad6369 314 {0xd7, 0x3},
hazheng 30:ff7f83ad6369 315 {0xd9, 0x10},
hazheng 30:ff7f83ad6369 316 {0xd3, 0x82},
hazheng 32:5badeff825dc 317
hazheng 30:ff7f83ad6369 318 {0xc8, 0x8},
hazheng 30:ff7f83ad6369 319 {0xc9, 0x80},
hazheng 32:5badeff825dc 320
hazheng 30:ff7f83ad6369 321 {0x7c, 0x0},
hazheng 30:ff7f83ad6369 322 {0x7d, 0x0},
hazheng 30:ff7f83ad6369 323 {0x7c, 0x3},
hazheng 30:ff7f83ad6369 324 {0x7d, 0x48},
hazheng 30:ff7f83ad6369 325 {0x7d, 0x48},
hazheng 33:e3fcc4d6bb9b 326 {0x7c, 0x08},
hazheng 33:e3fcc4d6bb9b 327 {0x7d, 0x00}, //Gamma Correction?
hazheng 30:ff7f83ad6369 328 {0x7d, 0x10},
hazheng 33:e3fcc4d6bb9b 329 {0x7d, 0x0e},
hazheng 30:ff7f83ad6369 330 {0x90, 0x0},
hazheng 30:ff7f83ad6369 331 {0x91, 0xe},
hazheng 30:ff7f83ad6369 332 {0x91, 0x1a},
hazheng 30:ff7f83ad6369 333 {0x91, 0x31},
hazheng 30:ff7f83ad6369 334 {0x91, 0x5a},
hazheng 30:ff7f83ad6369 335 {0x91, 0x69},
hazheng 30:ff7f83ad6369 336 {0x91, 0x75},
hazheng 30:ff7f83ad6369 337 {0x91, 0x7e},
hazheng 30:ff7f83ad6369 338 {0x91, 0x88},
hazheng 30:ff7f83ad6369 339 {0x91, 0x8f},
hazheng 30:ff7f83ad6369 340 {0x91, 0x96},
hazheng 30:ff7f83ad6369 341 {0x91, 0xa3},
hazheng 30:ff7f83ad6369 342 {0x91, 0xaf},
hazheng 30:ff7f83ad6369 343 {0x91, 0xc4},
hazheng 30:ff7f83ad6369 344 {0x91, 0xd7},
hazheng 30:ff7f83ad6369 345 {0x91, 0xe8},
hazheng 30:ff7f83ad6369 346 {0x91, 0x20},
hazheng 32:5badeff825dc 347
hazheng 30:ff7f83ad6369 348 {0x92, 0x0},
hazheng 30:ff7f83ad6369 349 {0x93, 0x6},
hazheng 30:ff7f83ad6369 350 {0x93, 0xe3},
hazheng 32:5badeff825dc 351 {0x93, 0x3}, ////////
hazheng 32:5badeff825dc 352 {0x93, 0x3}, /////////
hazheng 30:ff7f83ad6369 353 {0x93, 0x0},
hazheng 32:5badeff825dc 354 {0x93, 0x2}, ///////
hazheng 30:ff7f83ad6369 355 {0x93, 0x0},
hazheng 30:ff7f83ad6369 356 {0x93, 0x0},
hazheng 30:ff7f83ad6369 357 {0x93, 0x0},
hazheng 30:ff7f83ad6369 358 {0x93, 0x0},
hazheng 30:ff7f83ad6369 359 {0x93, 0x0},
hazheng 30:ff7f83ad6369 360 {0x93, 0x0},
hazheng 30:ff7f83ad6369 361 {0x93, 0x0},
hazheng 32:5badeff825dc 362
hazheng 30:ff7f83ad6369 363 {0x96, 0x0},
hazheng 30:ff7f83ad6369 364 {0x97, 0x8},
hazheng 30:ff7f83ad6369 365 {0x97, 0x19},
hazheng 30:ff7f83ad6369 366 {0x97, 0x2},
hazheng 30:ff7f83ad6369 367 {0x97, 0xc},
hazheng 30:ff7f83ad6369 368 {0x97, 0x24},
hazheng 30:ff7f83ad6369 369 {0x97, 0x30},
hazheng 30:ff7f83ad6369 370 {0x97, 0x28},
hazheng 30:ff7f83ad6369 371 {0x97, 0x26},
hazheng 30:ff7f83ad6369 372 {0x97, 0x2},
hazheng 30:ff7f83ad6369 373 {0x97, 0x98},
hazheng 30:ff7f83ad6369 374 {0x97, 0x80},
hazheng 30:ff7f83ad6369 375 {0x97, 0x0},
hazheng 30:ff7f83ad6369 376 {0x97, 0x0},
hazheng 32:5badeff825dc 377
hazheng 32:5badeff825dc 378 //////
hazheng 30:ff7f83ad6369 379 {0xa4, 0x0},
hazheng 30:ff7f83ad6369 380 {0xa8, 0x0},
hazheng 30:ff7f83ad6369 381 {0xc5, 0x11},
hazheng 30:ff7f83ad6369 382 {0xc6, 0x51},
hazheng 30:ff7f83ad6369 383 {0xbf, 0x80},
hazheng 30:ff7f83ad6369 384 {0xc7, 0x10},
hazheng 30:ff7f83ad6369 385 {0xb6, 0x66},
hazheng 30:ff7f83ad6369 386 {0xb8, 0xa5},
hazheng 30:ff7f83ad6369 387 {0xb7, 0x64},
hazheng 30:ff7f83ad6369 388 {0xb9, 0x7c},
hazheng 30:ff7f83ad6369 389 {0xb3, 0xaf},
hazheng 30:ff7f83ad6369 390 {0xb4, 0x97},
hazheng 30:ff7f83ad6369 391 {0xb5, 0xff},
hazheng 30:ff7f83ad6369 392 {0xb0, 0xc5},
hazheng 30:ff7f83ad6369 393 {0xb1, 0x94},
hazheng 30:ff7f83ad6369 394 {0xb2, 0xf},
hazheng 30:ff7f83ad6369 395 {0xc4, 0x5c},
hazheng 32:5badeff825dc 396
hazheng 30:ff7f83ad6369 397 {0xa6, 0x0},
hazheng 30:ff7f83ad6369 398 {0xa7, 0x20},
hazheng 30:ff7f83ad6369 399 {0xa7, 0xd8},
hazheng 30:ff7f83ad6369 400 {0xa7, 0x1b},
hazheng 30:ff7f83ad6369 401 {0xa7, 0x31},
hazheng 30:ff7f83ad6369 402 {0xa7, 0x0},
hazheng 30:ff7f83ad6369 403 {0xa7, 0x18},
hazheng 30:ff7f83ad6369 404 {0xa7, 0x20},
hazheng 30:ff7f83ad6369 405 {0xa7, 0xd8},
hazheng 30:ff7f83ad6369 406 {0xa7, 0x19},
hazheng 30:ff7f83ad6369 407 {0xa7, 0x31},
hazheng 30:ff7f83ad6369 408 {0xa7, 0x0},
hazheng 30:ff7f83ad6369 409 {0xa7, 0x18},
hazheng 30:ff7f83ad6369 410 {0xa7, 0x20},
hazheng 30:ff7f83ad6369 411 {0xa7, 0xd8},
hazheng 30:ff7f83ad6369 412 {0xa7, 0x19},
hazheng 30:ff7f83ad6369 413 {0xa7, 0x31},
hazheng 30:ff7f83ad6369 414 {0xa7, 0x0},
hazheng 30:ff7f83ad6369 415 {0xa7, 0x18},
hazheng 30:ff7f83ad6369 416 {0x7f, 0x0},
hazheng 30:ff7f83ad6369 417 {0xe5, 0x1f},
hazheng 30:ff7f83ad6369 418 {0xe1, 0x77},
hazheng 30:ff7f83ad6369 419 {0xdd, 0x7f},
hazheng 30:ff7f83ad6369 420 {0xc2, 0xe},
hazheng 30:ff7f83ad6369 421
hazheng 33:e3fcc4d6bb9b 422 /*0*/{0xff, 0x0},
hazheng 30:ff7f83ad6369 423 {0xe0, 0x4},
hazheng 30:ff7f83ad6369 424 {0xc0, 0xc8},
hazheng 30:ff7f83ad6369 425 {0xc1, 0x96},
hazheng 30:ff7f83ad6369 426 {0x86, 0x3d},
hazheng 30:ff7f83ad6369 427 {0x51, 0x90},
hazheng 30:ff7f83ad6369 428 {0x52, 0x2c},
hazheng 30:ff7f83ad6369 429 {0x53, 0x0},
hazheng 30:ff7f83ad6369 430 {0x54, 0x0},
hazheng 30:ff7f83ad6369 431 {0x55, 0x88},
hazheng 30:ff7f83ad6369 432 {0x57, 0x0},
hazheng 30:ff7f83ad6369 433
hazheng 30:ff7f83ad6369 434 {0x50, 0x92},
hazheng 30:ff7f83ad6369 435 {0x5a, 0x50},
hazheng 30:ff7f83ad6369 436 {0x5b, 0x3c},
hazheng 30:ff7f83ad6369 437 {0x5c, 0x0},
hazheng 30:ff7f83ad6369 438 {0xd3, 0x4},
hazheng 30:ff7f83ad6369 439 {0xe0, 0x0},
hazheng 30:ff7f83ad6369 440
hazheng 33:e3fcc4d6bb9b 441 /*0*/{0xff, 0x0},
hazheng 30:ff7f83ad6369 442 {0x5, 0x0},
hazheng 30:ff7f83ad6369 443
hazheng 30:ff7f83ad6369 444 {0xda, 0x8},
hazheng 30:ff7f83ad6369 445 {0xd7, 0x3},
hazheng 30:ff7f83ad6369 446 {0xe0, 0x0},
hazheng 30:ff7f83ad6369 447
hazheng 30:ff7f83ad6369 448 {0x5, 0x0},
hazheng 30:ff7f83ad6369 449
hazheng 30:ff7f83ad6369 450
hazheng 30:ff7f83ad6369 451 {0xff,0xff},
hazheng 33:e3fcc4d6bb9b 452 };
hazheng 33:e3fcc4d6bb9b 453 #endif //320 X 240
hazheng 30:ff7f83ad6369 454
hazheng 33:e3fcc4d6bb9b 455 #if (defined(RESOLUTION_WIDTH) && RESOLUTION_WIDTH == 160) && (defined(RESOLUTION_HEIGHT) && RESOLUTION_HEIGHT == 120)
hazheng 33:e3fcc4d6bb9b 456 const struct sensor_reg QQVGA[]=
hazheng 33:e3fcc4d6bb9b 457 {
hazheng 33:e3fcc4d6bb9b 458 { 0xff, 0x00 },
hazheng 33:e3fcc4d6bb9b 459 { 0x2c, 0xff },
hazheng 33:e3fcc4d6bb9b 460 { 0x2e, 0xdf },
hazheng 33:e3fcc4d6bb9b 461 { 0xff, 0x01 },
hazheng 33:e3fcc4d6bb9b 462 { 0x3c, 0x32 },
hazheng 33:e3fcc4d6bb9b 463 { 0x11, 0x00 },
hazheng 33:e3fcc4d6bb9b 464 { 0x09, 0x02 },
hazheng 33:e3fcc4d6bb9b 465 { 0x03, 0xcf },
hazheng 33:e3fcc4d6bb9b 466 { 0x04, 0x08 },
hazheng 33:e3fcc4d6bb9b 467 { 0x13, 0xe5 },
hazheng 33:e3fcc4d6bb9b 468 { 0x14, 0x48 },
hazheng 33:e3fcc4d6bb9b 469 { 0x2c, 0x0c },
hazheng 33:e3fcc4d6bb9b 470 { 0x33, 0x78 },
hazheng 33:e3fcc4d6bb9b 471 { 0x3a, 0x33 },
hazheng 33:e3fcc4d6bb9b 472 { 0x3b, 0xfb },
hazheng 33:e3fcc4d6bb9b 473 { 0x3e, 0x00 },
hazheng 33:e3fcc4d6bb9b 474 { 0x43, 0x11 },
hazheng 33:e3fcc4d6bb9b 475 { 0x16, 0x10 },
hazheng 33:e3fcc4d6bb9b 476 { 0x39, 0x02 },
hazheng 33:e3fcc4d6bb9b 477 { 0x35, 0x88 },
hazheng 33:e3fcc4d6bb9b 478 { 0x22, 0x0a },
hazheng 33:e3fcc4d6bb9b 479 { 0x37, 0x40 },
hazheng 33:e3fcc4d6bb9b 480 { 0x23, 0x00 },
hazheng 33:e3fcc4d6bb9b 481 { 0x34, 0xa0 },
hazheng 33:e3fcc4d6bb9b 482 { 0x36, 0x1a },
hazheng 33:e3fcc4d6bb9b 483 { 0x06, 0x02 },
hazheng 33:e3fcc4d6bb9b 484 { 0x07, 0xc0 },
hazheng 33:e3fcc4d6bb9b 485 { 0x0d, 0xb7 },
hazheng 33:e3fcc4d6bb9b 486 { 0x0e, 0x01 },
hazheng 33:e3fcc4d6bb9b 487 { 0x4c, 0x00 },
hazheng 33:e3fcc4d6bb9b 488 { 0x4a, 0x81 },
hazheng 33:e3fcc4d6bb9b 489 { 0x21, 0x99 },
hazheng 33:e3fcc4d6bb9b 490 { 0x24, 0x3a },
hazheng 33:e3fcc4d6bb9b 491 { 0x25, 0x32 },
hazheng 33:e3fcc4d6bb9b 492 { 0x26, 0x82 },
hazheng 33:e3fcc4d6bb9b 493 { 0x5c, 0x00 },
hazheng 33:e3fcc4d6bb9b 494 { 0x63, 0x00 },
hazheng 33:e3fcc4d6bb9b 495 { 0x5d, 0x55 },
hazheng 33:e3fcc4d6bb9b 496 { 0x5e, 0x7d },
hazheng 33:e3fcc4d6bb9b 497 { 0x5f, 0x7d },
hazheng 33:e3fcc4d6bb9b 498 { 0x60, 0x55 },
hazheng 33:e3fcc4d6bb9b 499 { 0x61, 0x70 },
hazheng 33:e3fcc4d6bb9b 500 { 0x62, 0x80 },
hazheng 33:e3fcc4d6bb9b 501 { 0x7c, 0x05 },
hazheng 33:e3fcc4d6bb9b 502 { 0x20, 0x80 },
hazheng 33:e3fcc4d6bb9b 503 { 0x28, 0x30 },
hazheng 33:e3fcc4d6bb9b 504 { 0x6c, 0x00 },
hazheng 33:e3fcc4d6bb9b 505 { 0x6d, 0x80 },
hazheng 33:e3fcc4d6bb9b 506 { 0x6e, 0x00 },
hazheng 33:e3fcc4d6bb9b 507 { 0x70, 0x02 },
hazheng 33:e3fcc4d6bb9b 508 { 0x71, 0x96 },
hazheng 33:e3fcc4d6bb9b 509 { 0x73, 0xe1 },
hazheng 33:e3fcc4d6bb9b 510 { 0x3d, 0x34 },
hazheng 33:e3fcc4d6bb9b 511 { 0x5a, 0x57 },
hazheng 33:e3fcc4d6bb9b 512 { 0x4f, 0xbb },
hazheng 33:e3fcc4d6bb9b 513 { 0x50, 0x9c },
hazheng 33:e3fcc4d6bb9b 514 { 0x0f, 0x43 },
hazheng 33:e3fcc4d6bb9b 515 { 0xff, 0x00 },
hazheng 33:e3fcc4d6bb9b 516 { 0xe5, 0x7f },
hazheng 33:e3fcc4d6bb9b 517 { 0xf9, 0xc0 },
hazheng 33:e3fcc4d6bb9b 518 { 0x41, 0x24 },
hazheng 33:e3fcc4d6bb9b 519 { 0xe0, 0x14 },
hazheng 33:e3fcc4d6bb9b 520 { 0x76, 0xff },
hazheng 33:e3fcc4d6bb9b 521 { 0x33, 0xa0 },
hazheng 33:e3fcc4d6bb9b 522 { 0x42, 0x20 },
hazheng 33:e3fcc4d6bb9b 523 { 0x43, 0x18 },
hazheng 33:e3fcc4d6bb9b 524 { 0x4c, 0x00 },
hazheng 33:e3fcc4d6bb9b 525 { 0x87, 0xd0 },
hazheng 33:e3fcc4d6bb9b 526 { 0x88, 0x3f },
hazheng 33:e3fcc4d6bb9b 527 { 0xd7, 0x03 },
hazheng 33:e3fcc4d6bb9b 528 { 0xd9, 0x10 },
hazheng 33:e3fcc4d6bb9b 529 { 0xd3, 0x82 },
hazheng 33:e3fcc4d6bb9b 530 { 0xc8, 0x08 },
hazheng 33:e3fcc4d6bb9b 531 { 0xc9, 0x80 },
hazheng 33:e3fcc4d6bb9b 532 { 0x7c, 0x00 },
hazheng 33:e3fcc4d6bb9b 533 { 0x7d, 0x02 },
hazheng 33:e3fcc4d6bb9b 534 { 0x7c, 0x03 },
hazheng 33:e3fcc4d6bb9b 535 { 0x7d, 0x48 },
hazheng 33:e3fcc4d6bb9b 536 { 0x7d, 0x48 },
hazheng 33:e3fcc4d6bb9b 537 { 0x7c, 0x08 },
hazheng 33:e3fcc4d6bb9b 538 { 0x7d, 0x20 },
hazheng 33:e3fcc4d6bb9b 539 { 0x7d, 0x10 },
hazheng 33:e3fcc4d6bb9b 540 { 0x7d, 0x0e },
hazheng 33:e3fcc4d6bb9b 541 { 0x90, 0x00 },
hazheng 33:e3fcc4d6bb9b 542 { 0x91, 0x0e },
hazheng 33:e3fcc4d6bb9b 543 { 0x91, 0x1a },
hazheng 33:e3fcc4d6bb9b 544 { 0x91, 0x31 },
hazheng 33:e3fcc4d6bb9b 545 { 0x91, 0x5a },
hazheng 33:e3fcc4d6bb9b 546 { 0x91, 0x69 },
hazheng 33:e3fcc4d6bb9b 547 { 0x91, 0x75 },
hazheng 33:e3fcc4d6bb9b 548 { 0x91, 0x7e },
hazheng 33:e3fcc4d6bb9b 549 { 0x91, 0x88 },
hazheng 33:e3fcc4d6bb9b 550 { 0x91, 0x8f },
hazheng 33:e3fcc4d6bb9b 551 { 0x91, 0x96 },
hazheng 33:e3fcc4d6bb9b 552 { 0x91, 0xa3 },
hazheng 33:e3fcc4d6bb9b 553 { 0x91, 0xaf },
hazheng 33:e3fcc4d6bb9b 554 { 0x91, 0xc4 },
hazheng 33:e3fcc4d6bb9b 555 { 0x91, 0xd7 },
hazheng 33:e3fcc4d6bb9b 556 { 0x91, 0xe8 },
hazheng 33:e3fcc4d6bb9b 557 { 0x91, 0x20 },
hazheng 33:e3fcc4d6bb9b 558 { 0x92, 0x00 },
hazheng 33:e3fcc4d6bb9b 559 { 0x93, 0x06 },
hazheng 33:e3fcc4d6bb9b 560 { 0x93, 0xe3 },
hazheng 33:e3fcc4d6bb9b 561 { 0x93, 0x05 },
hazheng 33:e3fcc4d6bb9b 562 { 0x93, 0x05 },
hazheng 33:e3fcc4d6bb9b 563 { 0x93, 0x00 },
hazheng 33:e3fcc4d6bb9b 564 { 0x93, 0x00 },
hazheng 33:e3fcc4d6bb9b 565 { 0x93, 0x00 },
hazheng 33:e3fcc4d6bb9b 566 { 0x93, 0x00 },
hazheng 33:e3fcc4d6bb9b 567 { 0x93, 0x00 },
hazheng 33:e3fcc4d6bb9b 568 { 0x93, 0x00 },
hazheng 33:e3fcc4d6bb9b 569 { 0x93, 0x00 },
hazheng 33:e3fcc4d6bb9b 570 { 0x93, 0x00 },
hazheng 33:e3fcc4d6bb9b 571 { 0x93, 0x00 },
hazheng 33:e3fcc4d6bb9b 572 { 0x96, 0x00 },
hazheng 33:e3fcc4d6bb9b 573 { 0x97, 0x08 },
hazheng 33:e3fcc4d6bb9b 574 { 0x97, 0x19 },
hazheng 33:e3fcc4d6bb9b 575 { 0x97, 0x02 },
hazheng 33:e3fcc4d6bb9b 576 { 0x97, 0x0c },
hazheng 33:e3fcc4d6bb9b 577 { 0x97, 0x24 },
hazheng 33:e3fcc4d6bb9b 578 { 0x97, 0x30 },
hazheng 33:e3fcc4d6bb9b 579 { 0x97, 0x28 },
hazheng 33:e3fcc4d6bb9b 580 { 0x97, 0x26 },
hazheng 33:e3fcc4d6bb9b 581 { 0x97, 0x02 },
hazheng 33:e3fcc4d6bb9b 582 { 0x97, 0x98 },
hazheng 33:e3fcc4d6bb9b 583 { 0x97, 0x80 },
hazheng 33:e3fcc4d6bb9b 584 { 0x97, 0x00 },
hazheng 33:e3fcc4d6bb9b 585 { 0x97, 0x00 },
hazheng 33:e3fcc4d6bb9b 586 { 0xc3, 0xed },
hazheng 33:e3fcc4d6bb9b 587 { 0xa4, 0x00 },
hazheng 33:e3fcc4d6bb9b 588 { 0xa8, 0x00 },
hazheng 33:e3fcc4d6bb9b 589 { 0xbf, 0x00 },
hazheng 33:e3fcc4d6bb9b 590 { 0xba, 0xf0 },
hazheng 33:e3fcc4d6bb9b 591 { 0xbc, 0x64 },
hazheng 33:e3fcc4d6bb9b 592 { 0xbb, 0x02 },
hazheng 33:e3fcc4d6bb9b 593 { 0xb6, 0x3d },
hazheng 33:e3fcc4d6bb9b 594 { 0xb8, 0x57 },
hazheng 33:e3fcc4d6bb9b 595 { 0xb7, 0x38 },
hazheng 33:e3fcc4d6bb9b 596 { 0xb9, 0x4e },
hazheng 33:e3fcc4d6bb9b 597 { 0xb3, 0xe8 },
hazheng 33:e3fcc4d6bb9b 598 { 0xb4, 0xe1 },
hazheng 33:e3fcc4d6bb9b 599 { 0xb5, 0x66 },
hazheng 33:e3fcc4d6bb9b 600 { 0xb0, 0x67 },
hazheng 33:e3fcc4d6bb9b 601 { 0xb1, 0x5e },
hazheng 33:e3fcc4d6bb9b 602 { 0xb2, 0x04 },
hazheng 33:e3fcc4d6bb9b 603 { 0xc7, 0x00 },
hazheng 33:e3fcc4d6bb9b 604 { 0xc6, 0x51 },
hazheng 33:e3fcc4d6bb9b 605 { 0xc5, 0x11 },
hazheng 33:e3fcc4d6bb9b 606 { 0xc4, 0x9c },
hazheng 33:e3fcc4d6bb9b 607 { 0xcf, 0x02 },
hazheng 33:e3fcc4d6bb9b 608 { 0xa6, 0x00 },
hazheng 33:e3fcc4d6bb9b 609 { 0xa7, 0xe0 },
hazheng 33:e3fcc4d6bb9b 610 { 0xa7, 0x10 },
hazheng 33:e3fcc4d6bb9b 611 { 0xa7, 0x1e },
hazheng 33:e3fcc4d6bb9b 612 { 0xa7, 0x21 },
hazheng 33:e3fcc4d6bb9b 613 { 0xa7, 0x00 },
hazheng 33:e3fcc4d6bb9b 614 { 0xa7, 0x28 },
hazheng 33:e3fcc4d6bb9b 615 { 0xa7, 0xd0 },
hazheng 33:e3fcc4d6bb9b 616 { 0xa7, 0x10 },
hazheng 33:e3fcc4d6bb9b 617 { 0xa7, 0x16 },
hazheng 33:e3fcc4d6bb9b 618 { 0xa7, 0x21 },
hazheng 33:e3fcc4d6bb9b 619 { 0xa7, 0x00 },
hazheng 33:e3fcc4d6bb9b 620 { 0xa7, 0x28 },
hazheng 33:e3fcc4d6bb9b 621 { 0xa7, 0xd0 },
hazheng 33:e3fcc4d6bb9b 622 { 0xa7, 0x10 },
hazheng 33:e3fcc4d6bb9b 623 { 0xa7, 0x17 },
hazheng 33:e3fcc4d6bb9b 624 { 0xa7, 0x21 },
hazheng 33:e3fcc4d6bb9b 625 { 0xa7, 0x00 },
hazheng 33:e3fcc4d6bb9b 626 { 0xa7, 0x28 },
hazheng 33:e3fcc4d6bb9b 627 { 0xc0, 0xc8 },
hazheng 33:e3fcc4d6bb9b 628 { 0xc1, 0x96 },
hazheng 33:e3fcc4d6bb9b 629 { 0x86, 0x1d },
hazheng 33:e3fcc4d6bb9b 630 { 0x50, 0x00 },
hazheng 33:e3fcc4d6bb9b 631 { 0x51, 0x90 },
hazheng 33:e3fcc4d6bb9b 632 { 0x52, 0x18 },
hazheng 33:e3fcc4d6bb9b 633 { 0x53, 0x00 },
hazheng 33:e3fcc4d6bb9b 634 { 0x54, 0x00 },
hazheng 33:e3fcc4d6bb9b 635 { 0x55, 0x88 },
hazheng 33:e3fcc4d6bb9b 636 { 0x57, 0x00 },
hazheng 33:e3fcc4d6bb9b 637 { 0x5a, 0x90 },
hazheng 33:e3fcc4d6bb9b 638 { 0x5b, 0x18 },
hazheng 33:e3fcc4d6bb9b 639 { 0x5c, 0x05 },
hazheng 33:e3fcc4d6bb9b 640 { 0xc3, 0xef },
hazheng 33:e3fcc4d6bb9b 641 { 0x7f, 0x00 },
hazheng 33:e3fcc4d6bb9b 642 { 0xda, 0x00 },
hazheng 33:e3fcc4d6bb9b 643 { 0xe5, 0x1f },
hazheng 33:e3fcc4d6bb9b 644 { 0xe1, 0x67 },
hazheng 33:e3fcc4d6bb9b 645 { 0xe0, 0x00 },
hazheng 33:e3fcc4d6bb9b 646 { 0xdd, 0xff },
hazheng 33:e3fcc4d6bb9b 647 { 0x05, 0x00 },
hazheng 33:e3fcc4d6bb9b 648 { 0xff, 0x01 },
hazheng 33:e3fcc4d6bb9b 649 { 0xff, 0x01 },
hazheng 33:e3fcc4d6bb9b 650 { 0x12, 0x00 },
hazheng 33:e3fcc4d6bb9b 651 { 0x17, 0x11 },
hazheng 33:e3fcc4d6bb9b 652 { 0x18, 0x75 },
hazheng 33:e3fcc4d6bb9b 653 { 0x19, 0x01 },
hazheng 33:e3fcc4d6bb9b 654 { 0x1a, 0x97 },
hazheng 33:e3fcc4d6bb9b 655 { 0x32, 0x36 },
hazheng 33:e3fcc4d6bb9b 656 { 0x4f, 0xbb },
hazheng 33:e3fcc4d6bb9b 657 { 0x6d, 0x80 },
hazheng 33:e3fcc4d6bb9b 658 { 0x3d, 0x34 },
hazheng 33:e3fcc4d6bb9b 659 { 0x39, 0x02 },
hazheng 33:e3fcc4d6bb9b 660 { 0x35, 0x88 },
hazheng 33:e3fcc4d6bb9b 661 { 0x22, 0x0a },
hazheng 33:e3fcc4d6bb9b 662 { 0x37, 0x40 },
hazheng 33:e3fcc4d6bb9b 663 { 0x23, 0x00 },
hazheng 33:e3fcc4d6bb9b 664 { 0x34, 0xa0 },
hazheng 33:e3fcc4d6bb9b 665 { 0x36, 0x1a },
hazheng 33:e3fcc4d6bb9b 666 { 0x06, 0x02 },
hazheng 33:e3fcc4d6bb9b 667 { 0x07, 0xc0 },
hazheng 33:e3fcc4d6bb9b 668 { 0x0d, 0xb7 },
hazheng 33:e3fcc4d6bb9b 669 { 0x0e, 0x01 },
hazheng 33:e3fcc4d6bb9b 670 { 0x4c, 0x00 },
hazheng 33:e3fcc4d6bb9b 671 { 0xff, 0x00 },
hazheng 33:e3fcc4d6bb9b 672 { 0xe0, 0x04 },
hazheng 33:e3fcc4d6bb9b 673 { 0x8c, 0x00 },
hazheng 33:e3fcc4d6bb9b 674 { 0x87, 0xd0 },
hazheng 33:e3fcc4d6bb9b 675 { 0xe0, 0x00 },
hazheng 33:e3fcc4d6bb9b 676 { 0xff, 0x00 },
hazheng 33:e3fcc4d6bb9b 677 { 0xe0, 0x14 },
hazheng 33:e3fcc4d6bb9b 678 { 0xe1, 0x77 },
hazheng 33:e3fcc4d6bb9b 679 { 0xe5, 0x1f },
hazheng 33:e3fcc4d6bb9b 680 { 0xd7, 0x03 },
hazheng 33:e3fcc4d6bb9b 681 { 0xda, 0x10 },
hazheng 33:e3fcc4d6bb9b 682 { 0xe0, 0x00 },
hazheng 33:e3fcc4d6bb9b 683 { 0xff, 0x00 },
hazheng 33:e3fcc4d6bb9b 684 { 0xe0, 0x04 },
hazheng 33:e3fcc4d6bb9b 685 { 0xc0, 0xc8 },
hazheng 33:e3fcc4d6bb9b 686 { 0xc1, 0x96 },
hazheng 33:e3fcc4d6bb9b 687 { 0x86, 0x1d },
hazheng 33:e3fcc4d6bb9b 688 { 0x50, 0x00 },
hazheng 33:e3fcc4d6bb9b 689 { 0x51, 0x90 },
hazheng 33:e3fcc4d6bb9b 690 { 0x52, 0x2c },
hazheng 33:e3fcc4d6bb9b 691 { 0x53, 0x00 },
hazheng 33:e3fcc4d6bb9b 692 { 0x54, 0x00 },
hazheng 33:e3fcc4d6bb9b 693 { 0x55, 0x88 },
hazheng 33:e3fcc4d6bb9b 694 { 0x57, 0x00 },
hazheng 33:e3fcc4d6bb9b 695 { 0x5a, 0x90 },
hazheng 33:e3fcc4d6bb9b 696 { 0x5b, 0x2c },
hazheng 33:e3fcc4d6bb9b 697 { 0x5c, 0x05 },
hazheng 33:e3fcc4d6bb9b 698 { 0xe0, 0x00 },
hazheng 33:e3fcc4d6bb9b 699 { 0xd3, 0x04 },
hazheng 33:e3fcc4d6bb9b 700 { 0xff, 0x00 },
hazheng 33:e3fcc4d6bb9b 701 { 0xc3, 0xef },
hazheng 33:e3fcc4d6bb9b 702 { 0xa6, 0x00 },
hazheng 33:e3fcc4d6bb9b 703 { 0xa7, 0xdd },
hazheng 33:e3fcc4d6bb9b 704 { 0xa7, 0x78 },
hazheng 33:e3fcc4d6bb9b 705 { 0xa7, 0x7e },
hazheng 33:e3fcc4d6bb9b 706 { 0xa7, 0x24 },
hazheng 33:e3fcc4d6bb9b 707 { 0xa7, 0x00 },
hazheng 33:e3fcc4d6bb9b 708 { 0xa7, 0x25 },
hazheng 33:e3fcc4d6bb9b 709 { 0xa6, 0x06 },
hazheng 33:e3fcc4d6bb9b 710 { 0xa7, 0x20 },
hazheng 33:e3fcc4d6bb9b 711 { 0xa7, 0x58 },
hazheng 33:e3fcc4d6bb9b 712 { 0xa7, 0x73 },
hazheng 33:e3fcc4d6bb9b 713 { 0xa7, 0x34 },
hazheng 33:e3fcc4d6bb9b 714 { 0xa7, 0x00 },
hazheng 33:e3fcc4d6bb9b 715 { 0xa7, 0x25 },
hazheng 33:e3fcc4d6bb9b 716 { 0xa6, 0x0c },
hazheng 33:e3fcc4d6bb9b 717 { 0xa7, 0x28 },
hazheng 33:e3fcc4d6bb9b 718 { 0xa7, 0x58 },
hazheng 33:e3fcc4d6bb9b 719 { 0xa7, 0x6d },
hazheng 33:e3fcc4d6bb9b 720 { 0xa7, 0x34 },
hazheng 33:e3fcc4d6bb9b 721 { 0xa7, 0x00 },
hazheng 33:e3fcc4d6bb9b 722 { 0xa7, 0x25 },
hazheng 33:e3fcc4d6bb9b 723 { 0xff, 0x00 },
hazheng 33:e3fcc4d6bb9b 724 { 0xe0, 0x04 },
hazheng 33:e3fcc4d6bb9b 725 { 0xe1, 0x67 },
hazheng 33:e3fcc4d6bb9b 726 { 0xe5, 0x1f },
hazheng 33:e3fcc4d6bb9b 727 { 0xd7, 0x01 },
hazheng 33:e3fcc4d6bb9b 728 { 0xda, 0x08 },
hazheng 33:e3fcc4d6bb9b 729 { 0xda, 0x09 },
hazheng 33:e3fcc4d6bb9b 730 { 0xe0, 0x00 },
hazheng 33:e3fcc4d6bb9b 731 { 0x98, 0x00 },
hazheng 33:e3fcc4d6bb9b 732 { 0x99, 0x00 },
hazheng 33:e3fcc4d6bb9b 733 { 0xff, 0x01 },
hazheng 33:e3fcc4d6bb9b 734 { 0x04, 0x28 },
hazheng 33:e3fcc4d6bb9b 735 { 0xff, 0x01 },
hazheng 33:e3fcc4d6bb9b 736
hazheng 33:e3fcc4d6bb9b 737 { 0x12, 0x40 },
hazheng 33:e3fcc4d6bb9b 738
hazheng 33:e3fcc4d6bb9b 739 { 0x17, 0x11 },
hazheng 33:e3fcc4d6bb9b 740 { 0x18, 0x43 },
hazheng 33:e3fcc4d6bb9b 741 { 0x19, 0x00 },
hazheng 33:e3fcc4d6bb9b 742 { 0x1a, 0x4b },
hazheng 33:e3fcc4d6bb9b 743 { 0x32, 0x09 },
hazheng 33:e3fcc4d6bb9b 744 { 0x4f, 0xca },
hazheng 33:e3fcc4d6bb9b 745 { 0x50, 0xa8 },
hazheng 33:e3fcc4d6bb9b 746 { 0x5a, 0x23 },
hazheng 33:e3fcc4d6bb9b 747 { 0x6d, 0x00 },
hazheng 33:e3fcc4d6bb9b 748 { 0x39, 0x12 },
hazheng 33:e3fcc4d6bb9b 749 { 0x35, 0xda },
hazheng 33:e3fcc4d6bb9b 750 { 0x22, 0x1a },
hazheng 33:e3fcc4d6bb9b 751 { 0x37, 0xc3 },
hazheng 33:e3fcc4d6bb9b 752 { 0x23, 0x00 },
hazheng 33:e3fcc4d6bb9b 753 { 0x34, 0xc0 },
hazheng 33:e3fcc4d6bb9b 754 { 0x36, 0x1a },
hazheng 33:e3fcc4d6bb9b 755 { 0x06, 0x88 },
hazheng 33:e3fcc4d6bb9b 756 { 0x07, 0xc0 },
hazheng 33:e3fcc4d6bb9b 757 { 0x0d, 0x87 },
hazheng 33:e3fcc4d6bb9b 758 { 0x0e, 0x41 },
hazheng 33:e3fcc4d6bb9b 759 { 0x4c, 0x00 },
hazheng 33:e3fcc4d6bb9b 760 { 0xff, 0x00 },
hazheng 33:e3fcc4d6bb9b 761 { 0xe0, 0x04 },
hazheng 33:e3fcc4d6bb9b 762 { 0xc0, 0x64 },
hazheng 33:e3fcc4d6bb9b 763 { 0xc1, 0x4b },
hazheng 33:e3fcc4d6bb9b 764 { 0x86, 0x35 },
hazheng 33:e3fcc4d6bb9b 765 { 0x50, 0x92 },
hazheng 33:e3fcc4d6bb9b 766 { 0x51, 0xc8 },
hazheng 33:e3fcc4d6bb9b 767 { 0x52, 0x96 },
hazheng 33:e3fcc4d6bb9b 768 { 0x53, 0x00 },
hazheng 33:e3fcc4d6bb9b 769 { 0x54, 0x00 },
hazheng 33:e3fcc4d6bb9b 770 { 0x55, 0x00 },
hazheng 33:e3fcc4d6bb9b 771 { 0x57, 0x00 },
hazheng 33:e3fcc4d6bb9b 772 { 0x5a, 0x28 },
hazheng 33:e3fcc4d6bb9b 773 { 0x5b, 0x1e },
hazheng 33:e3fcc4d6bb9b 774 { 0x5c, 0x00 },
hazheng 33:e3fcc4d6bb9b 775 { 0xe0, 0x00 },
hazheng 33:e3fcc4d6bb9b 776 { 0xff, 0x01 },
hazheng 33:e3fcc4d6bb9b 777 { 0x11, 0x00 },
hazheng 33:e3fcc4d6bb9b 778 { 0x3d, 0x38 },
hazheng 33:e3fcc4d6bb9b 779 { 0x2d, 0x00 },
hazheng 33:e3fcc4d6bb9b 780 { 0x50, 0x65 },
hazheng 33:e3fcc4d6bb9b 781 { 0xff, 0x00 },
hazheng 33:e3fcc4d6bb9b 782 { 0xd3, 0x04 },
hazheng 33:e3fcc4d6bb9b 783 { 0x7c, 0x00 },
hazheng 33:e3fcc4d6bb9b 784 { 0x7d, 0x04 },
hazheng 33:e3fcc4d6bb9b 785 { 0x7c, 0x09 },
hazheng 33:e3fcc4d6bb9b 786 { 0x7d, 0x28 },
hazheng 33:e3fcc4d6bb9b 787 { 0x7d, 0x00 },
hazheng 33:e3fcc4d6bb9b 788 {0xff,0xff},
hazheng 33:e3fcc4d6bb9b 789 };
hazheng 33:e3fcc4d6bb9b 790 #endif //160 * 120
hazheng 33:e3fcc4d6bb9b 791
hazheng 33:e3fcc4d6bb9b 792 #ifdef CAMERA_JPEG_FORMAT
hazheng 32:5badeff825dc 793 const struct sensor_reg JPEG_INIT[] =
hazheng 30:ff7f83ad6369 794 {
hazheng 30:ff7f83ad6369 795 { 0xff, 0x00 },
hazheng 30:ff7f83ad6369 796 { 0x2c, 0xff },
hazheng 30:ff7f83ad6369 797 { 0x2e, 0xdf },
hazheng 30:ff7f83ad6369 798 { 0xff, 0x01 },
hazheng 30:ff7f83ad6369 799 { 0x3c, 0x32 },
hazheng 30:ff7f83ad6369 800 { 0x11, 0x00 },
hazheng 30:ff7f83ad6369 801 { 0x09, 0x02 },
hazheng 30:ff7f83ad6369 802 { 0x04, 0x28 },
hazheng 30:ff7f83ad6369 803 { 0x13, 0xe5 },
hazheng 30:ff7f83ad6369 804 { 0x14, 0x48 },
hazheng 30:ff7f83ad6369 805 { 0x2c, 0x0c },
hazheng 30:ff7f83ad6369 806 { 0x33, 0x78 },
hazheng 30:ff7f83ad6369 807 { 0x3a, 0x33 },
hazheng 30:ff7f83ad6369 808 { 0x3b, 0xfB },
hazheng 30:ff7f83ad6369 809 { 0x3e, 0x00 },
hazheng 30:ff7f83ad6369 810 { 0x43, 0x11 },
hazheng 30:ff7f83ad6369 811 { 0x16, 0x10 },
hazheng 30:ff7f83ad6369 812 { 0x39, 0x92 },
hazheng 30:ff7f83ad6369 813 { 0x35, 0xda },
hazheng 30:ff7f83ad6369 814 { 0x22, 0x1a },
hazheng 30:ff7f83ad6369 815 { 0x37, 0xc3 },
hazheng 30:ff7f83ad6369 816 { 0x23, 0x00 },
hazheng 30:ff7f83ad6369 817 { 0x34, 0xc0 },
hazheng 30:ff7f83ad6369 818 { 0x36, 0x1a },
hazheng 30:ff7f83ad6369 819 { 0x06, 0x88 },
hazheng 30:ff7f83ad6369 820 { 0x07, 0xc0 },
hazheng 30:ff7f83ad6369 821 { 0x0d, 0x87 },
hazheng 30:ff7f83ad6369 822 { 0x0e, 0x41 },
hazheng 30:ff7f83ad6369 823 { 0x4c, 0x00 },
hazheng 30:ff7f83ad6369 824 { 0x48, 0x00 },
hazheng 30:ff7f83ad6369 825 { 0x5B, 0x00 },
hazheng 30:ff7f83ad6369 826 { 0x42, 0x03 },
hazheng 30:ff7f83ad6369 827 { 0x4a, 0x81 },
hazheng 30:ff7f83ad6369 828 { 0x21, 0x99 },
hazheng 30:ff7f83ad6369 829 { 0x24, 0x40 },
hazheng 30:ff7f83ad6369 830 { 0x25, 0x38 },
hazheng 30:ff7f83ad6369 831 { 0x26, 0x82 },
hazheng 30:ff7f83ad6369 832 { 0x5c, 0x00 },
hazheng 30:ff7f83ad6369 833 { 0x63, 0x00 },
hazheng 30:ff7f83ad6369 834 { 0x61, 0x70 },
hazheng 30:ff7f83ad6369 835 { 0x62, 0x80 },
hazheng 30:ff7f83ad6369 836 { 0x7c, 0x05 },
hazheng 30:ff7f83ad6369 837 { 0x20, 0x80 },
hazheng 30:ff7f83ad6369 838 { 0x28, 0x30 },
hazheng 30:ff7f83ad6369 839 { 0x6c, 0x00 },
hazheng 30:ff7f83ad6369 840 { 0x6d, 0x80 },
hazheng 30:ff7f83ad6369 841 { 0x6e, 0x00 },
hazheng 30:ff7f83ad6369 842 { 0x70, 0x02 },
hazheng 30:ff7f83ad6369 843 { 0x71, 0x94 },
hazheng 30:ff7f83ad6369 844 { 0x73, 0xc1 },
hazheng 30:ff7f83ad6369 845 { 0x12, 0x40 },
hazheng 30:ff7f83ad6369 846 { 0x17, 0x11 },
hazheng 30:ff7f83ad6369 847 { 0x18, 0x43 },
hazheng 30:ff7f83ad6369 848 { 0x19, 0x00 },
hazheng 30:ff7f83ad6369 849 { 0x1a, 0x4b },
hazheng 30:ff7f83ad6369 850 { 0x32, 0x09 },
hazheng 30:ff7f83ad6369 851 { 0x37, 0xc0 },
hazheng 30:ff7f83ad6369 852 { 0x4f, 0x60 },
hazheng 30:ff7f83ad6369 853 { 0x50, 0xa8 },
hazheng 30:ff7f83ad6369 854 { 0x6d, 0x00 },
hazheng 30:ff7f83ad6369 855 { 0x3d, 0x38 },
hazheng 30:ff7f83ad6369 856 { 0x46, 0x3f },
hazheng 30:ff7f83ad6369 857 { 0x4f, 0x60 },
hazheng 30:ff7f83ad6369 858 { 0x0c, 0x3c },
hazheng 30:ff7f83ad6369 859 { 0xff, 0x00 },
hazheng 30:ff7f83ad6369 860 { 0xe5, 0x7f },
hazheng 30:ff7f83ad6369 861 { 0xf9, 0xc0 },
hazheng 30:ff7f83ad6369 862 { 0x41, 0x24 },
hazheng 30:ff7f83ad6369 863 { 0xe0, 0x14 },
hazheng 30:ff7f83ad6369 864 { 0x76, 0xff },
hazheng 30:ff7f83ad6369 865 { 0x33, 0xa0 },
hazheng 30:ff7f83ad6369 866 { 0x42, 0x20 },
hazheng 30:ff7f83ad6369 867 { 0x43, 0x18 },
hazheng 30:ff7f83ad6369 868 { 0x4c, 0x00 },
hazheng 30:ff7f83ad6369 869 { 0x87, 0xd5 },
hazheng 30:ff7f83ad6369 870 { 0x88, 0x3f },
hazheng 30:ff7f83ad6369 871 { 0xd7, 0x03 },
hazheng 30:ff7f83ad6369 872 { 0xd9, 0x10 },
hazheng 30:ff7f83ad6369 873 { 0xd3, 0x82 },
hazheng 30:ff7f83ad6369 874 { 0xc8, 0x08 },
hazheng 30:ff7f83ad6369 875 { 0xc9, 0x80 },
hazheng 30:ff7f83ad6369 876 { 0x7c, 0x00 },
hazheng 30:ff7f83ad6369 877 { 0x7d, 0x00 },
hazheng 30:ff7f83ad6369 878 { 0x7c, 0x03 },
hazheng 30:ff7f83ad6369 879 { 0x7d, 0x48 },
hazheng 30:ff7f83ad6369 880 { 0x7d, 0x48 },
hazheng 30:ff7f83ad6369 881 { 0x7c, 0x08 },
hazheng 30:ff7f83ad6369 882 { 0x7d, 0x20 },
hazheng 30:ff7f83ad6369 883 { 0x7d, 0x10 },
hazheng 30:ff7f83ad6369 884 { 0x7d, 0x0e },
hazheng 30:ff7f83ad6369 885 { 0x90, 0x00 },
hazheng 30:ff7f83ad6369 886 { 0x91, 0x0e },
hazheng 30:ff7f83ad6369 887 { 0x91, 0x1a },
hazheng 30:ff7f83ad6369 888 { 0x91, 0x31 },
hazheng 30:ff7f83ad6369 889 { 0x91, 0x5a },
hazheng 30:ff7f83ad6369 890 { 0x91, 0x69 },
hazheng 30:ff7f83ad6369 891 { 0x91, 0x75 },
hazheng 30:ff7f83ad6369 892 { 0x91, 0x7e },
hazheng 30:ff7f83ad6369 893 { 0x91, 0x88 },
hazheng 30:ff7f83ad6369 894 { 0x91, 0x8f },
hazheng 30:ff7f83ad6369 895 { 0x91, 0x96 },
hazheng 30:ff7f83ad6369 896 { 0x91, 0xa3 },
hazheng 30:ff7f83ad6369 897 { 0x91, 0xaf },
hazheng 30:ff7f83ad6369 898 { 0x91, 0xc4 },
hazheng 30:ff7f83ad6369 899 { 0x91, 0xd7 },
hazheng 30:ff7f83ad6369 900 { 0x91, 0xe8 },
hazheng 30:ff7f83ad6369 901 { 0x91, 0x20 },
hazheng 30:ff7f83ad6369 902 { 0x92, 0x00 },
hazheng 30:ff7f83ad6369 903 { 0x93, 0x06 },
hazheng 30:ff7f83ad6369 904 { 0x93, 0xe3 },
hazheng 30:ff7f83ad6369 905 { 0x93, 0x05 },
hazheng 30:ff7f83ad6369 906 { 0x93, 0x05 },
hazheng 30:ff7f83ad6369 907 { 0x93, 0x00 },
hazheng 30:ff7f83ad6369 908 { 0x93, 0x04 },
hazheng 30:ff7f83ad6369 909 { 0x93, 0x00 },
hazheng 30:ff7f83ad6369 910 { 0x93, 0x00 },
hazheng 30:ff7f83ad6369 911 { 0x93, 0x00 },
hazheng 30:ff7f83ad6369 912 { 0x93, 0x00 },
hazheng 30:ff7f83ad6369 913 { 0x93, 0x00 },
hazheng 30:ff7f83ad6369 914 { 0x93, 0x00 },
hazheng 30:ff7f83ad6369 915 { 0x93, 0x00 },
hazheng 30:ff7f83ad6369 916 { 0x96, 0x00 },
hazheng 30:ff7f83ad6369 917 { 0x97, 0x08 },
hazheng 30:ff7f83ad6369 918 { 0x97, 0x19 },
hazheng 30:ff7f83ad6369 919 { 0x97, 0x02 },
hazheng 30:ff7f83ad6369 920 { 0x97, 0x0c },
hazheng 30:ff7f83ad6369 921 { 0x97, 0x24 },
hazheng 30:ff7f83ad6369 922 { 0x97, 0x30 },
hazheng 30:ff7f83ad6369 923 { 0x97, 0x28 },
hazheng 30:ff7f83ad6369 924 { 0x97, 0x26 },
hazheng 30:ff7f83ad6369 925 { 0x97, 0x02 },
hazheng 30:ff7f83ad6369 926 { 0x97, 0x98 },
hazheng 30:ff7f83ad6369 927 { 0x97, 0x80 },
hazheng 30:ff7f83ad6369 928 { 0x97, 0x00 },
hazheng 30:ff7f83ad6369 929 { 0x97, 0x00 },
hazheng 30:ff7f83ad6369 930 { 0xc3, 0xed },
hazheng 30:ff7f83ad6369 931 { 0xa4, 0x00 },
hazheng 30:ff7f83ad6369 932 { 0xa8, 0x00 },
hazheng 30:ff7f83ad6369 933 { 0xc5, 0x11 },
hazheng 30:ff7f83ad6369 934 { 0xc6, 0x51 },
hazheng 30:ff7f83ad6369 935 { 0xbf, 0x80 },
hazheng 30:ff7f83ad6369 936 { 0xc7, 0x10 },
hazheng 30:ff7f83ad6369 937 { 0xb6, 0x66 },
hazheng 30:ff7f83ad6369 938 { 0xb8, 0xA5 },
hazheng 30:ff7f83ad6369 939 { 0xb7, 0x64 },
hazheng 30:ff7f83ad6369 940 { 0xb9, 0x7C },
hazheng 30:ff7f83ad6369 941 { 0xb3, 0xaf },
hazheng 30:ff7f83ad6369 942 { 0xb4, 0x97 },
hazheng 30:ff7f83ad6369 943 { 0xb5, 0xFF },
hazheng 30:ff7f83ad6369 944 { 0xb0, 0xC5 },
hazheng 30:ff7f83ad6369 945 { 0xb1, 0x94 },
hazheng 30:ff7f83ad6369 946 { 0xb2, 0x0f },
hazheng 30:ff7f83ad6369 947 { 0xc4, 0x5c },
hazheng 30:ff7f83ad6369 948 { 0xc0, 0x64 },
hazheng 30:ff7f83ad6369 949 { 0xc1, 0x4B },
hazheng 30:ff7f83ad6369 950 { 0x8c, 0x00 },
hazheng 30:ff7f83ad6369 951 { 0x86, 0x3D },
hazheng 30:ff7f83ad6369 952 { 0x50, 0x00 },
hazheng 30:ff7f83ad6369 953 { 0x51, 0xC8 },
hazheng 30:ff7f83ad6369 954 { 0x52, 0x96 },
hazheng 30:ff7f83ad6369 955 { 0x53, 0x00 },
hazheng 30:ff7f83ad6369 956 { 0x54, 0x00 },
hazheng 30:ff7f83ad6369 957 { 0x55, 0x00 },
hazheng 30:ff7f83ad6369 958 { 0x5a, 0xC8 },
hazheng 30:ff7f83ad6369 959 { 0x5b, 0x96 },
hazheng 30:ff7f83ad6369 960 { 0x5c, 0x00 },
hazheng 30:ff7f83ad6369 961 { 0xd3, 0x00 }, //{ 0xd3, 0x7f },
hazheng 30:ff7f83ad6369 962 { 0xc3, 0xed },
hazheng 30:ff7f83ad6369 963 { 0x7f, 0x00 },
hazheng 30:ff7f83ad6369 964 { 0xda, 0x00 },
hazheng 30:ff7f83ad6369 965 { 0xe5, 0x1f },
hazheng 30:ff7f83ad6369 966 { 0xe1, 0x67 },
hazheng 30:ff7f83ad6369 967 { 0xe0, 0x00 },
hazheng 30:ff7f83ad6369 968 { 0xdd, 0x7f },
hazheng 30:ff7f83ad6369 969 { 0x05, 0x00 },
hazheng 30:ff7f83ad6369 970
hazheng 30:ff7f83ad6369 971 { 0x12, 0x40 },
hazheng 30:ff7f83ad6369 972 { 0xd3, 0x04 }, //{ 0xd3, 0x7f },
hazheng 30:ff7f83ad6369 973 { 0xc0, 0x16 },
hazheng 30:ff7f83ad6369 974 { 0xC1, 0x12 },
hazheng 30:ff7f83ad6369 975 { 0x8c, 0x00 },
hazheng 30:ff7f83ad6369 976 { 0x86, 0x3d },
hazheng 30:ff7f83ad6369 977 { 0x50, 0x00 },
hazheng 30:ff7f83ad6369 978 { 0x51, 0x2C },
hazheng 30:ff7f83ad6369 979 { 0x52, 0x24 },
hazheng 30:ff7f83ad6369 980 { 0x53, 0x00 },
hazheng 30:ff7f83ad6369 981 { 0x54, 0x00 },
hazheng 30:ff7f83ad6369 982 { 0x55, 0x00 },
hazheng 30:ff7f83ad6369 983 { 0x5A, 0x2c },
hazheng 30:ff7f83ad6369 984 { 0x5b, 0x24 },
hazheng 30:ff7f83ad6369 985 { 0x5c, 0x00 },
hazheng 30:ff7f83ad6369 986 { 0xff, 0xff },
hazheng 30:ff7f83ad6369 987 };
hazheng 30:ff7f83ad6369 988
hazheng 32:5badeff825dc 989 const struct sensor_reg YUV422[] =
hazheng 30:ff7f83ad6369 990 {
hazheng 30:ff7f83ad6369 991 { 0xFF, 0x00 },
hazheng 30:ff7f83ad6369 992 { 0x05, 0x00 },
hazheng 30:ff7f83ad6369 993 { 0xDA, 0x10 },
hazheng 30:ff7f83ad6369 994 { 0xD7, 0x03 },
hazheng 30:ff7f83ad6369 995 { 0xDF, 0x00 },
hazheng 30:ff7f83ad6369 996 { 0x33, 0x80 },
hazheng 30:ff7f83ad6369 997 { 0x3C, 0x40 },
hazheng 30:ff7f83ad6369 998 { 0xe1, 0x77 },
hazheng 30:ff7f83ad6369 999 { 0x00, 0x00 },
hazheng 30:ff7f83ad6369 1000 { 0xff, 0xff },
hazheng 30:ff7f83ad6369 1001 };
hazheng 30:ff7f83ad6369 1002
hazheng 32:5badeff825dc 1003 const struct sensor_reg JPEG[] =
hazheng 30:ff7f83ad6369 1004 {
hazheng 30:ff7f83ad6369 1005 { 0xe0, 0x14 },
hazheng 30:ff7f83ad6369 1006 { 0xe1, 0x77 },
hazheng 30:ff7f83ad6369 1007 { 0xe5, 0x1f },
hazheng 30:ff7f83ad6369 1008 { 0xd7, 0x03 },
hazheng 30:ff7f83ad6369 1009 { 0xda, 0x10 },
hazheng 30:ff7f83ad6369 1010 { 0xe0, 0x00 },
hazheng 30:ff7f83ad6369 1011 { 0xFF, 0x01 },
hazheng 30:ff7f83ad6369 1012 { 0x04, 0x08 },
hazheng 30:ff7f83ad6369 1013 { 0xff, 0xff },
hazheng 30:ff7f83ad6369 1014 };
hazheng 30:ff7f83ad6369 1015
hazheng 30:ff7f83ad6369 1016 /* JPG 160x120 */
hazheng 32:5badeff825dc 1017 const struct sensor_reg P160x120_JPEG[] =
hazheng 30:ff7f83ad6369 1018 {
hazheng 30:ff7f83ad6369 1019 { 0xff, 0x01 },
hazheng 30:ff7f83ad6369 1020 { 0x12, 0x40 },
hazheng 30:ff7f83ad6369 1021 { 0x17, 0x11 },
hazheng 30:ff7f83ad6369 1022 { 0x18, 0x43 },
hazheng 30:ff7f83ad6369 1023 { 0x19, 0x00 },
hazheng 30:ff7f83ad6369 1024 { 0x1a, 0x4b },
hazheng 30:ff7f83ad6369 1025 { 0x32, 0x09 },
hazheng 30:ff7f83ad6369 1026 { 0x4f, 0xca },
hazheng 30:ff7f83ad6369 1027 { 0x50, 0xa8 },
hazheng 30:ff7f83ad6369 1028 { 0x5a, 0x23 },
hazheng 30:ff7f83ad6369 1029 { 0x6d, 0x00 },
hazheng 30:ff7f83ad6369 1030 { 0x39, 0x12 },
hazheng 30:ff7f83ad6369 1031 { 0x35, 0xda },
hazheng 30:ff7f83ad6369 1032 { 0x22, 0x1a },
hazheng 30:ff7f83ad6369 1033 { 0x37, 0xc3 },
hazheng 30:ff7f83ad6369 1034 { 0x23, 0x00 },
hazheng 30:ff7f83ad6369 1035 { 0x34, 0xc0 },
hazheng 30:ff7f83ad6369 1036 { 0x36, 0x1a },
hazheng 30:ff7f83ad6369 1037 { 0x06, 0x88 },
hazheng 30:ff7f83ad6369 1038 { 0x07, 0xc0 },
hazheng 30:ff7f83ad6369 1039 { 0x0d, 0x87 },
hazheng 30:ff7f83ad6369 1040 { 0x0e, 0x41 },
hazheng 30:ff7f83ad6369 1041 { 0x4c, 0x00 },
hazheng 30:ff7f83ad6369 1042 { 0xff, 0x00 },
hazheng 30:ff7f83ad6369 1043 { 0xe0, 0x04 },
hazheng 30:ff7f83ad6369 1044 { 0xc0, 0x64 },
hazheng 30:ff7f83ad6369 1045 { 0xc1, 0x4b },
hazheng 30:ff7f83ad6369 1046 { 0x86, 0x35 },
hazheng 30:ff7f83ad6369 1047 { 0x50, 0x92 },
hazheng 30:ff7f83ad6369 1048 { 0x51, 0xc8 },
hazheng 30:ff7f83ad6369 1049 { 0x52, 0x96 },
hazheng 30:ff7f83ad6369 1050 { 0x53, 0x00 },
hazheng 30:ff7f83ad6369 1051 { 0x54, 0x00 },
hazheng 30:ff7f83ad6369 1052 { 0x55, 0x00 },
hazheng 30:ff7f83ad6369 1053 { 0x57, 0x00 },
hazheng 30:ff7f83ad6369 1054 { 0x5a, 0x28 },
hazheng 30:ff7f83ad6369 1055 { 0x5b, 0x1e },
hazheng 30:ff7f83ad6369 1056 { 0x5c, 0x00 },
hazheng 30:ff7f83ad6369 1057 { 0xe0, 0x00 },
hazheng 30:ff7f83ad6369 1058 { 0xff, 0xff },
hazheng 30:ff7f83ad6369 1059 };
hazheng 30:ff7f83ad6369 1060
hazheng 30:ff7f83ad6369 1061
hazheng 30:ff7f83ad6369 1062 /* JPG 320x240 */
hazheng 30:ff7f83ad6369 1063
hazheng 32:5badeff825dc 1064 const struct sensor_reg P320x240_JPEG[] =
hazheng 30:ff7f83ad6369 1065 {
hazheng 30:ff7f83ad6369 1066 { 0xff, 0x01 },
hazheng 30:ff7f83ad6369 1067 { 0x12, 0x40 },
hazheng 30:ff7f83ad6369 1068 { 0x17, 0x11 },
hazheng 30:ff7f83ad6369 1069 { 0x18, 0x43 },
hazheng 30:ff7f83ad6369 1070 { 0x19, 0x00 },
hazheng 30:ff7f83ad6369 1071 { 0x1a, 0x4b },
hazheng 30:ff7f83ad6369 1072 { 0x32, 0x09 },
hazheng 30:ff7f83ad6369 1073 { 0x4f, 0xca },
hazheng 30:ff7f83ad6369 1074 { 0x50, 0xa8 },
hazheng 30:ff7f83ad6369 1075 { 0x5a, 0x23 },
hazheng 30:ff7f83ad6369 1076 { 0x6d, 0x00 },
hazheng 30:ff7f83ad6369 1077 { 0x39, 0x12 },
hazheng 30:ff7f83ad6369 1078 { 0x35, 0xda },
hazheng 30:ff7f83ad6369 1079 { 0x22, 0x1a },
hazheng 30:ff7f83ad6369 1080 { 0x37, 0xc3 },
hazheng 30:ff7f83ad6369 1081 { 0x23, 0x00 },
hazheng 30:ff7f83ad6369 1082 { 0x34, 0xc0 },
hazheng 30:ff7f83ad6369 1083 { 0x36, 0x1a },
hazheng 30:ff7f83ad6369 1084 { 0x06, 0x88 },
hazheng 30:ff7f83ad6369 1085 { 0x07, 0xc0 },
hazheng 30:ff7f83ad6369 1086 { 0x0d, 0x87 },
hazheng 30:ff7f83ad6369 1087 { 0x0e, 0x41 },
hazheng 30:ff7f83ad6369 1088 { 0x4c, 0x00 },
hazheng 30:ff7f83ad6369 1089 { 0xff, 0x00 },
hazheng 30:ff7f83ad6369 1090 { 0xe0, 0x04 },
hazheng 30:ff7f83ad6369 1091 { 0xc0, 0x64 },
hazheng 30:ff7f83ad6369 1092 { 0xc1, 0x4b },
hazheng 30:ff7f83ad6369 1093 { 0x86, 0x35 },
hazheng 30:ff7f83ad6369 1094 { 0x50, 0x89 },
hazheng 30:ff7f83ad6369 1095 { 0x51, 0xc8 },
hazheng 30:ff7f83ad6369 1096 { 0x52, 0x96 },
hazheng 30:ff7f83ad6369 1097 { 0x53, 0x00 },
hazheng 30:ff7f83ad6369 1098 { 0x54, 0x00 },
hazheng 30:ff7f83ad6369 1099 { 0x55, 0x00 },
hazheng 30:ff7f83ad6369 1100 { 0x57, 0x00 },
hazheng 30:ff7f83ad6369 1101 { 0x5a, 0x50 },
hazheng 30:ff7f83ad6369 1102 { 0x5b, 0x3c },
hazheng 30:ff7f83ad6369 1103 { 0x5c, 0x00 },
hazheng 30:ff7f83ad6369 1104 { 0xe0, 0x00 },
hazheng 30:ff7f83ad6369 1105 { 0xff, 0xff },
hazheng 30:ff7f83ad6369 1106 };
hazheng 33:e3fcc4d6bb9b 1107 #endif //CAMERA_JPEG_FORMAT
hazheng 30:ff7f83ad6369 1108 }
hazheng 30:ff7f83ad6369 1109
hazheng 29:f87d8790f57d 1110 #endif //OV2640_REG_PROG_H