I’ve upgraded my matrix map generation from BiblioPixel2 to BiblioPixel3. I’ve captured the modifications here.
Fix imports
WAS:
from bibliopixel.led import mapGen, MultiMapBuilder, MatrixRotation
NOW:
from bibliopixel import gen_matrix as mapGen
from bibliopixel.layout.multimap import MultiMapBuilder
from bibliopixel.layout import Rotation as MatrixRotation
Generate the map for an ULTiM8x8
WAS:
mapGen(8, 8, serpentine=True,
rotation=MatrixRotation.ROTATE_90,
vert_flip=False)
NOW:
The vert_flip argument to gen_matrix is now called y_flip so
mapGen(8, 8, serpentine=True,
rotation=MatrixRotation.ROTATE_90,
y_flip=False)