summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2021-09-10 20:17:14 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2021-09-10 20:17:57 (GMT)
commitbbf7d3aa14e4b3575d82c9d37bcec5d051b765c0 (patch)
tree9791d26c7a6b2866ffe7b265b7e6bc5bf94e0a4a
parentda71d39aa4155439c79493fbffe8542f06b94713 (diff)
drivers: hrs3300: Reduce HGAIN to x8
Experimentally drop the HGAIN to x8. Currently the evidence base for this change is a little weak but it doesn't seem to be *worse* than what we have now. Therefore I hope the wasp-os users will forgive me for using them as guinea pigs! Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
-rw-r--r--wasp/drivers/hrs3300.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wasp/drivers/hrs3300.py b/wasp/drivers/hrs3300.py
index 83f716b..80c8df0 100644
--- a/wasp/drivers/hrs3300.py
+++ b/wasp/drivers/hrs3300.py
@@ -42,7 +42,8 @@ class HRS3300:
w(_RES, 0x88)
# 64x gain
- w(_HGAIN, 0x10)
+ #w(_HGAIN, 0x10)
+ w(_HGAIN, 0x03)
def read_reg(self, addr):
return self._i2c.readfrom_mem(_I2CADDR, addr, 1)[0]