Has anyone seen techniques for handling a 2D matrix of LEDs that are NOT arranged on a rectangle? I’m torn between creating a memory space that is a rectangle and just mapping the LEDs to the space or creating a function that will convert one coordinate system to the other.
And of course, reusing someone else’s code is even better.
I did this by building a map in excel, then running some code to build the array of the LED numbers that I could paste into the arduino code. Then I just run through either the vertical or horizontal array either forwards or backwards to get the patterns I wanted. Does that make any sense? And it’s not too slow I’m running about 300 WS2812Bs over eight strips on a teensy 3.2
I did a while ago play around with a masked version of my matrix code but felt I could improve it so never released it. You basically had to supply a binary mask when declaring it that had 1’s where leds existed. I could revisit this if anyones interested.