ILI9325 TFTLCD

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

ILI9325 TFTLCD

Postby EX-RIDER » Sat Apr 02, 2011 7:21 pm

I am completely new to all of this but I am having a blast. I am using the UNO along with the TFTLCD files provided by Adafruit and company and it is working really well. My question is in regards to the Data pins. Am I stuck with using pins 2-9 or can I shift them to 3-10? I am using a hall effect sensor and I really need pin 2 for its interrupt capability or I think I do anyways. Any suggestions?
EX-RIDER
 
Posts: 3
Joined: Fri Mar 18, 2011 11:04 am

Re: ILI9325 TFTLCD

Postby adafruit_support_bill » Sun Apr 03, 2011 4:54 am

You should be able to re-map these to different pins.
User avatar
adafruit_support_bill
 
Posts: 16072
Joined: Sat Feb 07, 2009 9:11 am

Re: ILI9325 TFTLCD

Postby EX-RIDER » Sun Apr 03, 2011 5:51 am

Your right and thank you for responding...thats what I was hoping to do but I unfortunately don't understand the TFTLCD.h file completely. Any suggestions? Hopefully a point in the right direction can get me going. Thank you!
EX-RIDER
 
Posts: 3
Joined: Fri Mar 18, 2011 11:04 am

Re: ILI9325 TFTLCD

Postby adafruit_support_bill » Sun Apr 03, 2011 6:30 am

The pin definitions are in the TFTLCD.CPP file. Note that the pins are defined in terms of the native ATMEGA ports, not the more familiar Arduino pin numbers.
http://www.arduino.cc/en/Reference/PortManipulation
User avatar
adafruit_support_bill
 
Posts: 16072
Joined: Sat Feb 07, 2009 9:11 am

Re: ILI9325 TFTLCD

Postby EX-RIDER » Sun Apr 03, 2011 6:34 am

AHHH... That makes more sense. Thank you for your help. I think I got it now.
EX-RIDER
 
Posts: 3
Joined: Fri Mar 18, 2011 11:04 am

Re: ILI9325 TFTLCD

Postby adafruit » Tue Apr 05, 2011 12:10 pm

look for this
Code: Select all
// for the breakout board tutorial, two ports are used :/
#define DATAPORT1 PORTD
#define DATAPIN1 PIND
#define DATADDR1 DDRD

#define DATAPORT2 PORTB
#define DATAPIN2 PINB
#define DATADDR2 DDRB

#define DATA1_MASK 0xFC // top 6 bits
#define DATA2_MASK 0x03 // bottom 2 bits


you will want to change the MASK
remember that both MASKs together MUST cover all the pins from 0-7 so basically "DATA1_MASK | DATA2_MASK" must be 0xFF
User avatar
adafruit
 
Posts: 10491
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc


Return to Other Arduino products from Adafruit

Who is online

Users browsing this forum: mibignistinly and 7 guests

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


New Products [108]

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[31]


 
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[34]
LCDs & Displays[48]
Components & Parts[70]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[111]
 
Wireless[14]
Cables[62]
 
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]