Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Oct 5, 2024
1 parent 1a21159 commit 6b6afec
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/Arduino_GFX_HelloWorld/Arduino_GFX_HelloWorld.ino
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ void setup()
{
Serial.begin(115200);

delay(3000);

Serial.println("The sketch is only compatible with T-Display-AMOLED 1.91 inches, other sizes are not supported");

/**
* * The difference between the touch and non-touch versions is that the display
* * power supply of the touch version is controlled by IO38
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ void serialOut(const char *item, int32_t v, uint32_t d, bool clear);

void setup()
{
Serial.begin(115200);

delay(3000);

Serial.println("The sketch is only compatible with T-Display-AMOLED 1.91 inches, other sizes are not supported");


/**
* * The difference between the touch and non-touch versions is that the display
* * power supply of the touch version is controlled by IO38
Expand Down
5 changes: 5 additions & 0 deletions examples/CameraShield/CameraShield.ino
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ void setup()
Serial.println("There is a problem with the device!~"); delay(1000);
}
}

Serial.println("The sketch is only compatible with T-Display-AMOLED 1.91 inches, other sizes are not supported");

amoled.setRotation(1);

amoled.pushColors(0, 240, 240, 296, (uint16_t *)gImage_title);
}

Expand Down

0 comments on commit 6b6afec

Please sign in to comment.