Browse Source

Update ov2640.c (#298)

offset_Y was repeated, the last change to offset_X
pull/302/head
Quoc Huynh Nguyen 4 years ago committed by GitHub
parent
commit
6a9497bbe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      sensors/ov2640.c

2
sensors/ov2640.c

@ -150,7 +150,7 @@ static int set_window(sensor_t *sensor, ov2640_sensor_mode_t mode, int offset_x, @@ -150,7 +150,7 @@ static int set_window(sensor_t *sensor, ov2640_sensor_mode_t mode, int offset_x,
{VSIZE, max_y & 0xFF},
{XOFFL, offset_x & 0xFF},
{YOFFL, offset_y & 0xFF},
{VHYX, ((max_y >> 1) & 0X80) | ((offset_y >> 4) & 0X70) | ((max_x >> 5) & 0X08) | ((offset_y >> 8) & 0X07)},
{VHYX, ((max_y >> 1) & 0X80) | ((offset_y >> 4) & 0X70) | ((max_x >> 5) & 0X08) | ((offset_x >> 8) & 0X07)},
{TEST, (max_x >> 2) & 0X80},
{ZMOW, (w)&0xFF},
{ZMOH, (h)&0xFF},

Loading…
Cancel
Save