You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • With 144 LEDs it could be a bit slow - are there particular effects you're having trouble with?

    There's a Uint24Array now which is pretty nifty - you can set a whole LED at once with it, which should speed things up quite a lot...

    var arr = new Uint24Array(25*3);
    
    function getPattern() {
      pos++;
      for (var i=0;i<arr.length;i++)
        arr[i]=E.HSBtoRGB((i+pos)*0.01,1,1);
    }
    
    function onTimer() {
      getPattern();
      require("neopixel").write(B15, arr.buffer);
    }
    
    setInterval(onTimer, 50);
    
About

Avatar for Gordon @Gordon started