I recently bought a 16x16 matrix screen with which I was going to attempt to make my own game of pong on. I had it all planned out, but when the screen arrived there was a problem which I did not think of. The WS2812B’s or the LED’s (whatever you want to call them) were arranged in a order which does not work with coordinate system that I had set up. In the image that I have attached you can see that above LED 15 is LED 16. The way I thought the LED’s would be set out is that LED 16 would be above LED 0 and continue from there, and that if LED 0 was on and you wanted to move the pixel up a row the number 16 would be added to the coordinate variable and the LED would move up one row. As you can tell if I used this method with the way these LED’s are set out, the pixel that is on would jump up a row and to the end.
using maths is there a way to invert the second row to make 31 = 16, 16 = 31, 30 = 17, 17 = 30 and so on. Also the image only shows the first two rows, There are a total of 16 rows.