From 6c236e25faf8aebf575223a084a44b6afecf7d07 Mon Sep 17 00:00:00 2001 From: driverblock Date: Fri, 31 Oct 2014 13:39:28 -0400 Subject: [PATCH] Add HX8357 driver check --- examples/tftpaint/tftpaint.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/tftpaint/tftpaint.ino b/examples/tftpaint/tftpaint.ino index 0427794..0380b2c 100644 --- a/examples/tftpaint/tftpaint.ino +++ b/examples/tftpaint/tftpaint.ino @@ -99,9 +99,17 @@ void setup(void) { Serial.println(F("Found HX8347G LCD driver")); } else if(identifier == 0x9341) { Serial.println(F("Found ILI9341 LCD driver")); + } else if(identifier == 0x8357) { + Serial.println(F("Found HX8357D LCD driver")); } else { Serial.print(F("Unknown LCD driver chip: ")); Serial.println(identifier, HEX); + Serial.println(F("If using the Adafruit 2.8\" TFT Arduino shield, the line:")); + Serial.println(F(" #define USE_ADAFRUIT_SHIELD_PINOUT")); + Serial.println(F("should appear in the library header (Adafruit_TFT.h).")); + Serial.println(F("If using the breakout board, it should NOT be #defined!")); + Serial.println(F("Also if using the breakout, double-check that all wiring")); + Serial.println(F("matches the tutorial.")); return; }