1.8" TFT Shield

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Re: 1.8" TFT Shield

Postby randrews » 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
#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
// 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

Postby craigs2 » 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

Previous

Return to Arduino Shields from Adafruit

Who is online

Users browsing this forum: BLevy and 5 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]