Just wanted to chime in to @spazzle’s question and @zranger1’s reply of April 4th with a trick I found recently…
You can retrieve the pixelmap for a Pixelblaze by pointing your web browser at:
http://{your-Pixelblaze-IP-address}/pixelmap.txt
which in the case of my BTF 16x16 matrix returns:
function (pixelCount) {
width = 16
var map = []
for (i = 0; i < pixelCount; i++) {
x = Math.floor(i / width)
y = i % width
y = x % 2 == 1 ? width - 1 - y : y //zigzag
map.push([x, y])
}
return map
}