summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhatmajster <hat@code.hub.pl>2022-01-24 19:28:05 (GMT)
committerhatmajster <hat@code.hub.pl>2022-01-25 16:44:11 (GMT)
commitb4e956227e69d29e9440e3b125521c4f8d23d649 (patch)
tree543cdd12c9dc743627a039da3c8e6b80e05fb806
parent26ae828e393d28390c5ea718bec9d4c1a96435ac (diff)
Hrs3300: changed default gain to x8
-rw-r--r--src/drivers/Hrs3300.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/Hrs3300.cpp b/src/drivers/Hrs3300.cpp
index c14fe7a..9d71253 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<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() {