#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#include <SPI.h>
#include "frame1.h"
#include "frame2.h"
//#include "frame3.h"
//#include "frame4.h"
//#include "frame5.h"
///#include "frame6.h"
//#include "frame7.h"
#define TFT_CS 5
#define TFT_DC 2
#define TFT_RST 4
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
void setup() {
tft.begin();
tft.setRotation(1); // Landscape
}
void loop() {
tft.drawRGBBitmap(0, 0, frame1, 240, 230);
delay(200);
tft.drawRGBBitmap(0, 0, frame2, 240, 230);
delay(200);
}
/*|
tft.drawRGBBitmap(0, 0, frame3, 240, 230);
delay(200);tft.drawRGBBitmap(0, 0, frame4, 240, 230);
delay(200);
tft.drawRGBBitmap(0, 0, frame5, 240, 230);
delay(200);
tft.drawRGBBitmap(0, 0, frame6, 240, 230);
delay(200);
tft.drawRGBBitmap(0, 0, frame7, 240, 230);
delay(200);
}*/