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