Skip to content

Commit 1253fe2

Browse files
committed
Added update to work with collections
1 parent d5491cd commit 1253fe2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

adafruit_lis3dh.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
import time
3434
import math
3535
import digitalio
36-
from ucollections import namedtuple
36+
try:
37+
from collections import namedtuple
38+
except ImportError:
39+
from ucollections import namedtuple
3740
try:
3841
import struct
3942
except ImportError:

0 commit comments

Comments
 (0)