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

Update whole strip with array of colors? #240

Open
peteruithoven opened this issue May 18, 2021 · 0 comments
Open

Update whole strip with array of colors? #240

peteruithoven opened this issue May 18, 2021 · 0 comments

Comments

@peteruithoven
Copy link
Contributor

With the current API to update each pixel you need to call color per pixel (e.g. strip.pixel(i).color(rgb);), this also requires one or more messages per pixel update.
Isn't there a way to update the whole strip with an array of colors?
Simple example:

const colors = [
  [255,0,0]
  [0,255,0]
  [0,0,255]
]
strip.color(colors);

If it's possible to send this with fewer messages this could improve the communication though put?
(Downside is that you lose the possibility to only update the leds that need to change).

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

No branches or pull requests

1 participant