Skip to content
Merged
Prev Previous commit
Next Next commit
adding doc_inline
  • Loading branch information
jposada202020 committed May 18, 2021
commit ce1dca50291929040ce87621ff3a0c5561dbeea6
8 changes: 8 additions & 0 deletions adafruit_mcp9808.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,16 @@ class MCP9808:

_MCP9808_REG_RESOLUTION_SET = RWBits(2, 0x08, 0, register_width=2)
above_ct = ROBit(_MCP9808_REG__TEMP, 7, register_width=1)
"""True when the temperature is higher than the currently
set critical temperature. False Otherwise"""

above_ut = ROBit(_MCP9808_REG__TEMP, 6, register_width=1)
"""True when the temperature is higher than the currently
set high temperature. False Otherwise"""

below_lt = ROBit(_MCP9808_REG__TEMP, 5, register_width=1)
"""True when the temperature is lower than the currently
set lower temperature. False Otherwise"""

def __init__(self, i2c_bus, address=_MCP9808_DEFAULT_ADDRESS):
self.i2c_device = I2CDevice(i2c_bus, address)
Expand Down