Skip to content

Commit

Permalink
fix: weird color issue
Browse files Browse the repository at this point in the history
* feat: persist sensor opt to flash

* fix: weird color issue
  • Loading branch information
iChizer0 committed May 22, 2024
1 parent 13b7544 commit c576301
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions porting/himax/we2/drivers/drv_ov5647.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ static HX_CIS_SensorSetting_t OV5647_stream_off[] = {
static HX_CIS_SensorSetting_t OV5647_mirror_setting[] = {
{HX_CIS_I2C_Action_W, 0x0101, 0x00},
#ifdef CONFIG_EL_BOARD_GROVE_VISION_AI_WE2
{HX_CIS_I2C_Action_W, 0x3820, 0b00000000},
{HX_CIS_I2C_Action_W, 0x3821, 0b00000010},
// 76543210
{HX_CIS_I2C_Action_W, 0x3821, 0b00000111},
#endif
};

Expand Down Expand Up @@ -351,7 +349,7 @@ el_err_code_t drv_ov5647_init(uint16_t width, uint16_t height) {
hw5x5_cfg.hw5x5_path = HW5x5_PATH_THROUGH_DEMOSAIC;
hw5x5_cfg.demos_bndmode = DEMOS_BNDODE_REFLECT;
hw5x5_cfg.demos_color_mode = DEMOS_COLORMODE_YUV422;
hw5x5_cfg.demos_pattern_mode = DEMOS_PATTENMODE_RGGB;
hw5x5_cfg.demos_pattern_mode = DEMOS_PATTENMODE_GRBG;
hw5x5_cfg.demoslpf_roundmode = DEMOSLPF_ROUNDMODE_ROUNDING;
hw5x5_cfg.hw55_crop_stx = start_x;
hw5x5_cfg.hw55_crop_sty = start_y;
Expand Down

0 comments on commit c576301

Please sign in to comment.