File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
adafruit_circuitplayground Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ def light(self):
66
66
"""Light level in SI Lux."""
67
67
return self ._photocell .value * 330 // (2 ** 16 )
68
68
69
+
69
70
class Express :
70
71
"""Represents a single CircuitPlayground Express. Do not use more than one at
71
72
a time."""
@@ -171,7 +172,8 @@ def shake(self):
171
172
raise RuntimeError ("Oops! You need a newer version of CircuitPython "
172
173
"(2.2.0 or greater) to use cpx.shake." )
173
174
174
- def adjust_touch_threshold (self , adjustment , pad_names ):
175
+ @classmethod
176
+ def adjust_touch_threshold (cls , adjustment , pad_names ):
175
177
"""Adjust the threshold needed to activate the capacitive touch pads.
176
178
Higher numbers make the touch pads less sensitive. Include the names
177
179
of the touch pads for which you plan to change the threshold. They
You can’t perform that action at this time.
0 commit comments