Step 6Animation Design
#define FRAMECNT 117
specifies how many frames are contained in your animation.
A frame is just a full screen of data. The default animation that I put in it contains 117 frames.
You can specify frames by just typing them in one by one. For instance, a capital 'Z' could look like:
{ B00011111,
B00000010,
B00000100,
B00001000,
B00011111}
The bottom 5 bits of each byte correspond to the pixels of each row. Any bit which is set to 1 is lit, and 0 is off. The top 3 bits are ignored. This manual process can get rather cumbersome if you want to make complex animations
Ian was kind enough to share the code for his Internet Graffiti Wall . (Thanks, Ian!) I hacked it up to generate code for frames.h. To create your own animations, simply load daftpunkanimationbuilder.html into any java-enabled web browser. Follow the instructions on the screen to create your own animation. When you're satisfied with it, click the Generate button, and copy the code from the text box, and paste it into frames.h, replacing its entire contents.
If you want to save your animation for editing later, check native fmt before clicking Generate, and then copy and paste the contents of the text box into a text file. You can later load your saved animation back into the animation builder by pasting it into the Restore from sequence code text box, and then clicking Add before current frame.
Please send me any cool animations which you are particularly proud of, and I'll add them to this Instructable for others to download.
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|



















































