Skip to content

Commit c18151f

Browse files
authored
Merge pull request #61 from georgebohnisch/master
Add colors for RGBW strips to target the RGB or RGBW LEDs
2 parents 5d99d5f + 30af259 commit c18151f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

adafruit_led_animation/color.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
# THE SOFTWARE.
2222
"""Color variables made available for import for CircuitPython LED animations library.
2323
24+
RGBW_WHITE_RGB is for RGBW strips to illuminate only the RGB diodes.
25+
RGBW_WHITE_W is for RGBW strips to illuminate only White diode.
26+
RGBW_WHITE_RGBW is for RGBW strips to illuminate the RGB and White diodes.
27+
2428
RAINBOW is a list of colors to use for cycling through.
2529
"""
2630
RED = (255, 0, 0)
@@ -41,8 +45,11 @@
4145
JADE = (0, 255, 40)
4246
AMBER = (255, 100, 0)
4347

44-
RAINBOW = (RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE)
48+
RGBW_WHITE_RGB = (255, 255, 255, 0)
49+
RGBW_WHITE_W = (0, 0, 0, 255)
50+
RGBW_WHITE_RGBW = (255, 255, 255, 255)
4551

52+
RAINBOW = (RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE)
4653

4754
try:
4855
try:

0 commit comments

Comments
 (0)