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

WIP: Add RGBW strip support #101

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

Conversation

ebrearley
Copy link

@ebrearley ebrearley commented May 30, 2017

Add RGBW and SK6812 support

This PR is aiming to address both

Description

This is VERY much a work in progress. In fact what I've done in this first iteration is a bit of an educated and guided hack to get the hardware to light up correctly, as a proof of concept.

I have a tangible result with this however, I am able to address LED's individually. Win!

The strip is currently only showing blue and green colours, and it looks like:

red = nothing,
green = blue,
blue = green,
white = nothing,

WIP gif:

(excuse the kitchen, i'm making dinner 🍱 )

johnny-five controlled RGBW SK6812 LEDs! (well kind of)
uqkmdy

Plan

Once I get this working, I'll go back and refactor what i've done to add RGBW as an optional parameter OR as a initialisation configuration option.

  • Control LEDs successfully on all RGBW channels from johnny-five
  • Refactor implementation so somebody can specify whether they want to use RGB or RGBW.
  • Update tests where required, and cover RGBW changes
  • Create RGBW example
  • Update documentation

@LeonFedotov
Copy link

@ebrearley Hi, any plans continuing work on this?

@che-effe
Copy link

che-effe commented Jan 2, 2019

@ebrearley, I'm in need of this. Are you going to continue with what you mentioned above? Mind if I tag in to get through some of it?

@ajfisher
Copy link
Owner

ajfisher commented Jan 2, 2019

@che-effe I reckon this is stale now, so if you are feeling up for it then I can help guide you on what needs doing.

@che-effe
Copy link

che-effe commented Jan 3, 2019

@ajfisher I'm in! I'm going to fork from @ebrearley 's work and get myself up to speed with what he had completed. Unless you think I should start fresh.

@tingelbobber
Copy link

tingelbobber commented Jan 3, 2019

@che-effe i am also testing on a arduino nano and 60 sk6912 leds right now. If u like i can also support your branch. I really want to get this working in the next few days.

The firmware looks good, i got these leds working with the adafruit lib, fastled and jinx!

@che-effe
Copy link

I currently have bandwidth for this. Giving it a shot this week. Will be on vacation for a bit but still planning to work. would love a bit of guidance on where to pick up from here. I have a forked branch here https://github.com/che-effe/node-pixel I made sure to update from latest master and will continue there.

@tingelbobber
Copy link

I played arround a bit with all the libs and stuff. Basiclly its not that hard because when you think of the problem twice, you just have to convert rgb to rgbw right before sending data to the leds at the arduino side, doing changes at the javascript side is not needed. 255 255 255 converts to 0 0 0 255

The formular is pretty easy:

w = math.min(r,g,b);
r = r-w;
g= g-w;
b=b-w;

There are also more advanced formulars to extract the white value from a color, but this one works very well.

@ajfisher
Copy link
Owner

ajfisher commented Jan 21, 2019 via email

@ScreamZ
Copy link

ScreamZ commented Oct 27, 2023

Any body on that in 2023 ?

@ajfisher
Copy link
Owner

ajfisher commented Oct 27, 2023 via email

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.

6 participants