File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 34
34
# imports needed for main NeoPixel class
35
35
import digitalio
36
36
from neopixel_write import neopixel_write
37
- except ModuleNotFoundError :
37
+ except NotImplementedError :
38
38
# silently accept this, can still use NeoPixel SPI class
39
39
pass
40
40
@@ -301,9 +301,9 @@ def show(self):
301
301
with self ._spi as spi :
302
302
# write out special byte sequence surrounded by RESET
303
303
# 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 )
305
305
306
- def _transmogrify (self , buf ):
306
+ def _transmogrify (self ):
307
307
"""Turn every BIT of buf into a special BYTE pattern."""
308
308
out_buf = bytearray ()
309
309
for byte in self .buf :
You can’t perform that action at this time.
0 commit comments