Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get display working #6

Closed
FriedCircuits opened this issue Apr 14, 2015 · 1 comment
Closed

Unable to get display working #6

FriedCircuits opened this issue Apr 14, 2015 · 1 comment

Comments

@FriedCircuits
Copy link

Hi,

I spent a few hours yesterday trying to get this library to work wit a 2.2in ili9341 display. Same pinout as the docs page has. I used the graphictest sketch. I tried with both standard and alt pins with and without the audio shield. Triple checked connections which worked with another micro. Then I tried the original Adafruit library and it worked fine with the same code.

Only changes from standard graphictest sketch are below, each in their respective places.

define TFT_DC 20

define TFT_CS 21

Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, 8);

SPI.setMOSI(7);
SPI.setSCK(14);

I haven't looked at the differences in the libraries to see if I can spot it yet.

Thanks.

@PaulStoffregen
Copy link
Owner

The documentation has been updated.

http://www.pjrc.com/store/display_ili9341.html
http://www.pjrc.com/store/display_ili9341_touch.html

ILI9341_t3 requires using the 6-input constructor for alternate pinouts.

// For optimized ILI9341_t3 library
#define TFT_DC      20
#define TFT_CS      21
#define TFT_RST    255  // 255 = unused, connect to 3.3V
#define TFT_MOSI     7
#define TFT_SCLK    14
#define TFT_MISO    12
ILI9341_t3 tft = ILI9341_t3(TFT_CS, TFT_DC, TFT_RST, TFT_MOSI, TFT_SCLK, TFT_MISO);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants