# White screen no matter what i do

**URL:** <https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342>\
**Category:** Displays\
**Created:** [July 4, 2024, 12:58pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342 "2024-07-04T12:58:58Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![gortyy](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gortyy](https://forum.arduino.cc/u/gortyy)\
**Post date:** [July 4, 2024, 12:58pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/1 "2024-07-04T12:58:58Z")

</div>

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

 ![448732204_1150699162683740_3370265523529746035_n](https://europe1.discourse-cdn.com/arduino/original/4X/6/f/0/6f01e0ee6f99a9f544d8c3f4076c348509af77ba.jpeg)  
 ![449154153_1004136201203850_4704208239693500585_n](https://europe1.discourse-cdn.com/arduino/original/4X/e/2/5/e2589a446a22f66495e22aa2fa370f324a14220e.jpeg)

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 ☹

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

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [July 4, 2024, 1:27pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/2 "2024-07-04T13:27:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gortyy](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gortyy](https://forum.arduino.cc/u/gortyy)\
**Post date:** [July 4, 2024, 1:33pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/3 "2024-07-04T13:33:29Z")

</div>

here you go @xfpd

 ![449323370_819081470315222_2624065226046250999_n](https://europe1.discourse-cdn.com/arduino/original/4X/e/1/0/e109a87968d64040c4500993f3f40e033ed7eb1c.jpeg)  
 ![448919018_491597569918974_2830936600017509597_n](https://europe1.discourse-cdn.com/arduino/original/4X/a/8/b/a8b825f79b70c3a802ccae0a47be621e98ec1050.jpeg)  
 ![448915060_1918069455321509_4180566498897228631_n](https://europe1.discourse-cdn.com/arduino/original/4X/0/4/c/04cde0ab7cc4eeff1ef856bee132eaeb3a69f342.jpeg)  
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

---

<div class="post-metadata">

**Author:** ![gortyy](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gortyy](https://forum.arduino.cc/u/gortyy)\
**Post date:** [July 4, 2024, 1:38pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/4 "2024-07-04T13:38:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![SurferTim](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surfertim/32/1072341_2.png) [@SurferTim](https://forum.arduino.cc/u/SurferTim)\
**Post date:** [July 4, 2024, 1:54pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/5 "2024-07-04T13:54:33Z")

</div>

Did you install this library?  
MCUFRIEND\_kbv  
If so, go to  
IDE -\> File -\> Examples -\> MCUFRIEND\_kbv  
Try the GLUE\_Demo\_320x240

---

<div class="post-metadata">

**Author:** ![gortyy](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gortyy](https://forum.arduino.cc/u/gortyy)\
**Post date:** [July 4, 2024, 2:00pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/6 "2024-07-04T14:00:11Z")

</div>

hey surferTim , well big white screen like usual ☹

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [July 4, 2024, 5:28pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/8 "2024-07-04T17:28:24Z")

</div>

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

 ![pins](https://europe1.discourse-cdn.com/arduino/original/4X/3/0/c/30cde242869e881382fbc00dd2cb979cb6c4e233.jpeg)

---

<div class="post-metadata">

**Author:** ![gortyy](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gortyy](https://forum.arduino.cc/u/gortyy)\
**Post date:** [July 4, 2024, 5:40pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/9 "2024-07-04T17:40:41Z")

</div>

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

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/9/7/a/97ac168d4ae78724cbcaff06d18135080c193092.png)  
in the graphics test sketch but in library i find this  
 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/6/0/1/601485c40caef81ba6ef9b0d63dbb65f5e3eccc6.png)  
 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/7/6/d/76d77eb30ed16406c4bc7739c93a1a275f64eaaa.png)

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [July 4, 2024, 5:48pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/10 "2024-07-04T17:48:14Z")

</div>

Did you find "A7"?

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

Maybe the information on this link will help...

> **[Ultimate Beginner’s Guide to Run TFT LCD Displays by Arduino | Arduino](https://maker.pro/arduino/projects/ultimate-beginners-guide-to-run-tft-lcd-displays-by-arduino)**
>
> Here, you will learn how to use TFT LCDs by Arduino. From basic commands to professional designs and technics are all explained here.

---

<div class="post-metadata">

**Author:** ![gortyy](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gortyy](https://forum.arduino.cc/u/gortyy)\
**Post date:** [July 4, 2024, 5:58pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/11 "2024-07-04T17:58:07Z")

</div>

im following the guide u sent

---

<div class="post-metadata">

**Author:** ![gortyy](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gortyy](https://forum.arduino.cc/u/gortyy)\
**Post date:** [July 4, 2024, 6:06pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/12 "2024-07-04T18:06:39Z")

</div>

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 ?

```arduino
#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);

}

```

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [July 4, 2024, 6:23pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/13 "2024-07-04T18:23:44Z")

</div>

> [@gortyy](#):
>
> is it broken ?

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

---

<div class="post-metadata">

**Author:** ![gortyy](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gortyy](https://forum.arduino.cc/u/gortyy)\
**Post date:** [July 4, 2024, 7:24pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/14 "2024-07-04T19:24:46Z")

</div>

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](https://forum.arduino.cc/uploads/short-url/n3h8XrsC6FsNJHDvlroq3NUApHC.zip) (3,1 Mo) along with a little code i use to run it

```arduino
#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

---

<div class="post-metadata">

**Author:** ![gortyy](https://avatars.discourse-cdn.com/v4/letter/g/ee7513/32.png) [@gortyy](https://forum.arduino.cc/u/gortyy)\
**Post date:** [July 4, 2024, 7:26pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/15 "2024-07-04T19:26:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![xfpd](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/xfpd/32/1120236_2.png) [@xfpd](https://forum.arduino.cc/u/xfpd)\
**Post date:** [July 4, 2024, 7:34pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/16 "2024-07-04T19:34:14Z")

</div>

> [@gortyy](#):
>
> advise me some screens that are up to date

I do not know.

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

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 31, 2024, 7:34pm UTC](https://forum.arduino.cc/t/white-screen-no-matter-what-i-do/1278342/17 "2024-12-31T19:34:56Z")

</div>

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