We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7128a9a commit 0535d1cCopy full SHA for 0535d1c
adafruit_circuitplayground/express.py
@@ -165,8 +165,11 @@ def shake(self):
165
if cpx.shake(shake_threshold=20):
166
print("Shake detected more easily than before!")
167
"""
168
- return self._lis3dh.shake()
169
-
+ try:
+ return self._lis3dh.shake()
170
+ except AttributeError:
171
+ raise RuntimeError("Oops! You need a newer version of CircuitPython "
172
+ "(2.2.0 or greater) to use cpx.shake.")
173
174
@property
175
def touch_A1(self): # pylint: disable=invalid-name
0 commit comments