Animator for 8x8 matrix
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Quaddam
- Posts: 52
- Joined: Fri Nov 11, 2016 1:49 pm
Animator for 8x8 matrix
Just wondering if anyone knew of a convenient visual animator like this on http://g-mu.github.io/8x8-Animator/ for circuit python?
- mikeysklar
- Posts: 14182
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Animator for 8x8 matrix
There are a two other matrix utilities kind of like the 8x8 animator you linked to. Thanks for that btw, I had not seen that one.
# NLED AllPixMatrix
https://www.nledshop.com/nledallpixmatrix/
https://github.com/NLED/allpixmatrix
# LED Matrix Control
https://github.com/TylerTimoJ/LMCS2
Neither are specific to CircuitPython, but you might be able to use them to make advanced patterns and convert it to work with our animation libraries.
https://circuitpython.readthedocs.io/pr ... en/latest/
# NLED AllPixMatrix
https://www.nledshop.com/nledallpixmatrix/
https://github.com/NLED/allpixmatrix
# LED Matrix Control
https://github.com/TylerTimoJ/LMCS2
Neither are specific to CircuitPython, but you might be able to use them to make advanced patterns and convert it to work with our animation libraries.
https://circuitpython.readthedocs.io/pr ... en/latest/
- Quaddam
- Posts: 52
- Joined: Fri Nov 11, 2016 1:49 pm
Re: Animator for 8x8 matrix
Great thanks for the info, those are amazing tools. I was following the space invader pendant tutorial https://learn.adafruit.com/trinket-slas ... ython-code and I was thinking there must be an easier way to convert the animation code into something that could be used in circuit python rather than manually placing it in
so for exmaple in that space invaders pendant tutorial, this:
the simple animator I linked to gives me back this:
converting that is painful, with all the commas, and I am teaching grade 8's in September using a trinket and 8x8 matrix. It would make the class so much more interesting if they could use a tool to create the animations then place it into their code in Mu.
so for exmaple in that space invaders pendant tutorial, this:
Code: Select all
animation = [
[[0, 0, 0, 1, 1, 0, 0, 0], [0, 0, 1, 1, 1, 1, 0, 0],
[0, 1, 1, 1, 1, 1, 1, 0], [1, 1, 0, 1, 1, 0, 1, 1],
[1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 1, 0, 0, 1, 0, 0],
[0, 1, 0, 1, 1, 0, 1, 0], [1, 0, 1, 0, 0, 1, 0, 1]],
Code: Select all
const uint8_t PROGMEM anim[] = {
// Frame 0
B00011000,
B00111100,
B01111110,
B11011011,
B11111111,
B00100100,
B01011010,
B10100101,
25,
};
- mikeysklar
- Posts: 14182
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Animator for 8x8 matrix
I had ported the space invader code from Arduino to CircuitPython a while back. I think I wrote a quick shell script to speed up the parsing as I had been doing some other guides that had the same kind of formatting requirements.
Glad you are goingn to be using these with your students. They will be fun.
Glad you are goingn to be using these with your students. They will be fun.
Please be positive and constructive with your questions and comments.