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

Conversation

georgebohnisch
Copy link

@georgebohnisch georgebohnisch commented Jul 10, 2020

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.

@@ -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)
Copy link

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

Copy link
Author

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?

Copy link

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)

Copy link
Author

@georgebohnisch georgebohnisch Jul 13, 2020

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.

Copy link
Author

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.

Copy link
Author

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.

@rhooper rhooper merged commit c18151f into adafruit:master Jul 13, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants