Skip to content

Add colors for RGBW strips to target the RGB or RGBW LEDs #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion adafruit_led_animation/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -41,8 +45,11 @@
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:
Expand Down