Skip to content

Commit 163bd47

Browse files
committed
fix brightness
1 parent adca4fa commit 163bd47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

neopixel.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ def _transmogrify(self):
309309
"""Turn every BIT of buf into a special BYTE pattern."""
310310
k = 0
311311
for byte in self.buf:
312+
byte = int(byte * self.brightness)
312313
# MSB first
313314
for i in range(7, -1, -1):
314315
if byte >> i & 0x01:

0 commit comments

Comments
 (0)