I’d try a dummy led array laid out normally (0,1,2,3,4 etc). Then copy the data to the actual LED array.