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 6dbc5e7 commit 5ec51d1Copy full SHA for 5ec51d1
adafruit_cap1188/i2c.py
@@ -64,8 +64,7 @@ def _read_register(self, address):
64
"""Return 8 bit value of register at address."""
65
self._buf[0] = address
66
with self._i2c as i2c:
67
- i2c.write(self._buf, end=1, stop=False)
68
- i2c.readinto(self._buf, start=1)
+ i2c.write_then_readinto(self._buf, self._buf, out_end=1, in_start=1)
69
return self._buf[1]
70
71
def _write_register(self, address, value):
0 commit comments