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 4
4
5
5
import time
6
6
import board
7
- import adafruit_lsm6ds .lsm6ds33
8
7
from adafruit_ht16k33 import matrix
9
8
import matrixsand
10
9
16
15
17
16
# check for LSM6DS33 or LSM6DS3TR-C (Adafruit Feather Sense)
18
17
try :
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 )
21
20
except 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 )
24
23
25
24
# the matrix
26
25
matrix = matrix .Matrix8x8 (i2c , 0x70 )
You can’t perform that action at this time.
0 commit comments