hey i bought a 2.4 TFT Touch lcd on ebay.. but i cant see any chip set on the tft shield... i searched in therent but i was unable to find one.. plz help
Install Adafruit-GFX and SWTFT-Shield libraries, use this sketch and open serial monitor, you'll see something like this:
TFT LCD test
LCD driver chip: 9325
Done!
#include <Adafruit_GFX.h> // Core graphics library
#include <SWTFT.h> // Hardware-specific library
SWTFT tft;
int pause = 1000;
void setup(void) {
Serial.begin(9600);
Serial.println(F("TFT LCD test"));
tft.reset();
uint16_t identifier = tft.readID();
Serial.print(F("LCD driver chip: "));
Serial.println(identifier, HEX);
tft.begin(identifier);
tft.fillScreen(BLACK);
Serial.println(F("Done!"));
}
void loop(void) {
tft.setRotation(0);
tft.fillScreen(BLACK);
tft.fillRect(0, 0, 100, 100, RED);
delay(pause);
tft.fillRoundRect(100, 100, 100, 200, 10, tft.color565(0, 255, 0));
delay(pause);
tft.fillTriangle(10, 10, 200, 200, 10, 200, tft.color565(0, 0, 255));
delay(pause);
tft.drawCircle(100, 100, 50, YELLOW);
delay(pause);
tft.drawLine(200, 0, 100, 100, WHITE);
delay(pause);
}