Closed
Description
When setting a pixel with a list for the value:
>>> import board
>>> import neopixel
>>> NUMPIXELS = 16
>>> neopixels = neopixel.NeoPixel(board.D4, NUMPIXELS, brightness=0.2, auto_write=False)
>>> neopixels[1] = [0,0,0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "neopixel.py", line 169, in __setitem__
File "neopixel.py", line 148, in _set_item
TypeError: unsupported types for __add__: 'list', 'tuple'
This appears to be from the tuple addition used here:
Adafruit_CircuitPython_NeoPixel/neopixel.py
Line 148 in 6e35cd2
Metadata
Metadata
Assignees
Labels
No labels