From 086d543ea8da2d71dcc6a28e0cd4bb7d005b6f83 Mon Sep 17 00:00:00 2001 From: lubarb Date: Fri, 19 Mar 2021 18:57:30 -0400 Subject: [PATCH] Change sensor setup Change the control mode setup to match the TLV493D User Manual section 5.5 --- adafruit_tlv493d.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adafruit_tlv493d.py b/adafruit_tlv493d.py index f37a248..b571b72 100644 --- a/adafruit_tlv493d.py +++ b/adafruit_tlv493d.py @@ -90,9 +90,8 @@ def __init__(self, i2c_bus, address=_TLV493D_DEFAULT_ADDRESS, addr_reg=0): # setup MASTERCONTROLLEDMODE which takes a measurement for every read self._set_write_key("PARITY", 1) - self._set_write_key("PARITY", 1) + self._set_write_key("FAST", 1) self._set_write_key("LOWPOWER", 1) - self._set_write_key("LP_PERIOD", 1) self._write_i2c() def _read_i2c(self):