add HX8357 check
This commit is contained in:
parent
6c41da9750
commit
40266af7ab
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue