New way to generate MultiMapBuilder

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)

It wasn’t too difficult to track down the new names with find/grep. Just wanted to capture the upgrade steps.

No worries.

J

···

On Sun, Aug 6, 2017 at 10:48 AM, Tom Swirly tom@swirly.com wrote:

Ah, never mind. :smiley:

All is there, just moved around a bit. Sometimes one forgets one’s own code.

On Sun, Aug 6, 2017 at 4:41 PM, Tom Swirly tom@swirly.com wrote:

Urg, I hoped I had forwarded all those names but I guess not. :-/

Well, this is excellent to have out in public so the next person will know.

More, I realized that I made a terrible mistake in dev - see this issue, which I will rectify before it sees release.


/t

https://tom.ritchford.com

https://tom.swirly.com

On Sun, Aug 6, 2017 at 2:06 PM, Justin Shaw wyojustin@gmail.com wrote:

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)

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-labs-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/3cfb723d-c10b-4f45-8ade-4c6ed3d1edca%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

/t

https://tom.ritchford.com

https://tom.swirly.com

Justin