Skip to content

Commit 6500488

Browse files
committed
Update to resolve pylint error
1 parent 3b61cb0 commit 6500488

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adafruit_circuitplayground/express.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def light(self):
6666
"""Light level in SI Lux."""
6767
return self._photocell.value * 330 // (2 ** 16)
6868

69+
6970
class Express:
7071
"""Represents a single CircuitPlayground Express. Do not use more than one at
7172
a time."""
@@ -171,7 +172,8 @@ def shake(self):
171172
raise RuntimeError("Oops! You need a newer version of CircuitPython "
172173
"(2.2.0 or greater) to use cpx.shake.")
173174

174-
def adjust_touch_threshold(self, adjustment, pad_names):
175+
@classmethod
176+
def adjust_touch_threshold(cls, adjustment, pad_names):
175177
"""Adjust the threshold needed to activate the capacitive touch pads.
176178
Higher numbers make the touch pads less sensitive. Include the names
177179
of the touch pads for which you plan to change the threshold. They

0 commit comments

Comments
 (0)