Skip to content

Commit 1b9b340

Browse files
committed
and more lints
1 parent 6d5085c commit 1b9b340

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

neopixel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# imports needed for main NeoPixel class
3535
import digitalio
3636
from neopixel_write import neopixel_write
37-
except ModuleNotFoundError:
37+
except NotImplementedError:
3838
# silently accept this, can still use NeoPixel SPI class
3939
pass
4040

@@ -301,9 +301,9 @@ def show(self):
301301
with self._spi as spi:
302302
# write out special byte sequence surrounded by RESET
303303
# leading RESET needed for cases where MOSI rests HI
304-
spi.write(self.RESET + self._transmogrify(self.buf) + self.RESET)
304+
spi.write(self.RESET + self._transmogrify() + self.RESET)
305305

306-
def _transmogrify(self, buf):
306+
def _transmogrify(self):
307307
"""Turn every BIT of buf into a special BYTE pattern."""
308308
out_buf = bytearray()
309309
for byte in self.buf:

0 commit comments

Comments
 (0)