Skip to content

Commit 3c08383

Browse files
committed
Correcting Long lines
1 parent 857b9a8 commit 3c08383

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

adafruit_pct2075.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ def __init__(self, i2c_bus, address=PCT2075_DEFAULT_ADDRESS):
104104
mode = RWBit(PCT2075_REGISTER_CONFIG, 1, register_width=1)
105105
"""Sets the alert mode. In comparator mode, the sensor acts like a thermostat and will activate
106106
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
110111
reading a property"""
111112

112113
shutdown = RWBit(PCT2075_REGISTER_CONFIG, 0, 1)
@@ -123,7 +124,8 @@ def __init__(self, i2c_bus, address=PCT2075_DEFAULT_ADDRESS):
123124

124125
@property
125126
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"""
127129
return (self._temperature >> 5) * 0.125
128130

129131
@property
@@ -138,9 +140,12 @@ def high_temperature_threshold(self, value):
138140

139141
@property
140142
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
144149
"""
145150
return (self._temp_hysteresis >> 7) * 0.5
146151

0 commit comments

Comments
 (0)