#include <TFT_eSPI.h>
#include <SPI.h> // this is needed for display
// The display also uses hardware SPI, plus #9 & #10
#define TFT_CS 15
#define TFT_DC 2
#define TFT_MOSI 23
#define TFT_SCLK 18
TFT_eSPI tft = TFT_eSPI(); // Invoke custom library with default width and height
#include "test_png.h" // Image is stored here in an 8 bit array
#include "ladybug.h"
#include "Resideo.h"
//image render
#include "image.h"
#define MAX_IMAGE_WIDTH 240 // Adjust for your images
int16_t xpos = 0;
int16_t ypos = 0;
void setup(void) {
Serial.begin (9600);
Serial.print ("ST7789 TFT Bitmap Test");
tft.begin (); // initialize a ST7789 chip
tft.setSwapBytes (true); // swap the byte order for pushImage() - corrects endianness
tft.setRotation(1);
tft.fillScreen (TFT_BLACK);
}
void loop() {
tft.setRotation(0);
int x;
int y;
// tft.fillScreen (TFT_BLACK);
tft.pushImage (0,0,25,25,image_data_25x25x16);
//x = x+5;
//y = y+5;
// delay(5000);
}