Skip to content

Commit 411190f

Browse files
authored
Init OK on 2.1.0
LIS3DH doesn't have `set_tap` on 2.1.0.
1 parent 3b35d80 commit 411190f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_circuitplayground/express.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ def __init__(self):
119119
self._lis3dh.range = adafruit_lis3dh.RANGE_8_G
120120

121121
# Initialise tap:
122-
self._lis3dh.set_tap(2, 18, time_limit=4, time_latency=17, time_window=110)
122+
try:
123+
self._lis3dh.set_tap(2, 18, time_limit=4, time_latency=17, time_window=110)
124+
except AttributeError:
125+
pass
123126
self._last_tap = False
124127

125128
@property

0 commit comments

Comments
 (0)