-
Notifications
You must be signed in to change notification settings - Fork 45
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
Conversation
adafruit_led_animation/color.py
Outdated
@@ -41,8 +44,10 @@ | |||
JADE = (0, 255, 40) | |||
AMBER = (255, 100, 0) | |||
|
|||
RAINBOW = (RED, ORANGE, YELLOW, GREEN, BLUE, PURPLE) | |||
RGBW_RGB = (255, 255, 255, 0) | |||
RGBW_RGBW = (255, 255, 255, 255) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about RGBW_WHITE_RGB and RGBW_WHITE_RGBW and maybe also RGBW_WHITE_W
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean RGB_WHITE_RGB... etc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't sure RGBW_RGB
is a clear colour name... This is what I was thinking.
RGBW_WHITE_RGB = (255, 255, 255, 0)
RGBW_WHITE_RGBW = (255, 255, 255, 255)
RGBW_WHITE_W = (0, 0, 0, 255)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't RGBW_WHITE_*
redundant? The W in RGBW is the white diode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you're saying, since these are all various permutations of "WHITE" let's call the color WHITE and include which diodes are used to generate the white. Yeah, I like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the PR with the proposed changes.
Updating https://github.com/adafruit/Adafruit_CircuitPython_Display_Text to 2.7.10 from 2.7.9: > Merge pull request adafruit/Adafruit_CircuitPython_Display_Text#69 from kmatch98/bitmap_zero Updating https://github.com/adafruit/Adafruit_CircuitPython_ImageLoad to 0.11.5 from 0.11.4: > Merge pull request adafruit/Adafruit_CircuitPython_ImageLoad#34 from adafruit/readme-fix Updating https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation to 2.4.0 from 2.3.4: > Merge pull request adafruit/Adafruit_CircuitPython_LED_Animation#61 from georgebohnisch/master > Merge pull request adafruit/Adafruit_CircuitPython_LED_Animation#60 from rhooper/ring_support
Useful for when you want to specifically illuminate the RGB LEDs without the White LEDs or for when you want to go full brightness and turn on all diodes on the chip.