Skip to content

Modified library to add RBGW support#7

Open
azzeloof wants to merge 4 commits into
PaulStoffregen:masterfrom
azzeloof:master
Open

Modified library to add RBGW support#7
azzeloof wants to merge 4 commits into
PaulStoffregen:masterfrom
azzeloof:master

Conversation

@azzeloof

Copy link
Copy Markdown

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

avivey commented May 19, 2019

Copy link
Copy Markdown

@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