A first port of the excellent Adafruit ST7735 library Also supports the S6D02A1 controller (Use 1k resistors in series on all logic lines).

Fork of Adafruit_ST7735 by Andrew Lindsay

Modified version of the ST7735 library to support the Samsung S6D02A1 controller. These 1.8" 128x160 displays can be purchased dirt cheap (under $5 on eBay or aliexpress with free shipping).

You must also import the Adafruit_GFX library, as this library is dependent upon it.

I've used up to 20 MHz SPI with no problem. That is hardcoded in the library, and is currently set to 4 MHz (unmodified from the original library).

The library is exactly the same for S6D02A1 and ST7735 except for the initialization routines.

Use 1k resistors in series on all 5 logic lines as 3V3 is required (display is not damaged by 5V logic, but it will not work)

Constructor pin names that match the S6D02A1: Adafruit_ST7735(DIN, NC, CLK, CD, D/C, RST) ;

Source of initialization codes for the S6D02A1: https://github.com/zigwart/Adafruit_QDTech/blob/master/Adafruit_QDTech.cpp

History

Add support for S6D02A1 controller.; Works fine with 20 MHz SPI.; Use 1k resistors in series on all logic lines. default tip

2014-11-19, by daneast [Wed, 19 Nov 2014 05:10:57 +0000] rev 3

Add support for S6D02A1 controller.; Works fine with 20 MHz SPI.; Use 1k resistors in series on all logic lines.


reduced SPI speed to 4MHz

2014-03-03, by SomeRandomBloke [Mon, 03 Mar 2014 22:13:53 +0000] rev 2

reduced SPI speed to 4MHz


Updates to GFX constructor

2013-08-15, by SomeRandomBloke [Thu, 15 Aug 2013 13:27:10 +0000] rev 1

Updates to GFX constructor


new commit;

2013-03-26, by SomeRandomBloke [Tue, 26 Mar 2013 23:09:06 +0000] rev 0

new commit;