From 286f81f96e5a917980cf585e4889e819ef17bae3 Mon Sep 17 00:00:00 2001 From: ladyada Date: Tue, 18 Mar 2014 14:35:33 -0400 Subject: [PATCH] TFTpaint for ili9341 fixed! --- examples/tftpaint/tftpaint.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/tftpaint/tftpaint.ino b/examples/tftpaint/tftpaint.ino index 493963e..0427794 100644 --- a/examples/tftpaint/tftpaint.ino +++ b/examples/tftpaint/tftpaint.ino @@ -97,6 +97,8 @@ void setup(void) { Serial.println(F("Found ILI9328 LCD driver")); } else if(identifier == 0x7575) { Serial.println(F("Found HX8347G LCD driver")); + } else if(identifier == 0x9341) { + Serial.println(F("Found ILI9341 LCD driver")); } else { Serial.print(F("Unknown LCD driver chip: ")); Serial.println(identifier, HEX); @@ -127,7 +129,7 @@ void setup(void) { void loop() { digitalWrite(13, HIGH); - Point p = ts.getPoint(); + TSPoint p = ts.getPoint(); digitalWrite(13, LOW); // if sharing pins, you'll need to fix the directions of the touchscreen pins