#include <SPI.h>
#include <SD.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_CS 10
#define TFT_RST 9
#define TFT_DC 8
#define TFT_MOSI 7
#define TFT_SCK 6
#define TFT_MISO 5
#define TFT_LED 3
#define SD_CS 3
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCK, TFT_RST, TFT_MISO);
void setup() {
/* Serial.begin(9600);
if (!SD.begin(SD_CS))
{
Serial.println("Falha ao Inicializar o cartão SD!");
//return;
} */
pinMode(TFT_LED, OUTPUT);
digitalWrite(TFT_LED, HIGH);
// put your setup code here, to run once:
tft.begin();
tft.setCursor(55, 105);
tft.fillScreen(ILI9341_WHITE);
tft.setTextColor(ILI9341_RED);
tft.setTextSize(2);
tft.println("Hello, TFT!");
}
void loop() {
// put your main code here, to run repeatedly:
}