RA8875 5'' Tousch screen LCD 800x480

Hi this is my first time doing a project on Touch Screen LCD pls give me some advises if you can! Thank you

I’m using a RA8875 driver together with a 5’’ 800x480 LCD and I’ve followed the steps from

I’m trying to test if the LCD works by playing around with the examples however, after I upload the program, nothing shows up on my screen. The LCD would only have a white flash once when i plug it into a power supply. Does anyone know what is wrong? I’m using ardunio mega 2560.

This is the example I’ve used and i’ve changed the display to 800x480

#include <SPI.h>
#include “Adafruit_GFX.h”
#include “Adafruit_RA8875.h”

// Library only supports hardware SPI at this time
// Connect SCLK to UNO Digital #13 (Hardware SPI clock)
// Connect MISO to UNO Digital #12 (Hardware SPI MISO)
// Connect MOSI to UNO Digital #11 (Hardware SPI MOSI)
#define RA8875_INT 3
#define RA8875_CS 6
#define RA8875_RESET 2

Adafruit_RA8875 tft = Adafruit_RA8875(RA8875_CS, RA8875_RESET);
uint16_t tx, ty;

void setup()
{
Serial.begin(9600);
Serial.println(“RA8875 start”);

/* Initialize the display using ‘RA8875_480x80’, ‘RA8875_480x128’, ‘RA8875_480x272’ or ‘RA8875_800x480’ */
if (!tft.begin(RA8875_800x480)) {
Serial.println(“RA8875 Not Found!”);
while (1);
}

tft.displayOn(true);
tft.GPIOX(true); // Enable TFT - display enable tied to GPIOX
tft.PWM1config(true, RA8875_PWM_CLK_DIV1024); // PWM output for backlight
tft.PWM1out(255);
tft.fillScreen(RA8875_BLACK);

/* Switch to text mode */
tft.textMode();
tft.cursorBlink(32);

/* Set a solid for + bg color … */

/* … or a fore color plus a transparent background */

/* Set the cursor location (in pixels) */
tft.textSetCursor(10, 10);

/* Render some text! */
char string[15] = "Hello, World! ";
tft.textTransparent(RA8875_WHITE);
tft.textWrite(string);
tft.textColor(RA8875_WHITE, RA8875_RED);
tft.textWrite(string);
tft.textTransparent(RA8875_CYAN);
tft.textWrite(string);
tft.textTransparent(RA8875_GREEN);
tft.textWrite(string);
tft.textColor(RA8875_YELLOW, RA8875_CYAN);
tft.textWrite(string);
tft.textColor(RA8875_BLACK, RA8875_MAGENTA);
tft.textWrite(string);

/* Change the cursor location and color … /
tft.textSetCursor(100, 100);
tft.textTransparent(RA8875_RED);
/
If necessary, enlarge the font /
tft.textEnlarge(1);
/
… and render some more text! */
tft.textWrite(string);
tft.textSetCursor(100, 150);
tft.textEnlarge(2);
tft.textWrite(string);
}

void loop()
{
}

Do you have it wired correctly? The SPI pins are not 11-13 on a Mega, they are 50-52.