diff --git a/adafruit_dotstar.py b/adafruit_dotstar.py index 5e21c48..46a1f20 100755 --- a/adafruit_dotstar.py +++ b/adafruit_dotstar.py @@ -127,8 +127,10 @@ def __init__( # Four empty bytes for the header. header = bytearray(START_HEADER_SIZE) - # 0xff bytes for the trailer. - trailer = bytearray(b"\xff") * trailer_size + # Zero bits, not ones, for the trailer, to avoid lighting up + # downstream pixels, if there are more physical pixels than + # the length of this object. + trailer = bytearray(trailer_size) super().__init__( n,