Skip to content

Commit

Permalink
Merge pull request #62 from tlyu/zero-trailer
Browse files Browse the repository at this point in the history
zero bits for trailer
  • Loading branch information
FoamyGuy authored Feb 6, 2023
2 parents 8b1b8d1 + c752669 commit 187279a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions adafruit_dotstar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 187279a

Please sign in to comment.