From b4e956227e69d29e9440e3b125521c4f8d23d649 Mon Sep 17 00:00:00 2001 From: hatmajster Date: Mon, 24 Jan 2022 20:28:05 +0100 Subject: [PATCH] Hrs3300: changed default gain to x8 --- src/drivers/Hrs3300.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/drivers/Hrs3300.cpp b/src/drivers/Hrs3300.cpp index c14fe7aa..9d71253d 100644 --- a/src/drivers/Hrs3300.cpp +++ b/src/drivers/Hrs3300.cpp @@ -36,8 +36,8 @@ void Hrs3300::Init() { // HRS and ALS both in 16-bit mode WriteRegister(static_cast(Registers::Res), 0x88); - // 64x gain - WriteRegister(static_cast(Registers::Hgain), 0x10); + // 8x gain, non default, reduced value for better readings + WriteRegister(static_cast(Registers::Hgain), 0xc); } void Hrs3300::Enable() {