We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91ea188 commit 8ed5aa4Copy full SHA for 8ed5aa4
adafruit_dotstar.py
@@ -251,7 +251,7 @@ def show(self):
251
for i in range(START_HEADER_SIZE):
252
buf[i] = 0x00
253
for i in range(START_HEADER_SIZE, self.end_header_index):
254
- buf[i] = self._buf[i] if i % 4 == 0 else math.ceil(self._buf[i] * self._brightness)
+ buf[i] = self._buf[i] if i % 4 == 0 else int(self._buf[i] * self._brightness)
255
# Four 0xff bytes at the end.
256
for i in range(self.end_header_index, len(buf)):
257
buf[i] = 0xff
0 commit comments