#include <Adafruit_ILI9341.h>
// Initialize the display
Adafruit_ILI9341 display = Adafruit_ILI9341(0x5A, 0x3C);
// Load the animation
const unsigned char animation[] PROGMEM = {
// ...
};
void setup() {
// Initialize the display
display.begin();
// Load the animation
display.drawBitmap(0, 0, animation, sizeof(animation));
// Set the animation speed
display.setAnimationSpeed(100);
}
void loop() {
// Update the animation
display.updateAnimation();
}
}