Skip to content
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

Modified library to add RBGW support #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

azzeloof
Copy link

Addresses Issue #5

Modified to include  jgastonraoul's fix, which allows for RGBW LEDs, but does not allow for the white pixel to be enabled. See https://forum.pjrc.com/threads/49209-Non-blocking-library-for-RGBW-Neopixels
Library now works for RGB and RGBW pixels
@avivey
Copy link

avivey commented May 19, 2019

@azzeloof I have a similar patch I was thinking of submitting - master...avivey:wrgb

In my version, I put a ledWidth member instead of dispSize and drawSize, and replace all the * 3 instances with * ledWidth (which is either 3 or 4). That way I don't need if (config == ...) in the cpp file (but instead I use if (ledWidth > 3)).

I also support WRGB lights, which is the stuff I happen to have :)

I don't have tests though :/

Do you maybe want to take some inspiration from my patch?

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