Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Commit d184076

Browse files
committed
Initialize dotstar buffer with start bytes
1 parent 3cb945a commit d184076

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

adafruit_pypixelbuf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ def __init__( # pylint: disable=too-many-locals,too-many-arguments
9898
byteorder_tuple[2] + 1,
9999
0,
100100
)
101+
# Initialize the buffer with the dotstar start bytes.
102+
for i in range(self._offset, self._bytes + self._offset, 4):
103+
self._post_brightness_buffer[i] = DOTSTAR_LED_START_FULL_BRIGHT
101104

102105
self._brightness = 1.0
103106
self.brightness = brightness

0 commit comments

Comments
 (0)