I’m taking a break from interactive frame streaming to the light suit, to concentrate on getting it to work in public. I have written some macros to help with animation. In this situation, I would usually just save a long string as a frame buffer and feed it to the live driver(thats my end goal)….but because i have less than 2k to work with ill have to do everything with functions. Have a look if you like:
animationMacros.c
I made 2 functions(with a 3rd which is probably not going to work):
void verticalStripe(bool movetoRight, bool clearAfter, byte colours[3], short int startIndex, short int endIndex)
This renders a vertical fill line and animates it from left to right or right to left…. for example:
verticalStrope(true, false,{10,0,0}, 0,7)
Will fill from left to right the block of rows 0 to 7
verticalStrope(false, false,{10,0,0}, 0,7)
Will fill from right to left the block of rows 0 to 7
If you toggle clearAfter to true, it will render a line instead a fill
void horizontalStripe(bool movetoRight, bool clearAfter, byte colours[3], short int startIndex, short int endIndex)
Same as the vertical function, but does a horizontal line..I’m working on a few other macros…
There is a 3rd function that renders a box around a specified block of the suit…but i wrote that blind.