Due to server issues & outages with Endicia - There is no USPS / Postal service orders at this time - Read more.

1.8" TFT Shield
Moderators: adafruit_support_bill, adafruit

Re: 1.8" TFT Shield

by randrews on Sat Nov 17, 2012 12:47 am

I figured it out; I can run both graphicstest and graphicstest_highspeed on the shield now:

The difference was that shieldtest and graphicstest default to using different pins. At the top of the file, there is a set of #defines, like this:

Code: Select all | TOGGLE FULL SIZE
#define cs   6
#define dc   7
#define rst  8

Change these to match the corresponding lines in shieldtest; so cs ought to be 10, dc 8, and rst -1 (make sure you're looking at TFT_CS and not SD_CS in shieldtest). Then, to use highspeed graphics, below those are two different calls to Adafruit_ST7735(), one labeled "option 1" and one labeled "option 2". Comment out option 1 and use option 2, like this:

Code: Select all | TOGGLE FULL SIZE
// Option 1: use any pins but a little slower
//Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, mosi, sclk, rst);

// Option 2: must use the hardware SPI pins
Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, rst);

(I think this is the only difference between normal graphics mode and highspeed mode, and it seems like there's no reason not to do highspeed with the shield).

I did this and it worked perfectly! Really cool shield!
randrews
 
Posts: 7
Joined: Wed Nov 24, 2010 12:42 pm

Re: 1.8" TFT Shield

by craigs2 on Fri Jan 11, 2013 10:49 pm

I just got my new 1.8 TFT. I encountered the same issues noted in this thread. :oops:

Note that the default library referenced from the product page is still the old one. I had to find the one on this thread to make my shield work.

Like the comment above notes, after I switch the pin config to 10/8/-1, the graphics test worked like a charm.

I can't wait to build this into my project! :D
craigs2
 
Posts: 1
Joined: Wed Dec 26, 2012 12:54 pm

Re: 1.8" TFT Shield

by pjlaskey on Tue Feb 11, 2014 10:42 pm

I just received my ST7735 shield and I am experiencing the white screen problem as well. I checked pin=to pin continuity as well as pin to pad continuity after soldering on the header pins and everything appears normal. I have tried downloading fresh copies of all the libraries as well as trying the ST7735 library linked in the forum. The normal libraries allow me to compile the examples but they result in a white screen when downloaded (even after changing pin assignments to 10/8/-1 or 10/8/0). This applies to all examples in the Adafruit_ST7735 library. If I download Adafruit_7735 from the forum the examples fail to compile. Error messages (shieldtest for example)

Code: Select all | TOGGLE FULL SIZE
C:\Users\Peter\Documents\Arduino\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp: In constructor 'Adafruit_ST7735::Adafruit_ST7735(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)':
C:\Users\Peter\Documents\Arduino\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp:29: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX()'
C:\Users\Peter\Documents\Arduino\libraries\Adafruit_GFX/Adafruit_GFX.h:17: note: candidates are: Adafruit_GFX::Adafruit_GFX(int16_t, int16_t)
C:\Users\Peter\Documents\Arduino\libraries\Adafruit_GFX/Adafruit_GFX.h:13: note:                 Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
C:\Users\Peter\Documents\Arduino\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp: In constructor 'Adafruit_ST7735::Adafruit_ST7735(uint8_t, uint8_t, uint8_t)':
C:\Users\Peter\Documents\Arduino\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp:41: error: no matching function for call to 'Adafruit_GFX::Adafruit_GFX()'
C:\Users\Peter\Documents\Arduino\libraries\Adafruit_GFX/Adafruit_GFX.h:17: note: candidates are: Adafruit_GFX::Adafruit_GFX(int16_t, int16_t)
C:\Users\Peter\Documents\Arduino\libraries\Adafruit_GFX/Adafruit_GFX.h:13: note:                 Adafruit_GFX::Adafruit_GFX(const Adafruit_GFX&)
C:\Users\Peter\Documents\Arduino\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp: In member function 'void Adafruit_ST7735::commonInit(uint8_t*)':
C:\Users\Peter\Documents\Arduino\libraries\Adafruit_ST7735\Adafruit_ST7735.cpp:258: error: 'constructor' was not declared in this scope


I am using arduino ide 1.0.5-r2 on Windows 7 Ultimate 64 bit and a usb-connected arduino uno r3.

Time to return the shield?

Thanks,
Peter
pjlaskey
 
Posts: 4
Joined: Fri Jan 31, 2014 1:04 pm

Re: 1.8" TFT Shield

by adafruit_support_bill on Wed Feb 12, 2014 6:02 am

Post some photos of the front & back of the shield & we'll check the assembly.
User avatar
adafruit_support_bill
 
Posts: 29578
Joined: Sat Feb 07, 2009 9:11 am

Re: 1.8" TFT Shield

by pjlaskey on Wed Feb 12, 2014 12:29 pm

Here are some pics of my setup. Notice that my TFT had a BLUE tab which is not one of the options in the sketch. It is very obviously blue but I am assuming this is referred to as black (?). The third image shows pin alignment. Obviously the shield header pins are fully inserted into the Uno when in use.

I noticed that there is in fact continuity between the two Gnd pins on the shield. All other pins are electrically separate. I assumed that they were tied together intentionally but perhaps not?

Thank you for taking a look!

img_4390.jpg
img_4390.jpg (154.79 KiB) Viewed 114 times

img_4391.jpg
img_4391.jpg (160.98 KiB) Viewed 114 times

img_4395.jpg
img_4395.jpg (127.27 KiB) Viewed 114 times


-Peter
pjlaskey
 
Posts: 4
Joined: Fri Jan 31, 2014 1:04 pm

Re: 1.8" TFT Shield

by adafruit_support_bill on Wed Feb 12, 2014 1:02 pm

Notice that my TFT had a BLUE tab

Hmmm. That may be a new one. Our suppliers have surprised us before. Let me check with the factory.
User avatar
adafruit_support_bill
 
Posts: 29578
Joined: Sat Feb 07, 2009 9:11 am

Re: 1.8" TFT Shield

by pburgess on Wed Feb 12, 2014 1:17 pm

Blue tab is indeed a surprise.

I'd suggest trying each of the existing three options (black, red, green) and see if any are compatible. If not, I'll have someone at HQ do the same test on a blue-tabbed display; if it works for them, yours is likely defective and we'll replace it. If it doesn't work for them, then the library will need some work for this new batch of screens.
User avatar
pburgess
 
Posts: 2588
Joined: Sun Oct 26, 2008 1:29 am

Re: 1.8" TFT Shield

by adafruit on Wed Feb 12, 2014 1:39 pm

All our displays are tested with an Arduino, the current test is whatever is 'default' on the library so it should work just fine :)
User avatar
adafruit
 
Posts: 11680
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: 1.8" TFT Shield

by pjlaskey on Wed Feb 12, 2014 1:41 pm

OK so are you saying that my shield is defective?

-Peter
pjlaskey
 
Posts: 4
Joined: Fri Jan 31, 2014 1:04 pm

Re: 1.8" TFT Shield

by adafruit_support_bill on Thu Feb 13, 2014 8:08 am

Your solder looks fine. I don't see any problems there. Try the REDTAB and GREENTAB options as suggested by pburgess. If that does not work, contact support@adafruit.com with a link to this thread for a replacement.
User avatar
adafruit_support_bill
 
Posts: 29578
Joined: Sat Feb 07, 2009 9:11 am

Re: 1.8" TFT Shield

by pjlaskey on Thu Feb 13, 2014 11:37 am

Thank you, I will do that.

I traced out the circuits on the board and there are no shorts or opens between the pins and the other components where there shouldn't be. I did notice some gold solder spatter under the TFT screen near where the screen is connected. Some of this appears to be across the traces and may be causing the issue (?). Anyway, thank you for the excellent support.

-Peter
pjlaskey
 
Posts: 4
Joined: Fri Jan 31, 2014 1:04 pm