From 7af662b74aaecca1b82d3299ba9de3cd558a37a9 Mon Sep 17 00:00:00 2001 From: Carter Nelson Date: Wed, 21 Aug 2019 04:04:19 +0100 Subject: [PATCH] fix white getting set 0 --- adafruit_seesaw/neopixel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_seesaw/neopixel.py b/adafruit_seesaw/neopixel.py index e3d0410..a994901 100644 --- a/adafruit_seesaw/neopixel.py +++ b/adafruit_seesaw/neopixel.py @@ -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