Display problem on 2.8 TFT LCD Shield Touchscrenn and microSD card

Hi, here is my code:

#include "Adafruit_GFX.h"
#include "Adafruit_HX8357.h"
#define MAGENTA 0xF81F
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8

Adafruit_HX8357 tft = Adafruit_HX8357(TFT_CS, TFT_DC, TFT_RST);

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println("HX8357D Test!");

tft.begin();

// read diagnostics (optional but can help debug problems)
uint8_t x = tft.readcommand8(HX8357_RDPOWMODE);
Serial.print("Display Power Mode: 0x"); Serial.println(x, HEX);
x = tft.readcommand8(HX8357_RDMADCTL);
Serial.print("MADCTL Mode: 0x"); Serial.println(x, HEX);
x = tft.readcommand8(HX8357_RDCOLMOD);
Serial.print("Pixel Format: 0x"); Serial.println(x, HEX);
x = tft.readcommand8(HX8357_RDDIM);
Serial.print("Image Format: 0x"); Serial.println(x, HEX);
x = tft.readcommand8(HX8357_RDDSDR);
Serial.print("Self Diagnostic: 0x"); Serial.println(x, HEX);

Serial.println(F("Benchmark Time (microseconds)"));

tft.setRotation(-2);

Serial.print(F("Text "));
Serial.println(testText());
delay(500);

Serial.println(F("Done!"));

}

void loop() {
}

unsigned long testFillScreen() {
unsigned long start = micros();
tft.fillScreen(HX8357_RED);
tft.fillScreen(HX8357_GREEN);
tft.fillScreen(HX8357_BLUE);
tft.fillScreen(HX8357_WHITE);
return micros() - start;
}
unsigned long testText() {
tft.fillScreen(HX8357_BLACK);
unsigned long start = micros();
tft.setCursor(56, 56);
//tft.println(1234.56);
tft.setTextColor(MAGENTA);
tft.setTextSize(2);
tft.print("Hello");
}

And here's what he shows me :

Please help me to write "Hello"

Did you inspect the Serial Terminal?
Copy-Paste from the Serial Terminal to your message (into a code window)

The photo shows "Hello" on the screen but mirrored.
Of course we have no idea what setRotation(-2) will do. You normally use 0, 1, 2, 3

We have no idea what screen you actually have.
Either post a link to your purchase. e.g. Ebay sale.
Or post a photo of the pcb side of your display.

David.

setRotation(-2) = setRotation(2)

Thanks for the photo of the pcb.

Your program expects a 320x480 Himax HX8357 controller

You have bought a 240x320 screen with Ilitek ILI9341 controller.

Install the Adafruit_ILI9341 and Adafruit_GFX library(s) via the IDE Library Manager.

Run the example sketches that come with the ILI9431 library.

If you have any problems, quote which example and explain your problem.

I do not recognise a "Red" Arduino. The display should work out of the box with Uno.
If you have Mega or Leonardo, you must cut some empty bridges and make other solder bridges.
The instructions are printed on the pcb.

David.

Thank you for the help

Resistive or Capacitive touch screen?

-jim lee