From 107b2dd4ed22aa34acb56ea28c1971a1d16ec59e Mon Sep 17 00:00:00 2001 From: Bodmer Date: Mon, 15 Mar 2021 13:20:25 +0000 Subject: [PATCH 1/3] Update Touch_calibrate.ino --- examples/Generic/Touch_calibrate/Touch_calibrate.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/Generic/Touch_calibrate/Touch_calibrate.ino b/examples/Generic/Touch_calibrate/Touch_calibrate.ino index 4f10110..45fa705 100644 --- a/examples/Generic/Touch_calibrate/Touch_calibrate.ino +++ b/examples/Generic/Touch_calibrate/Touch_calibrate.ino @@ -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 From 3c6ea1f594e5de3e7c2a610a679d3a6eb2d7853d Mon Sep 17 00:00:00 2001 From: Bodmer Date: Wed, 17 Mar 2021 23:07:26 +0000 Subject: [PATCH 2/3] See #1081 --- TFT_Drivers/ST7789_Init.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TFT_Drivers/ST7789_Init.h b/TFT_Drivers/ST7789_Init.h index f2683e4..4855f08 100644 --- a/TFT_Drivers/ST7789_Init.h +++ b/TFT_Drivers/ST7789_Init.h @@ -21,6 +21,10 @@ writedata(0x0A); writedata(0x82); + writecommand(ST7789_RAMCTRL); + writedata(0x00); + writedata(0xE0); // 5 to 6 bit conversion: r0 = r5, b0 = b5 + writecommand(ST7789_COLMOD); writedata(0x55); delay(10); From e6df924f1096b550ea75dcc688a636f98ef4b441 Mon Sep 17 00:00:00 2001 From: Bodmer Date: Wed, 17 Mar 2021 23:36:48 +0000 Subject: [PATCH 3/3] Typo --- User_Setup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/User_Setup.h b/User_Setup.h index d973c52..371f564 100644 --- a/User_Setup.h +++ b/User_Setup.h @@ -85,7 +85,7 @@ // For ST7735 ONLY, define the type of display, originally this was based on the // colour of the tab on the screen protector film but this is not always true, so try // out the different options below if the screen does not display graphics correctly, -// e.g. colours wrong, mirror images, or tray pixels at the edges. +// e.g. colours wrong, mirror images, or stray pixels at the edges. // Comment out ALL BUT ONE of these options for a ST7735 display driver, save this // this User_Setup file, then rebuild and upload the sketch to the board again: