Help Wiring Adafruit 1.8" TFT LCD and 1284p standalone project

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
uno23
 
Posts: 5
Joined: Sat Nov 10, 2012 3:28 pm

Help Wiring Adafruit 1.8" TFT LCD and 1284p standalone project

Post by uno23 »

Hi all, I try to use 1.8" 18-bit color TFT LCD display
http://adafruit.com/products/358

with my breadboard 1284p project

So I wired

Code: Select all

Gnd          --> GND
VCC          --> 5v
RESET      --> D0
D/C          --> D3
CARDCS    --> NONE
TFTCS      --> D4
MOSI        --> D5
SCK         --> D7
MISO        --> NONE
LITE        --> VCC

this is the pin mapping for 1284p

Code: Select all

// ATMEL ATMEGA1284P
//
//                   +---\/---+
//           (D 0) PB0  1|        |40  PA0 (AI 0 / D24)
//           (D 1) PB1  2|        |39  PA1 (AI 1 / D25)
//      INT2 (D 2) PB2  3|        |38  PA2 (AI 2 / D26)
//       PWM (D 3) PB3  4|        |37  PA3 (AI 3 / D27)
//    PWM/SS (D 4) PB4  5|        |36  PA4 (AI 4 / D28)
//      MOSI (D 5) PB5  6|        |35  PA5 (AI 5 / D29)
//  PWM/MISO (D 6) PB6  7|        |34  PA6 (AI 6 / D30)
//   PWM/SCK (D 7) PB7  8|        |33  PA7 (AI 7 / D31)
//                 RST  9|        |32  AREF
//                 VCC 10|        |31  GND 
//                 GND 11|        |30  AVCC
//               XTAL2 12|        |29  PC7 (D 23)
//               XTAL1 13|        |28  PC6 (D 22)
//      RX0 (D 8)  PD0 14|        |27  PC5 (D 21) TDI
//      TX0 (D 9)  PD1 15|        |26  PC4 (D 20) TDO
// RX1/INT0 (D 10) PD2 16|        |25  PC3 (D 19) TMS
// TX1/INT1 (D 11) PD3 17|        |24  PC2 (D 18) TCK
//      PWM (D 12) PD4 18|        |23  PC1 (D 17) SDA
//      PWM (D 13) PD5 19|        |22  PC0 (D 16) SCL
//      PWM (D 14) PD6 20|        |21  PD7 (D 15) PWM
//                   +--------+
//

and i use adafruit labrary with this code...

Code: Select all

#define cs   4
#define dc   3
#define rst   0

#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include <SPI.h>

Adafruit_ST7735 tft = Adafruit_ST7735(cs,dc,rst);

and I try with the example graphictest_highspeed


But unfortunately the display is white totally illuminated.
upload code is via a programmer. And the sketch is uploaded correctly. I modified the code to add in the loop a blinking LED and it works. Any idea? Where am I doing wrong? thanks

best regards

Marco

uno23
 
Posts: 5
Joined: Sat Nov 10, 2012 3:28 pm

Re: Help Wiring Adafruit 1.8" TFT LCD and 1284p standalone project

Post by uno23 »

This evening I tried to connect the display with arduino one following the tutorial step by step ..... but the result is the same the display appears all white :cry: :cry:

http://learn.adafruit.com/1-8-tft-displ ... he-display

Could it be broken? Mistake or something fundamental? But I followed the tutorial like a monkey :lol:

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Help Wiring Adafruit 1.8" TFT LCD and 1284p standalone project

Post by adafruit_support_rick »

Please post detailed photos of your wiring. On the Uno, are you running one of the standard adafruit example sketches?

uno23
 
Posts: 5
Joined: Sat Nov 10, 2012 3:28 pm

Re: Help Wiring Adafruit 1.8" TFT LCD and 1284p standalone project

Post by uno23 »

Many thanks for you reply.
Yes I use the example in the library graphictest:

Code: Select all

// You can use any (4 or) 5 pins
#define sclk 4
#define mosi 5
#define cs   6
#define dc   7
#define rst  8  // you can also connect this to the Arduino reset

#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library
#include <SPI.h>

// Option 1: use any pins but a little slower
Adafruit_ST7735 tft = Adafruit_ST7735(cs, dc, mosi, sclk, rst);
I attach in the photo how i have wired the dispaly with lcd.
Attachments
ArduinoUnoWiring2.JPG
ArduinoUnoWiring2.JPG (135.58 KiB) Viewed 984 times
ArduinoUnoWiring2.JPG
ArduinoUnoWiring2.JPG (135.58 KiB) Viewed 984 times

User avatar
adafruit_support_bill
 
Posts: 88136
Joined: Sat Feb 07, 2009 10:11 am

Re: Help Wiring Adafruit 1.8" TFT LCD and 1284p standalone project

Post by adafruit_support_bill »

We've had some problems with that library. Get the latest version (posted yesterday) and give it another try.

uno23
 
Posts: 5
Joined: Sat Nov 10, 2012 3:28 pm

Re: Help Wiring Adafruit 1.8" TFT LCD and 1284p standalone project [Solved]

Post by uno23 »

Great! It's work! I have tried with uno and also with 1284p both configuration work very fine!

thanks all!

best regards

Marco

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

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”