Skip to content

Commit 3b8951b

Browse files
authored
Merge pull request #40 from caternuson/iss32
Fix white channel getting set 0.
2 parents a0fcd3f + 7af662b commit 3b8951b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_seesaw/neopixel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def __setitem__(self, key, color):
9999

100100
# If all components are the same and we have a white pixel then use it
101101
# instead of the individual components.
102-
if self._bpp == 4 and r == g == b:
102+
if self._bpp == 4 and r == g == b and w == 0:
103103
w = r
104104
r = 0
105105
g = 0

0 commit comments

Comments
 (0)