File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
CircuitPython_LED_Sand_Hourglass/single_matrix Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 44
55import time
66import board
7- import adafruit_lsm6ds .lsm6ds33
87from adafruit_ht16k33 import matrix
98import matrixsand
109
1615
1716# check for LSM6DS33 or LSM6DS3TR-C (Adafruit Feather Sense)
1817try :
19- from adafruit_lsm6ds .lsm6ds33 import LSM6DS33 as LSM6DS
20- lsm6ds = LSM6DS (i2c )
18+ from adafruit_lsm6ds .lsm6ds33 import LSM6DS33 as LSM6DS # pylint: disable=unused-import
19+ accelo = LSM6DS (i2c )
2120except RuntimeError :
22- from adafruit_lsm6ds .lsm6ds3 import LSM6DS3 as LSM6DS
23- lsm6ds = LSM6DS (i2c )
21+ from adafruit_lsm6ds .lsm6ds3 import LSM6DS3 as LSM6DS # pylint: disable=unused-import
22+ accelo = LSM6DS (i2c )
2423
2524# the matrix
2625matrix = matrix .Matrix8x8 (i2c , 0x70 )
You can’t perform that action at this time.
0 commit comments