Skip to content

Commit

Permalink
Fix context B grayscale bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Jun 26, 2023
1 parent 3dfff94 commit fec6d55
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Libraries/MiscDrivers/Camera/hm0360_color.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "mxc_delay.h"
#include "mxc_device.h"

// clang-format off

#define cambus_write(addr, x) sccb_write_reg16(g_slv_addr, addr, x)
#define cambus_read(addr, x) sccb_read_reg16(g_slv_addr, addr, x)

Expand Down Expand Up @@ -519,11 +519,11 @@ static const uint16_t default_regs[][2] = {
{ 0x355E , 0x8E }, // * FRAME_LENGTH_LINES_L
{0x355F, 0x03},
{0x3560, 0x00},
{0x3561, 0x02},
{0x3562, 0x02},
{0x3563, 0x03},
{0x3564, 0x11},
{0x3565, 0x01},
{0x3561, 0x02}, // H_SUB: sub4
{0x3562, 0x02}, // V_SUB: sub4
{0x3563, 0x00}, // BIN_MODE: Disable binning
{0x3564, 0xFF}, // Magic value marked reserved in datasheet. Must be 0xFF
{0x3565, 0x00}, // MONO_MODE_ISP: Disable mono mode
{0x3566, 0x00},
{0x3567, 0x01},
{0x3569, 0x00},
Expand Down

0 comments on commit fec6d55

Please sign in to comment.