TFT Shield function

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
jrd210
 
Posts: 4
Joined: Tue Mar 15, 2011 6:03 am

TFT Shield function

Post by jrd210 »

Hi, just purchased the TFT shield- connected to a Duemilanove and test programs for arduino board are Ok but the shield only lights up, registers none of the test programs, they perform compile OK and upload OK and I altered the define line as follows in the .h program as suggested
// Graphics library by ladyada/adafruit with init code

from Rossum
// MIT license

#include <WProgram.h>


// comment or uncomment the next line for special

pinout!
#define USE_ADAFRUIT_SHIELD_PINOUT



// register names from Peter Barrett's Microtouch

code

#define TFTLCD_START_OSC 0x00

#define USE_ADAFRUIT_SHIELD_PINOUT



#define TFTLCD_DRIV_OUT_CTRL 0x01
#define

Have I loaded this incorrectly?? All other files seem to be in correct folders.

User avatar
bboyes
 
Posts: 9
Joined: Sun Jul 10, 2011 6:24 pm

Re: TFT Shield function

Post by bboyes »

uncomment this line in TFTLCD.h as it says in the web tutorial, so that it reads like this:

// comment or uncomment the next line for special pinout!
#define USE_ADAFRUIT_SHIELD_PINOUT

BTW: where is the explanation of what this does and when/why to use it?

Also the library names don't work in Arduino22 as they are. You need to eliminate the dashes so the folder name is something like this:
adafruitTFTLCDLibrary3090da8
Restart Arduino after extracting the libraries into C:\arduino-0022\libraries or wherever your Arduino install is.

Hope that helps!

I got the demos working with a Uno with no trouble.

Hope that helps.

Bruce

jrd210
 
Posts: 4
Joined: Tue Mar 15, 2011 6:03 am

Re: TFT Shield function

Post by jrd210 »

Thx, will give it a try, I', guessing shield pinout changed with newer boards?? JD

jrd210
 
Posts: 4
Joined: Tue Mar 15, 2011 6:03 am

Re: TFT Shield function

Post by jrd210 »

Many thx, got all working except touch screen demo where it states on compiling "'TFTLCD' does not name a type" obviously my library loading is wrong, just not sure where.

jrd210
 
Posts: 4
Joined: Tue Mar 15, 2011 6:03 am

Re: TFT Shield function

Post by jrd210 »

Everything working great now, last problem making the alterations in Notepad instead of a decent word processor so it did not work. then a CAREFUL red of the download tutorial and bingo, amazing what works when you read the manuals and install correctly. Great little TFT. Thx Adafruit. :D

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”