Skip to content

Commit 709aa08

Browse files
authored
Merge pull request #21 from kattni/doc-and-comment-fix
Update delta temp doc and remove comment.
2 parents 4a34373 + fefae38 commit 709aa08

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

adafruit_mcp9600.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,10 @@ def temperature(self) -> float:
363363

364364
@property
365365
def delta_temperature(self) -> float:
366-
"""Delta temperature in Celsius"""
366+
"""
367+
Delta between hot junction (thermocouple probe) and
368+
cold junction (ambient/room) temperatures in Celsius
369+
"""
367370
data = self._read_register(_REGISTER_DELTA_TEMP, 2)
368371
value = unpack(">xH", data)[0] * 0.0625
369372
if data[1] & 0x80:

examples/mcp9600_simpletest.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
import busio
77
import adafruit_mcp9600
88

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

0 commit comments

Comments
 (0)