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

View File

@@ -19,7 +19,8 @@ void setup() {
// Initialise the TFT screen
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);
// Calibrate the touch screen and retrieve the scaling factors