add HX8357 check

This commit is contained in:
ladyada 2014-08-15 17:52:54 -04:00
parent 6c41da9750
commit 40266af7ab

View file

@ -53,6 +53,8 @@ void setup(void) {
Serial.println(F("Using Adafruit 2.8\" TFT Breakout Board Pinout"));
#endif
Serial.print("TFT size is "); Serial.print(tft.width()); Serial.print("x"); Serial.println(tft.height());
tft.reset();
uint16_t identifier = tft.readID();
@ -65,6 +67,8 @@ 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);
@ -379,4 +383,3 @@ unsigned long testFilledRoundRects() {
return micros() - start;
}