Skip to content

Commit

Permalink
Merge pull request #531 from hatmajster/heart-rate-gain-setting
Browse files Browse the repository at this point in the history
Heart rate sensor - HRS gain changed to x8
  • Loading branch information
JF002 authored Jan 26, 2022
2 parents 9e9010c + b4e9562 commit 71c895d
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, non default, reduced value for better readings
WriteRegister(static_cast<uint8_t>(Registers::Hgain), 0xc);
}

void Hrs3300::Enable() {
Expand Down

0 comments on commit 71c895d

Please sign in to comment.