forked from Bodmer/TFT_eSPI
Merge branch 'master' of https://github.com/Bodmer/TFT_eSPI
This commit is contained in:
@@ -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);
|
||||
|
@@ -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:
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user