Skip to content

Add support for MCP9601 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions adafruit_mcp9600.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ def __init__(self, i2c, address=_DEFAULT_ADDRESS, tctype="K", tcfilter=0):
self.buf[1] = tcfilter | (ttype << 4)
with self.i2c_device as tci2c:
tci2c.write(self.buf, end=2)
if self._device_id != 0x40:
raise RuntimeError("Failed to find MCP9600 - check wiring!")
if self._device_id not in (0x40, 0x41):
raise RuntimeError("Failed to find MCP9600 or MCP9601 - check wiring!")

def alert_config(
self,
Expand Down