Skip to content

Update whole strip with array of colors? #240

@peteruithoven

Description

@peteruithoven

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions