Skip to content

Commit 434feba

Browse files
committed
and now they have docstrings
1 parent 9b16c8d commit 434feba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_mpr121.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,16 @@ def thresholds(self, value):
112112

113113
@property
114114
def threshold(self):
115+
"""The touch threhold."""
115116
return self.thresholds[0]
116117

117118
@threshold.setter
118119
def threshold(self, value):
119120
self._mpr121._write_register_byte(MPR121_TOUCHTH_0 + 2*self._channel, value)
120-
121+
121122
@property
122123
def release_threshold(self):
124+
"""The release threhold."""
123125
return self.thresholds[1]
124126

125127
@release_threshold.setter

0 commit comments

Comments
 (0)