Skip to content

Commit 92ac6f3

Browse files
authored
Update code.py
Lint
1 parent 708341d commit 92ac6f3

File tree

1 file changed

+4
-5
lines changed
  • CircuitPython_LED_Sand_Hourglass/single_matrix

1 file changed

+4
-5
lines changed

CircuitPython_LED_Sand_Hourglass/single_matrix/code.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import time
66
import board
7-
import adafruit_lsm6ds.lsm6ds33
87
from adafruit_ht16k33 import matrix
98
import matrixsand
109

@@ -16,11 +15,11 @@
1615

1716
# check for LSM6DS33 or LSM6DS3TR-C (Adafruit Feather Sense)
1817
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)
2120
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)
2423

2524
# the matrix
2625
matrix = matrix.Matrix8x8(i2c, 0x70)

0 commit comments

Comments
 (0)