I'm new to arduino, but a little familiar with coding in general.
I picked up the following Adafruit TFT LCD:
I've played with the example code to do some line drawings, as well as to pull a bitmap from an attached SD card. I also figured out how to do some basic animation with the following pseudocode:
Draw 30x30 image
Move image 10 - pixels to the right
Back fill the space with a black 30x30 square
Loop until the 30x30 is where I want it to be.
It works. I don't know if that's the most elegant way to do it, but it does get the job done. However, if I had something other than a black background, I don't know how to back fill that. So that is question #1.
Question #2 has to do with bitmap animation. I figured out how to pull a similar 30x30 image, and I can move it around the screen, similar to the line drawing animation. However, redrawing the animation currently involves accessing the SD card at every movement, which seems slow and incorrect. I think the correct way to do it would be to pull the bitmap into an object of some kind, but I don't know how to do this.
Can anybody provide me with some ideas or code snippets to direct me?
Thanks so much!