Skip to content

Commit 2215082

Browse files
committed
code review updates
1 parent cd04c7a commit 2215082

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

neopixel_spi.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"""
4545

4646
from adafruit_pypixelbuf import PixelBuf, fill
47+
from adafruit_bus_device.spi_device import SPIDevice
4748

4849
__version__ = "0.0.0-auto.0"
4950
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_NeoPixel_SPI.git"
@@ -81,7 +82,6 @@ class NeoPixel_SPI(PixelBuf):
8182
pixels = neopixel_spi.NeoPixel_SPI(board.SPI(), 10)
8283
pixels.fill(0xff0000)
8384
"""
84-
#pylint: disable=invalid-name
8585

8686
FREQ = 6400000 # 800kHz * 8, actual may be different
8787
TRST = 80e-6 # Reset code low level time
@@ -95,7 +95,6 @@ def __init__(self, spi, n, *, bpp=3, brightness=1.0, auto_write=True, pixel_orde
9595
bpp = len(pixel_order)
9696

9797
# set up SPI related stuff
98-
from adafruit_bus_device.spi_device import SPIDevice
9998
self._spi = SPIDevice(spi, baudrate=self.FREQ)
10099
with self._spi as spibus:
101100
try:

0 commit comments

Comments
 (0)