Noise on TFT ILI9341 2.8" (solved)

I recently bought this display, wanting to use it for a project. But for some odd reason, whenever i try to use it, 1/4 of the screen is static/noise. Im using an Arduino Mega 2560.
I genuinely dont know whats wrong, Ive seen another forum post on this, but it was for an ESP32 from what i remember. Can anyone help me?
Oh, and also, im using the Adafruit_ILI9341.h graphicstest example code

Sorry if this is a bad forum, this is my first one

Looks like Hight and Width is swaped.

Post your code in code tags.

This is a common user problem, easily searched for in past forum topics.

You don't have an ILI9341.

You most likely have an ST7789.

Orientation (H & W) is backwards.

Kinda worked, when i switched from tft.setRotation(1) to (3)
No more static, but this part freezed (the one that was noise)

Nvm, yeah, the display was, in fact, a ST7789.
Did the code and now it works!! Thx so much :3

ur a legendddd!!!

Glad it works now, but don't be surprised if it doesn't work long. That's a display that expects 3.3V signals (I'm not talking about power, I'm talking about MOSI, SCK, etc.) but is being fed 5V signals from your Mega. You'll likely get away with it for awhile, but sooner or later it'll bite you.

Alright, im getting an esp32 soon tho, so yeah