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);
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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...