Arduino Uno: Cannot control ILI9341 LCD using Adafruit_ILI9341 library

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);

}

If you have a well lit, in focus picture of your wiring that clearly shows how all the connections are made that you could share, that might help. However, a jumble of Dupont cables that no one can follow is of no use whatsoever. Apologies for stating the obvious, but you'd be amazed at the dark, unfocused pictures showing a jumble of wires that go somewhere out of frame some folks produce.

Have you tried any of the samples in the library?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.