question on a learn article and tftlcd library

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
knoxvilles_Joker
 
Posts: 183
Joined: Wed Mar 01, 2017 9:15 pm

question on a learn article and tftlcd library

Post by knoxvilles_Joker »

https://learn.adafruit.com/adafruit-3-5 ... g-and-test

Is there a way to force the data pins regardless of arduino model?

Pulling from the github repository: https://github.com/adafruit/TFTLCD-Library

The LCD has these pins that are configurable:
#define LCD_CS A3 // Chip Select goes to Analog 3
#define LCD_CD A2 // Command/Data goes to Analog 2
#define LCD_WR A1 // LCD Write goes to Analog 1
#define LCD_RD A0 // LCD Read goes to Analog 0
#define LCD_RESET A4 // Can alternately just connect to Arduino's reset pin


This is noted:
// When using the BREAKOUT BOARD only, use these 8 data lines to the LCD:
// For the Arduino Uno, Duemilanove, Diecimila, etc.:
// D0 connects to digital pin 8 (Notice these are
// D1 connects to digital pin 9 NOT in order!)
// D2 connects to digital pin 2
// D3 connects to digital pin 3
// D4 connects to digital pin 4
// D5 connects to digital pin 5
// D6 connects to digital pin 6
// D7 connects to digital pin 7
// For the Arduino Mega, use digital pins 22 through 29
// (on the 2-row header at the end of the board).

These digital pins are not configurable from what I can find.

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: question on a learn article and tftlcd library

Post by Franklin97355 »

I'm not sure I understand your question but if you set the defines you should be able to use the same code if you use a breadboard and connect the pins as you wrote the code.

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

Return to “Arduino”