I’m trying to use theElegoo TFT 2.8 Display with Arduino MKR1000.
I have connected both in this way:
Pin VCC TFT CON1 3V3
Pin GND TFT Con1 GND
Pin 7 => TFT LCD_CS (Chip Select pin)
Pin 6 => TFT LCD_RS (Data/Command pin)
Pin 5 => TFT LCD_RST (Reset pin)
Pin 8 => TFT SD_DI (MOSI pin)
Pin 9 => TFT SD_SCK (SCK pin)
Pin 10 => TFT SD_DO (MISO pin)
And I run the following code:
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
// Define the pins and Connections.
// Pin VCC TFT CON1 3V3
//Pin GND TFT Con1 GND
#define TFT_CS 7 // Chip Select pin TFT LCD_CS
#define TFT_DC 6 // Data/Command pin TFT LCD_RS
#define TFT_RST 5 // Reset pin TFT LCD_RST
#define TFT_MOSI 8 // MOSI pin TFT SD_DI
#define TFT_SCK 9 // SCK pin TFT SD_SCK
#define TFT_MISO 10 // MISO pin TFT SD_DO
// Constructor with all pins specified
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCK, TFT_RST, TFT_MISO);
void setup() {
tft.begin();
tft.setRotation(1);
tft.fillScreen(ILI9341_BLACK);
tft.setCursor(10, 10);
tft.setTextSize(3);
tft.setTextColor(ILI9341_WHITE);
tft.println("It works!");
Serial.begin(115200);
Serial.println(F("TFT LCD test"));
Serial.println(F("Elegoo 2.8\" TFT Screen"));
}
void loop() {
}
But I got only a white screen and nothing displayed.
Somebody can Help me?
