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
mikedb
June 14, 2026, 1:30pm
2
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.
Hello everyone,
I'm currently working on a project using the ILI9341 TFT display with an ESP32, and I've encountered an issue where part of the screen appears to be glitched. This is my first time using the ILI9341.
Here’s a screenshot of the issue and board :
[IMG_20250116_145215_490]
[IMG_20250116_152003_694]
To test if all parts of the screen are functioning correctly, I wrote the following script:
#include <Adafruit_GFX.h> // Include Adafruit GFX library
#include <Adafruit_ILI9341.…
Hello, everyone. I am working with a 240x320 TFT display and have a problem where part of the screen doesn't work. Here is the code I am running and a picture of the screen. I am using esp32-s3
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_DC 2
#define TFT_CS 39
#define TFT_MOSI 35
#define TFT_CLK 36
#define TFT_RST 4
#define TFT_MISO 37
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
void setup() {
Seria…
Hello, everyone. I am working with a 240x320 TFT display and have a problem where part of the screen doesn't work. Here is the code I am running and a picture of the screen. I am using esp32-s3
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define TFT_DC 2
#define TFT_CS 39
#define TFT_MOSI 35
#define TFT_CLK 36
#define TFT_RST 4
#define TFT_MISO 37
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_MOSI, TFT_CLK, TFT_RST, TFT_MISO);
void setup() {
Seria…
xfpd
June 14, 2026, 3:37pm
4
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