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
This commit is contained in:
Calvin Hass 2019-06-12 07:14:52 -07:00 committed by GitHub
parent ab5e407e2e
commit 9a9654abc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -445,6 +445,9 @@ void TFT_eSPI::init(uint8_t tc)
/*************************************************************************************** /***************************************************************************************
** Function name: setRotation ** Function name: setRotation
** Description: rotate the screen orientation m = 0-3 or 4-7 for BMP drawing ** 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) void TFT_eSPI::setRotation(uint8_t m)
{ {