White screen no matter what i do

Hello everybody , i got my self a tft screen a year ago or so , i remember making it work once with like 2 weeks of youtube videos but lately i wanted to use it again for a project and somehow no matter what i do i cant get it to work other than displaying a white screen , i tried a code from someone that uses no libreray to see if it was dead or not and his code made it display lines so its not dead . here is the tft i got


also this is the outcome of adafruit TFT LCD graphics test TFT LCD test Using Adafruit 2.8" TFT Breakout Board Pinout TFT size is 240x320 Unknown LCD driver chip: 0 If using the Adafruit 2.8" TFT Arduino shield, the line: #define USE_ADAFRUIT_SHIELD_PINOUT should appear in the library header (Adafruit_TFT.h). If using the breakout board, it should NOT be #defined! Also if using the breakout, double-check that all wiring matches the tutorial.

the output of LCD_ID_redref.ino `Read Registers on MCUFRIEND UNO shield
controllers either read as single 16-bit
e.g. the ID is at readReg(0)
or as a sequence of 8-bit values
in special locations (first is dummy)

reg(0x0000) 00 00 ID: ILI9320, ILI9325, ILI9335, ...
reg(0x0004) 00 00 00 00 Manufacturer ID
reg(0x0009) 00 00 61 00 00 Status Register
reg(0x000A) 00 08 Get Power Mode
reg(0x000C) 00 06 Get Pixel Format
reg(0x0061) 00 00 RDID1 HX8347-G
reg(0x0062) 00 00 RDID2 HX8347-G
reg(0x0063) 00 00 RDID3 HX8347-G
reg(0x0064) 00 00 RDID1 HX8347-A
reg(0x0065) 00 00 RDID2 HX8347-A
reg(0x0066) 00 00 RDID3 HX8347-A
`
i tried countless libraries , and countless videos the only thing i can see is that in my past code it used to call tft.begin(0x9341); but dsnt work anymore , also had ot reinstall arduino ide so reinstalled all the libraries with new versions maybe it could be that but nothing i can be sure of neither debunk by my self so pls help me im rly getting frustrated and about to give up on it :frowning:

ps: also im using it with an arduino uno that works fine cuz i tested it with leds and other things it seems to perfectly respond to everything

Show your wiring with a drawing and a picture. Also get a better picture of the two chips on the reverse side.

here you go @xfpd




cant do better for the chips but its writen : sum74hc2451 and D1804A0PJ1 on the U3 and U2 and on the U1 one its AMS1117 and 3.3NXN21

btw only the spfd5408 lib seems to give this Found ILI9341 LCD driver but still dsnt show anything . only white screen

Did you install this library?
MCUFRIEND_kbv
If so, go to
IDE -> File -> Examples -> MCUFRIEND_kbv
Try the GLUE_Demo_320x240

hey surferTim , well big white screen like usual :frowning:

Look in the library (libraries) that you are using to identify the pin signals are correct.

excuse me , i searched in where u said all i can find is these


in the graphics test sketch but in library i find this

Did you find "A7"?

DC is the same as RS (and also Address Select / A0)

Maybe the information on this link will help...

im following the guide u sent

how to know if the screen is dead ? with this code i had like 1/4 of the screen black for one sketch run then it went back full white , is it broken ?

#include "Adafruit_GFX.h"
#include "MCUFRIEND_kbv.h"
#include "TouchScreen.h" // only when you want to use touch screen 

#include "Fonts/FreeSans9pt7b.h"    // when you want other fonts
#include "Fonts/FreeSans12pt7b.h" // when you want other fonts
#include "Fonts/FreeSerif12pt7b.h" // when you want other fonts
#include "FreeDefaultFonts.h" // when you want other fonts 
#include "SPI.h"  // using sdcard for display bitmap image
#include "SD.h"

#define BLACK 0x0000

//(int CS=A3, int RS=A2, int WR=A1, int RD=A0, int RST=A4)
MCUFRIEND_kbv tft(A3, A2, A1, A0, A4);
void setup() {

uint16_t ID = tft.readID();
tft.begin(ID);
uint16_t wid=tft.width(); //int16_t width(void);
uint16_t hei=tft.height(); //int16_t height(void);
tft.fillScreen(BLACK);

}

void loop() {
  tft.fillScreen(BLACK);

}

If another TFT that works, "broken" is up to you to determine.

oky so basicly after a turn into the arduino discord , a super friendly guy helped me i had some kind of a version issue where it only worked with the old Arduino IDE the 1.8.2 and the old libraries that god thnx i kept in a backup zipfolder when i worked on it the first time cuz i knew i was gonna be a pain in the *** to make it work again someday later . so here im sharing with all of u the libraries i had
libraries.zip (3,1 Mo) along with a little code i use to run it

#include <Adafruit_GFX.h>     // Core graphics library
#include <Adafruit_TFTLCD.h>  // Hardware-specific library
#include <TouchScreen.h>

#define YP A1  // must be an analog pin, use "An" notation!
#define XM A2  // must be an analog pin, use "An" notation!
#define YM 7   // can be a digital pin
#define XP 6   // can be a digital pin

#define TS_MINX 150
#define TS_MINY 120
#define TS_MAXX 920
#define TS_MAXY 940

TouchScreen ts = TouchScreen(XP, YP, XM, YM, 300);

#define LCD_CS A3  // Chip Select goes to Analog 3
#define LCD_CD A2  // Command/Data goes to Analog 2
#define LCD_WR A1  // LCD Write goes to Analog 1
#define LCD_RD A0  // LCD Read goes to Analog 0

#define LCD_RESET A4  // Can alternately just connect to Arduino's reset pin

// Assign human-readable names to some common 16-bit color values:
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF

Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);  //Declaring the tft lcd
int i = 0;
bool used = false;

void homescreen() {
  if (i < 1) {
    tft.fillScreen(BLACK);
    delay(70);
    tft.fillScreen(RED);
    delay(70);
    tft.fillScreen(BLUE);
    delay(70);
    tft.fillScreen(YELLOW);
    delay(70);
    tft.fillScreen(BLACK);
    delay(70);


    tft.fillScreen(BLACK);
    tft.setCursor(10, 20);  //Position of the cursor from where do you want to start writing
    tft.setTextColor(RED);
    tft.setTextSize(3);  //Text color and size (1-5)
    tft.println("I");


    tft.setCursor(120, 100);  //Position of the cursor from where do you want to start writing
    tft.setTextColor(GREEN);
    tft.setTextSize(3);  //Text color and size (1-5)
    tft.println("MADE");


    tft.setCursor(200, 200);  //Position of the cursor from where do you want to start writing
    tft.setTextColor(BLUE);
    tft.setTextSize(3);  //Text color and size (1-5)
    tft.println("THIS");
    delay(2000);
    i++;
  }

  tft.fillScreen(BLACK);
  tft.setCursor(50, 20);  //Position of the cursor from where do you want to start writing
  tft.setTextColor(WHITE);
  tft.setTextSize(3);  //Text color and size (1-5)
  tft.println("LUXUARY");

  tft.setCursor(185, 20);
  tft.setTextColor(WHITE, BLUE);
  tft.setTextSize(3);
  tft.println("Travel");

  tft.drawFastHLine(1, 60, 400, RED);
  tft.fillRoundRect(1, 7, 40, 50, 30, RED);

  tft.fillRoundRect(40, 80, 100, 50, 5, RED);
  tft.setCursor(47, 97);
  tft.setTextColor(WHITE);
  tft.setTextSize(2);
  tft.println("Analyse");

  tft.fillRoundRect(190, 80, 100, 50, 5, RED);
  tft.setCursor(217, 97);
  tft.setTextColor(WHITE);
  tft.setTextSize(2);
  tft.println("Sign");

  tft.fillRoundRect(40, 160, 100, 50, 5, RED);
  tft.setCursor(57, 175);
  tft.setTextColor(WHITE);
  tft.setTextSize(2);
  tft.println("Admin");

  tft.fillRoundRect(190, 160, 100, 50, 5, RED);
  tft.setCursor(222, 175);
  tft.setTextColor(WHITE);
  tft.setTextSize(2);
  tft.println("PDF");

  tft.setCursor(10, 23);
  tft.setTextColor(WHITE);
  tft.setTextSize(2);
  tft.println("LT");
}


void setup() {

  Serial.begin(9600);
  tft.reset();        //Reseting the shield
  tft.begin(0x9341);  //Starting the shield
  tft.setRotation(1);
  homescreen();
  


  // put your setup code here, to run once:
}

#define MINPRESSURE 10
#define MAXPRESSURE 1000

void loop() {
}

hope it helps somebody someday <3

to sum it up , use the libraries i gave in a zip file instead of all the others and use the Arduino ide 1.8.19 to run it

besides that , can you pls advise me some screens that are up to date and that dont require such a mess to run ? i would like to get some other tft screens but not ready to go over all of this again . neither when buying it neither in the future pls

I do not know.

Some suggest finding the library you want before finding the device that uses the library.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.