Hello,
I am using this TFT LCD. I connected my Uno to the LCD as shown in the image on the Adafruit site, and I used this example to test my display.
My code always stops after ts.begin() fails; it seems like the STMPE610 controller fails to initialize. I noticed they defined a CS pin on pin 8 for this controller, but I do not see an additional CS pin on my module, and I do not see pin 8 on the Arduino connected to anything in the image on the Adafruit site.
I removed the STMPE610 code and ran the simple program below to turn the LCD blue, but the LCD still would not respond.
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_ILI9341.h>
#define TFT_CS 10
#define TFT_DC 9
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup(void)
{
Serial.begin(9600);
tft.begin();
tft.setRotation(1);
}
void loop()
{
tft.fillScreen(ILI9341_BLUE);
}