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); diff --git a/User_Setup.h b/User_Setup.h index e0dfb75..ff9b58d 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: 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