adafruit / Adafruit_CircuitPython_DotStar

Dotstarrin' away in CircuitPython land
MIT License
47 stars 38 forks source link

zero bits for trailer #62

Closed tlyu closed 1 year ago

tlyu commented 1 year ago

Use zero bits, not ones, for the trailer, to avoid lighting up downstream pixels when the DotStar object is created with fewer pixels than are physically present in the chian.

This is visible after the second update of a DotStar object that is at least 17 pixels long, when there is a greater number of physical pixels in the chain.

tlyu commented 1 year ago

See https://forums.adafruit.com/viewtopic.php?t=192301 for an example of confusing behavior experienced by a user due to this bug. I outlined the fix in the thread, but only recently acquired a DotStar strip to test with.