Permalink
Browse files

adjusted examples to check for HX type

  • Loading branch information...
1 parent 5cb1161 commit 2938be3d5a8892d3741d54c096df0e4f274e3352 @ladyada ladyada committed Jul 3, 2012
@@ -49,6 +49,8 @@ void setup(void) {
Serial.println("Found ILI9325");
} else if (identifier == 0x9328) {
Serial.println("Found ILI9328");
+ } else if (identifier == 0x7575) {
+ Serial.println("Found HX8347G");
} else {
Serial.print("Unknown driver chip ");
Serial.println(identifier, HEX);
@@ -54,6 +54,8 @@ void setup()
Serial.println("Found ILI9325");
} else if (identifier == 0x9328) {
Serial.println("Found ILI9328");
+ } else if (identifier == 0x7575) {
+ Serial.println("Found HX8347G");
} else {
Serial.print("Unknown driver chip ");
Serial.println(identifier, HEX);
@@ -56,13 +56,15 @@ void setup()
Serial.println("Found ILI9325");
} else if (identifier == 0x9328) {
Serial.println("Found ILI9328");
+ } else if (identifier == 0x7575) {
+ Serial.println("Found HX8347G");
} else {
Serial.print("Unknown driver chip ");
Serial.println(identifier, HEX);
while (1);
}
- tft.begin();
+ tft.begin(identifier);
// the image is a landscape, so get into landscape mode
tft.setRotation(1);
@@ -67,6 +67,8 @@ void setup(void) {
Serial.println("Found ILI9325");
} else if (identifier == 0x9328) {
Serial.println("Found ILI9328");
+ } else if (identifier == 0x7575) {
+ Serial.println("Found HX8347G");
} else {
Serial.print("Unknown driver chip ");
Serial.println(identifier, HEX);
@@ -55,6 +55,8 @@ void setup(void) {
Serial.println("Found ILI9325");
} else if (identifier == 0x9328) {
Serial.println("Found ILI9328");
+ } else if (identifier == 0x7575) {
+ Serial.println("Found HX8347G");
} else {
Serial.print("Unknown driver chip ");
Serial.println(identifier, HEX);

0 comments on commit 2938be3

Please sign in to comment.