@@ -104,9 +104,10 @@ def __init__(self, i2c_bus, address=PCT2075_DEFAULT_ADDRESS):
104
104
mode = RWBit (PCT2075_REGISTER_CONFIG , 1 , register_width = 1 )
105
105
"""Sets the alert mode. In comparator mode, the sensor acts like a thermostat and will activate
106
106
the INT pin according to `high_temp_active_high` when an alert is triggered. The INT pin will be
107
- deactivated when the temperature falls below :attr:`temperature_hysteresis`. In interrupt mode the
108
- INT pin is activated once when a temperature fault is detected, and once more when the
109
- temperature falls below :attr:`temperature_hysteresis`. In interrupt mode, the alert is cleared by
107
+ deactivated when the temperature falls below :attr:`temperature_hysteresis`.
108
+ In interrupt mode the INT pin is activated once when a temperature fault
109
+ is detected, and once more when the temperature falls below
110
+ :attr:`temperature_hysteresis`. In interrupt mode, the alert is cleared by
110
111
reading a property"""
111
112
112
113
shutdown = RWBit (PCT2075_REGISTER_CONFIG , 0 , 1 )
@@ -123,7 +124,8 @@ def __init__(self, i2c_bus, address=PCT2075_DEFAULT_ADDRESS):
123
124
124
125
@property
125
126
def temperature (self ):
126
- """Returns the current temperature in degrees Celsius. Resolution is 0.125 degrees Celsius"""
127
+ """Returns the current temperature in degrees Celsius.
128
+ Resolution is 0.125 degrees Celsius"""
127
129
return (self ._temperature >> 5 ) * 0.125
128
130
129
131
@property
@@ -138,9 +140,12 @@ def high_temperature_threshold(self, value):
138
140
139
141
@property
140
142
def temperature_hysteresis (self ):
141
- """The temperature hysteresis value defines the bottom of the temperature range in degrees
142
- Celsius in which the temperature is still considered high. :attr:`temperature_hysteresis` must be
143
- lower than :attr:`high_temperature_threshold`. Resolution is 0.5 degrees Celsius
143
+ """The temperature hysteresis value defines the bottom
144
+ of the temperature range in degrees Celsius in which
145
+ the temperature is still considered high.
146
+ :attr:`temperature_hysteresis` must be lower than
147
+ :attr:`high_temperature_threshold`.
148
+ Resolution is 0.5 degrees Celsius
144
149
"""
145
150
return (self ._temp_hysteresis >> 7 ) * 0.5
146
151
0 commit comments