#include <TFT_eSPI.h>
#include <SPI.h> // this is needed for display
#include "Einstein.h"
// 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
//Display 320 x 240 pixels
TFT_eSPI tft = TFT_eSPI(); // Invoke custom library with default width and height
#define ILI9341_RED TFT_RED
#define ILI9341_YELLOW TFT_YELLOW
#define ILI9341_GREEN TFT_GREEN
#define ILI9341_CYAN TFT_CYAN
#define ILI9341_BLUE TFT_BLUE
#define ILI9341_MAGENTA TFT_MAGENTA
void setup(void) {
Serial.begin(115200);
Serial.println("INICIO:");
tft.begin();
tft.setRotation(1);
tft.setSwapBytes(true);
tft.pushImage(10,10,320,240,monroe);
}
void loop() {
}