sumotoy / TFT_S6D02A1

A fast library for drive Samsung S6D02A1 TFT displays with Arduino/Teensy
2 stars 0 forks source link

TFT_S6D02A1

A hyper-fast driver for Samsung S6D02A1 drived TFT (128x160) in SPI for Teensy3,DUE and Arduinos.

Version 1.0b4

Added early experimental support for SPI transaction!
The support it's basic and not optimized but let you use this lib without broke the other devices that use SPI transaction. Just use:

init(); //for use at it was, no SPI transaction

init(24000000); //use with SPI transaction, speed 24Mhz


I found some TFT on chinese Ebay that was supposed be compatible with ST7735 and of course NOT! I spent a couple of days to discover that was actually a Samsung S6D02A1 chip that it's not compatible with ST7735 and actually has one more pin for display blanking. I modified Adafruit_ST7735 library so now this display works amazing fast with 32bit micros and pretty well with 8 bit ones. Those displays can work at 5V or 3V3 but if you work with Arduino UNO or 5V level processor you need to put a 1K resistor between any display/cpu connection! If you don't need to deal with blanking pin, connect it to VCC.
You will need the standard Adafruit_GFX library as well.

Note that many examples uses Arm_Math for Teensy3 so cannot be used with different micros!
On Ebay you can find here (I'm not affiliated in any way)
http://www.ebay.com/itm/370987651121
http://www.ebay.com/itm/141341180758
image
image

This one looks pretty similar, cost less but pinout are different:
http://www.ebay.com/itm/351097603564

CONNECTION (only TFT, not SD card):
1-RST ---> Reset Pin
2-CE ---> SPI SS pin (check witch micro pin you can use!)
3-D/C ---> Data/Command (check witch micro pin you can use!)
4-DIN ---> Mosi
5-CLK ---> SCK
6-UCC ---> 5V or 3V3 (check TFT jumper)
7-BL ---> Blanking (if you will not use, connect to VCC!!!!)
8-GND ---> Ground (of course)

Note for Teensy3.x
CS & DC can use pins 2, 6, 9, 10, 15, 20, 21, 22, 23
but certain pairs must NOT be used: 2+10, 6+9, 20+23, 21+22