We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 927e91a commit 9bcf507Copy full SHA for 9bcf507
adafruit_ltr390.py
@@ -307,13 +307,13 @@ def _reset(self):
307
# The LTR390 software reset is ill behaved and can leave I2C bus in bad state.
308
# Instead, just manually set register reset values per datasheet.
309
with self.i2c_device as i2c:
310
- i2c.write(bytes([_CTRL, 0x00]))
311
- i2c.write(bytes([_MEAS_RATE, 0x22]))
312
- i2c.write(bytes([_GAIN, 0x01]))
313
- i2c.write(bytes([_INT_CFG, 0x10]))
314
- i2c.write(bytes([_INT_PST, 0x00]))
315
- i2c.write(bytes([_THRESH_UP, 0xFF, 0xFF, 0x0F]))
316
- i2c.write(bytes([_THRESH_LOW, 0x00, 0x00, 0x00]))
+ i2c.write(bytes((_CTRL, 0x00)))
+ i2c.write(bytes((_MEAS_RATE, 0x22)))
+ i2c.write(bytes((_GAIN, 0x01)))
+ i2c.write(bytes((_INT_CFG, 0x10)))
+ i2c.write(bytes((_INT_PST, 0x00)))
+ i2c.write(bytes((_THRESH_UP, 0xFF, 0xFF, 0x0F)))
+ i2c.write(bytes((_THRESH_LOW, 0x00, 0x00, 0x00)))
317
318
@property
319
def _mode(self):
0 commit comments