I am looking into implementing a flexible way of handling panels wired up in any pattern.
To save on cabling I wired up a matrix in a funny pattern and was thinking of changing their order in software. The matrix is made of 2 rows of 8 panels, 32x16pixels.
This would be the logical order in software.
The wiring pattern which minimizes the number of custom cables, favouring the short one that come with a panel, looks like this. (i opt against c-stacking, im keen on all leds facing the same way)
Seems like a arbitrary panel order feature should be not too hard to implement, and that
loadMatrixBuffers in CalcImpl would be the place. But after taking a closer look it seems like it mostly
deals with Y coordinates and that the X coordinate is dealt with in
fillRefreshRows in LayerImpl.
At first I thought of just doing a XY lookup table, but that dosent work for text rendered by SmartMatrix. Then I thought of doing some memcpy because my brain keeps lumping the data of a panel into one chunk, and not thinking about the rows being the chunks. But there is a pixel per pixel copy operation, which makes me think this feature should not be too hard.
Would a feature where people can specify the order of the panels be needed? Or am I barking up the wrong tree and should just suck it up and have half my p10 matrices upside down?
I am happy to keep digging on this but could use some advice.