Skip to content

Commit

Permalink
Hrs3300: changed default gain to x8
Browse files Browse the repository at this point in the history
  • Loading branch information
hatmajster committed Jan 24, 2022
1 parent 26ae828 commit dfe5b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/Hrs3300.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ void Hrs3300::Init() {
// HRS and ALS both in 16-bit mode
WriteRegister(static_cast<uint8_t>(Registers::Res), 0x88);

// 64x gain
WriteRegister(static_cast<uint8_t>(Registers::Hgain), 0x10);
// 8x gain, reduced value
WriteRegister(static_cast<uint8_t>(Registers::Hgain), 0xc);
}

void Hrs3300::Enable() {
Expand Down

0 comments on commit dfe5b1d

Please sign in to comment.