3.95" TFTLCD from mcufriend with ILI9341/ ILI9488 on Arduino DUE in 8bit mode

Hello All,
This is my first post.

I have ARDUINO MEGA 2560 and ARDUINO DUE boards.

I am using TFT LCD from
http://www.aliexpress.com/item/Free-shipping-LCD-Display-Module-TFT-3-95-inch-TFT-LCD-screen-for-Arduino-UNO-R3/1995671772.html

This works fine on MEGA 2560 with adarfruit tftlcd and gfx library.
On going through the forum and reading all the posts I thought UTFT library is the best alternative to Adarfruit library for interfacing with Arduino DUE. The UTFT library for this chip particularly 9341 has a sub directory with S4P and S5P, which means these are for 4P and 5P serial interfaced displays.

Has anybody tried using 8bit parallel interface on arduino DUE SAM3x8E?

The UTFT library it seems does not have RD pin of the TFT connected.
My connections of the shield to DUE are:
LCD_RD A1.6 / A0
LCD_WR A.24 / A1
LCD_RS A.23 / A2
LCD_CS A.22 / A3
LCD_RST A.6 / A4

LCD_D0 C.22 / 8
LCD_D1 C.21 / 9
LCD_D2 B.25 / 2
LCD_D3 C.28 / 3
LCD_D4 C.26 / 4
LCD_D5 C.25 / 5
LCD_D6 C.24 / 6
LCD_D7 C.23 / 7
SD_SS C.29/10
SD_DI D.7/11
SD_DO D.8/12
SD_SCK B.27/13

Thank you for all in advance for any help to solve my problem.

Hi. Read here, OLED SSD1306 I2C e STM32F103C8T6 - Arduino for STM32 . The truth is we are talking about stm32 but it can help.

Thanks diger67 for the reply.
I will have a look. It may be ray of hope from a hopeless situation.

Hi All,
I got the TFT working.. I made changes in the pin_magic_DUE.h and it works fine.
Now it is time to get the touch screen working.

pin_magic_DUE.h (12.6 KB)

Hi All,
After adding the touch screen library from adarfruit the dipslay works fine and I am able to read the co-ordinates properly.

The Problem:
The setup function works and display works.
In the loop function Display does not refreshe after the analogread function. The PinMode(YP,OUTPUT) and PinMode(XM,OUTPUT) does not seem to work on DUE.

How do I make this working in multiplexing mode.

I am stuck up with this. Please help.

Hi All,
I am using 3.95" TFT +TouchScreen from mcufriend

I am using A0 A1 A2 A3 A4 for LCD control Signals and A1 and A2

LCD_RD A0
LCD_WR A1
LCD_RS A2
LCD_CS A3
LCD_RST A4

LCD_D0 8
LCD_D1 9
LCD_D2 2
LCD_D3 3
LCD_D4 4
LCD_D5 5
LCD_D6 6
LCD_D7 7

Touch Screen Y+ A1
Touch Screen X- A2

Touch Screen X+ 7
Touch Screen Y- 6

I am using the adarfruit graphics and touch screen library.

The display works only once in tftpaint demo. The touch co-ordinates are not read and the Display Screen is not updated after calling TSPoint p = ts.getPoint();.

Any function to write to LCD does not work.

I am stuck up with this for a while.

Please help...