Skip to content

Update delta temp doc and remove comment. #21

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
Sep 22, 2022
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion adafruit_mcp9600.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,10 @@ def temperature(self) -> float:

@property
def delta_temperature(self) -> float:
"""Delta temperature in Celsius"""
"""
Delta between hot junction (thermocouple probe) and
cold junction (ambient/room) temperatures in Celsius
"""
data = self._read_register(_REGISTER_DELTA_TEMP, 2)
value = unpack(">xH", data)[0] * 0.0625
if data[1] & 0x80:
Expand Down
2 changes: 0 additions & 2 deletions examples/mcp9600_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
import busio
import adafruit_mcp9600

# frequency must be set for the MCP9600 to function.
# If you experience I/O errors, try changing the frequency.
i2c = busio.I2C(board.SCL, board.SDA, frequency=100000)
mcp = adafruit_mcp9600.MCP9600(i2c)

Expand Down