From 30af259e0cad25e55f6afdf8ee43bf802d27c4d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20B=C3=B6hnisch?= Date: Fri, 10 Jul 2020 16:48:26 -0500 Subject: [PATCH] Add colors for RGBW strips to target the RGB, W, or RGBW diodes --- adafruit_led_animation/color.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/adafruit_led_animation/color.py b/adafruit_led_animation/color.py index 183b048..6be1b48 100644 --- a/adafruit_led_animation/color.py +++ b/adafruit_led_animation/color.py @@ -21,6 +21,10 @@ # THE SOFTWARE. """Color variables made available for import for CircuitPython LED animations library. +RGBW_WHITE_RGB is for RGBW strips to illuminate only the RGB diodes. +RGBW_WHITE_W is for RGBW strips to illuminate only White diode. +RGBW_WHITE_RGBW is for RGBW strips to illuminate the RGB and White diodes. + RAINBOW is a list of colors to use for cycling through. """ RED = (255, 0, 0) @@ -41,8 +45,11 @@ AQUA = (50, 255, 255) JADE = (0, 255, 40) AMBER = (255, 100, 0) -RAINBOW = (RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE) +RGBW_WHITE_RGB = (255, 255, 255, 0) +RGBW_WHITE_W = (0, 0, 0, 255) +RGBW_WHITE_RGBW = (255, 255, 255, 255) +RAINBOW = (RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE) try: try: