Pages: 1 [2]   Go Down
Author Topic: Arduino 1.77" SPI TFT Blank White Screen Only  (Read 1038 times)
0 Members and 2 Guests are viewing this topic.
Venezuela
Offline Offline
God Member
*****
Karma: 16
Posts: 512
Ground, ground, always ground
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes. I wanted to discard a possible issue with your eleven or the SPI library. Thus, the problem could be with the TFT library or the LCD shield. Regarding both the 1.0.5 only works with the red tab that your LCD had (The plastic cover on the screen) and the 1.5.6   works with the green tab. DO you remember what tab your screen had? I'm about to sleep now but let's keep in touch. Night.

p
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My display has a green tab facing downwards. Hear from you later.

Thorium234
Logged

Venezuela
Offline Offline
God Member
*****
Karma: 16
Posts: 512
Ground, ground, always ground
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello Thorium234,
Green tag. Thank for the info. This meas that you have the new version of the LCD and that runs by default with the 1.5.X.

Given that the Arduino LCD TFT library is based on the Adafruit one, please, try the following test code (equivalent to my previous one) that I have prepared using the Adafruit library and let's see how it goes.
Notes:
-Use the Arduin IDE 1.5.6-r2.
-Use the last wiring I told you from: http://arduino.cc/en/Guide/TFTtoBoards#.UyWQNNyP4p0

Here the Adafruit test code:

Code:
#include <TFT.h>
#include <SPI.h>

#define sclk 13
#define mosi 11
#define cs   10
#define dc   9
#define rst  8

Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, mosi, sclk, rst);

void setup(void) {
 tft.initR(INITR_BLACKTAB);
}

void loop() {
  tft.fillScreen(ST7735_RED);
  delay(1000);
  tft.fillScreen(ST7735_GREEN);
  delay(1000);
  tft.fillScreen(ST7735_BLUE);
  delay(1000);
}

p

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Palliser, I checked my wiring to that in the link and my IDE version (1.5.6-r2 as required) and then uploaded the new test code. However, the display continues to taunt me with a blank white screen.

Thorium234
Logged

Venezuela
Offline Offline
God Member
*****
Karma: 16
Posts: 512
Ground, ground, always ground
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Let's try replacing the following line of code:

Quote
tft.initR(INITR_BLACKTAB);

with

Quote
tft.initG();

and also with

Quote
tft.initR(INITR_GREENTAB);

p
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I tried both, but still no luck. Do you think the display is not being initialised successfully when the sketch starts?

Thorium234
Logged

Venezuela
Offline Offline
God Member
*****
Karma: 16
Posts: 512
Ground, ground, always ground
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

It's hard to say but the TFT initialization is the key ingredient in the formula. Despite having experience working with TFTs with UNO, MEGA and DUE, I'm not a good connoisseur of the Arduino 1.77. In particular, the codes that I have provided to you run thoroughly with my Arduino UNO and Adafruit 1.8 TFT which are closest to yours. It could be anything what is causing your problem, from a broken wire to a corrupted IDE (without ruling out the possibility of a defective TFT). Right now the only thing I can think of is for you to contact support@arduino.com and depending on their answer, to contact your TFT's vendor for a replacement.

p       
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Okay. Thanks for the help, Palliser, I'll contact arduino support. At least now having tried many different approaches I can be more confidant it wasn't just my programming/electronics abilities that were causing the problem! Like you say, it could be defective in some manner instead.

Thanks again,

Thorium234
Logged

Oz
Offline Offline
God Member
*****
Karma: 4
Posts: 708
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm going to ask the obvious quetsion:

Are you sure you have the latest libraries?
Logged

Venezuela
Offline Offline
God Member
*****
Karma: 16
Posts: 512
Ground, ground, always ground
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

AFAIK, yes. The libraries (TFT, Adafruit_ST7735 and Adafruit_GFX) were used from IDE 1.5.6-r2 dated Feb.21, 2014. By the way, have you a 1.77 and UNO?

p
Logged

Pages: 1 [2]   Go Up
Jump to: