Update Touch_calibrate.ino

This commit is contained in:
Bodmer 2021-03-15 13:20:25 +00:00 committed by GitHub
parent cd025dbc79
commit 107b2dd4ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -19,7 +19,8 @@ void setup() {
// Initialise the TFT screen // Initialise the TFT screen
tft.init(); tft.init();
// Set the rotation before we calibrate // Set the rotation to the orientation you wish to use in your project before calibration
// (the touch coordinates returned then correspond to that rotation only)
tft.setRotation(1); tft.setRotation(1);
// Calibrate the touch screen and retrieve the scaling factors // Calibrate the touch screen and retrieve the scaling factors