From 9a9654abc70adde3b83b1d8fd2fd08c9251437cb Mon Sep 17 00:00:00 2001 From: Calvin Hass Date: Wed, 12 Jun 2019 07:14:52 -0700 Subject: [PATCH] Add note regarding setRotation() & calibration - Minor change to comments only - Indicate that calibration must be updated if `setRotation()` is called with a new orientation - Reference: https://github.com/Bodmer/TFT_eSPI/issues/365 --- TFT_eSPI.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index ad27dcb..cd6af62 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -445,6 +445,9 @@ void TFT_eSPI::init(uint8_t tc) /*************************************************************************************** ** Function name: setRotation ** Description: rotate the screen orientation m = 0-3 or 4-7 for BMP drawing +** When using the integrated touch handler, note that calibration +** settings must be updated whenever the orientation is changed from +** the orientation used during calibration. ***************************************************************************************/ void TFT_eSPI::setRotation(uint8_t m) {