Merge pull request #531 from hatmajster/heart-rate-gain-setting

Heart rate sensor - HRS gain changed to x8
This commit is contained in:
JF 2022-01-26 21:44:23 +01:00 committed by GitHub
commit 71c895dc71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,8 +36,8 @@ void Hrs3300::Init() {
// HRS and ALS both in 16-bit mode // HRS and ALS both in 16-bit mode
WriteRegister(static_cast<uint8_t>(Registers::Res), 0x88); WriteRegister(static_cast<uint8_t>(Registers::Res), 0x88);
// 64x gain // 8x gain, non default, reduced value for better readings
WriteRegister(static_cast<uint8_t>(Registers::Hgain), 0x10); WriteRegister(static_cast<uint8_t>(Registers::Hgain), 0xc);
} }
void Hrs3300::Enable() { void Hrs3300::Enable() {