Is there a ‘rate limit’ to sending commands to a Blinkstrip? If I send 8 commands one after another if often misses two or three of them. Eg;
for(var x=0; x<7; x++) { leds.setColor(color, { index: x }); }
On the other hand, if I use a callback and a bit of recursion it works perfectly, eg;
function c(color, x){
if (x > 8) { return; }
leds.setColor(color, { index: x }, function(err){
x++;
c(color, x);
});
}
c('red',0);
I’ve only been playing with the Blinkstrip for about half an hour, just trying to get a handle on the necessary steps to getting the most out of it.
If I should be limiting the speed of sending, does anyone have any recommendations for a node.js library to do timed calls?