Arduino Forum

Products => Arduino Due => Topic started by: titous on Jul 13, 2013, 03:32 pm

Title: SPI TFT library for due
Post by: titous on Jul 13, 2013, 03:32 pm
hey everyone!

I bought two SPI TFT LCDs from China off ebay; one with the ST7735R driver (http://www.ebay.com/itm/1-8-Serial-128X160-SPI-TFT-LCD-Display-SD-Socket-For-Arduino-UNO-Mega-DUE-R3-/300931229260?pt=LH_DefaultDomain_0&hash=item4610e6264c), the other with the ILI9341 driver (http://www.ebay.com/itm/2-2-inch-2-2-SPI-TFT-LCD-Display-module-240x320-ILI9341-51-AVR-STM32-ARM-PIC-/200939222521)

I'm wondering if anyone has had any luck with the SPI versions of TFT LCDs on their DUE; it looks like plenty of people got the non-SPI versions working...  

I know Adafruit has a nice SPI TFT library (http://learn.adafruit.com/1-8-tft-display/downloads) for the ST7735, but it needs to be ported over to the DUE.

Also, seeed has a library that works with the ILI9341 (http://www.seeedstudio.com/wiki/2.8%27%27_TFT_Touch_Shield_V2.0), but it also needs to be ported over.  Actually, I was able to port it quite easily (changed port declarations) but it doesn't seem to be working on my LCD or perhaps I'm doing something wrong.

I also found an ATMEL software framework (http://asf.atmel.com/docs/3.5.1/common.components.display_controller.ili9341.example1.xmega_a3bu_xplained/html/ili9341_8c.html) for the ILI9341 but I can't tell what this is or if it'll work with the DUE, thoughts?

So, anyone have any luck with the SPI TFT LCDs?  Any pointers or libraries I should check out?  Thanks for the help!

EDIT: looks like someone ported over the adafruit library (https://github.com/robertkendrick/Due_ST7735); however, after hooking things up I'm still only getting a solid white screen.  I wonder if the ST7735R is that much different than the ST7735...
Title: Re: SPI TFT library for due
Post by: TheKitty on Jul 16, 2013, 05:59 pm
I haven't gone back to try to port the Adafruit displays, on to other projects.
Title: Re: SPI TFT library for due
Post by: Kurak on Jul 16, 2013, 06:38 pm
Kendricks ST7735 library works perfectly with the 7735 driver. Perhaps your wiring is incorrect, especially the reset wire? Then you should check out the handshake sequence of the new driver (refer to datasheet). They should be similar enough so that adding couple lines of code should get them to talk to each other correctly. And ofc the data/command pin is very important, which is somewhat not noted in the quickstart guide.
Title: Re: SPI TFT library for due
Post by: milano_new on Jul 29, 2013, 07:48 am
Hi man
I have been trying to interface arduino due,have been able to do that using software spi but not able to do so using hardware spi. I have already checked other threads and have not been able to solve the problem. Could you please help me out?
Title: Re: SPI TFT library for due
Post by: -__- on Aug 02, 2013, 04:08 pm





Also, seeed has a library that works with the ILI9341 (http://www.seeedstudio.com/wiki/2.8%27%27_TFT_Touch_Shield_V2.0), but it also needs to be ported over.  Actually, I was able to port it quite easily (changed port declarations) but it doesn't seem to be working on my LCD or perhaps I'm doing something wrong.



FYI: I modified Seeed's libraries to enable text rotation with their V2.0 LCD shield.  I don't have a Due so you're all on your own.

Libraries and info here: http://forum.arduino.cc/index.php?topic=150900.msg1132783#msg1132783 (http://forum.arduino.cc/index.php?topic=150900.msg1132783#msg1132783)

Regards,
-__-