The sainsmart.com ST7735 LCD, product link:http://www.amazon.com/gp/product/B008HWTVQ2/ref=oh_details_o06_s01_i01?ie=UTF8&psc=1
has the following pins:
GND : Power Ground
VCC : 5V power input
CS : Chipselect for LCD,
SDA : LCD Data for SPI
SCL : SCLK for TFT Clock
RS/DC : Command/Data Selection
RES : LCD controller reset, active low
CS (SD-CS) : Chipselect for TF Card,
SCLK (SD-Clock): SPI Clock
MOSI (SD-DI) : SPI Master out Slave in
MISO (SD-DO) : SPI Master in Slave out
I'm trying to get it to work on an Arduino Due. Not sure if it is currently possible because of drivers. If you were able to get this combination to work can you post the Arduino Due pins and a link to the drivers you used?
Greetings, Stan! I just got mine working. It seems that the Sainsmart labels their pins a little differently from the Adafruit. I was stumped, until I came across Kamal Mostafa's website (http://www.whence.com/rpi/
). There, he presents a table of which pins on the Adafruit correspond to which pins on the Sainsmart. Specifically:
Ignore, completely, the 4 pins over in the SD-Card section. Some of those pins have the same labels as what is referred to in the TFT docs you'll find, but these are not the pins you want (unless you want to be accessing the SD card and not the TFT display).
The trouble seems to come from the fact that the Sainsmart labels their MOSI and Clock lines the way they're labeled with i2C (as "SCL" and "SDA"). Anyway, here's how I wired mine:
|Aref or 5V||VCC|
Although older examples let you assign all 5 of these pins however you want, the current examples in the Arduino software just specify CS, RS, and RES, while the SCL and SDA lines are just assumed to be plugged into your high-speed SPI lines. On my Uno, those are digital pins 13 and 11. On a Due, they're supposedly on pins "3" and "4", respectively, of the little 6-pin ICSP header
Don't use the TFT18.ZIP that Sainsmart has on their website. It only works with an older version of the Arduino software. Instead, just use the built-in examples you'll find at File->Examples->TFT->Arduino
With the above wiring, I was able to run the built-in examples without any modification. I'm currently working on getting Sainsmart's demo sketches (like graphicstest_highspeed) to work. If you want them, let me know, but the built-in Arduino ones should work just fine for you.