Skip to content

Commit

Permalink
Merge pull request #40 from caternuson/iss32
Browse files Browse the repository at this point in the history
Fix white channel getting set 0.
  • Loading branch information
ladyada committed Aug 21, 2019
2 parents a0fcd3f + 7af662b commit 3b8951b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_seesaw/neopixel.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def __setitem__(self, key, color):

# If all components are the same and we have a white pixel then use it
# instead of the individual components.
if self._bpp == 4 and r == g == b:
if self._bpp == 4 and r == g == b and w == 0:
w = r
r = 0
g = 0
Expand Down

0 comments on commit 3b8951b

Please sign in to comment.