@Robet, the Knightrider thing sounds like a good place to start...
Personally, I'd keep using Uint8Array - It uses less memory and it's faster, but otherwise it's just like a normal array.
And instead of a delay, you'll want to use setInterval to call your code maybe 5 times a second (200ms)...
Let us know if you need any pointers... The only thing to note is depending on your LEDs (WS2811 or WS2812) red, green and blue are in different order - but if it's not right it's easy enough to experiment :)
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.
@Robet, the Knightrider thing sounds like a good place to start...
Personally, I'd keep using Uint8Array - It uses less memory and it's faster, but otherwise it's just like a normal array.
And instead of a delay, you'll want to use
setInterval
to call your code maybe 5 times a second (200ms)...Let us know if you need any pointers... The only thing to note is depending on your LEDs (WS2811 or WS2812) red, green and blue are in different order - but if it's not right it's easy enough to experiment :)