You are reading a single comment by @AdaMan82 and its replies.
Click here to read the full conversation.
-
So I know this thread is super old but I wanted to say thanks to @Gordon that was the trick I was looking for!
I was able to use it also to make a sound reactive LED hat using some advice you gave someone else! Thanks for helping me as I am new to the coding world!
You could try this:
Uint24Array
isn't actually in the JS spec, but it's super helpful for neopixels as you can write R/G/B in one go.As @MaBe mentioned you can also try compiled code when you're calculating what your 25 LED pattern should be.
Note that you could also do stuff like:
So then it does the pattern, but flips and repeats it so even if you start with red and end with green, there's no harsh point at which it changes