ajfisher / node-pixel

Library for using addressable LEDs (such as NeoPixels/WS2812) with Firmata and JohnnyFive
MIT License
275 stars 71 forks source link

Trigger predefined colors? #241

Open peteruithoven opened 3 years ago

peteruithoven commented 3 years ago

We're trying to animate led strips using predefined gifs, but we're running into known speed limitations.

Would it be interesting to add the functionality to transfer multiple predefined colors and then trigger those later on?

const colors = [
  [255,0,0]
  [0,255,0]
  [0,0,255]
]
strip.store(0, colors);
// later on:
strip.trigger(0);