Skip to content

Commit 76db7cf

Browse files
authored
Merge pull request #17 from tannewt/remove_stop
Remove stop kwarg and use write_then_readinto.
2 parents 9f7a868 + a18dde1 commit 76db7cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

adafruit_amg88xx.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ def pixels(self):
163163
for col in range(0, _PIXEL_ARRAY_WIDTH):
164164
i = row * _PIXEL_ARRAY_HEIGHT + col
165165
buf[0] = _PIXEL_OFFSET + (i << 1)
166-
i2c.write(buf, end=1, stop=False)
167-
i2c.readinto(buf, start=1)
166+
i2c.write_then_readinto(buf, buf, out_end=1, in_start=1)
168167

169168
raw = (buf[2] << 8) | buf[1]
170169
retbuf[row][col] = _twos_comp_to_float(raw) * _PIXEL_TEMP_CONVERSION

0 commit comments

Comments
 (0)