Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Working libraries, libraries being ported and related hardware
User avatar
RogerClark
Posts: 5467
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby RogerClark » Tue Jan 31, 2017 10:12 pm

stevestrong wrote:There is a PR pending which contains this.
This is the function which makes the DMA almost obsolete, for 16 bit data at least.


@stevestrong

Sorry. I've been busy with work.

please remind me again if I don't get around to processing the PR by the end of the weekend

stevestrong
Posts: 734
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby stevestrong » Tue Jan 31, 2017 10:23 pm

Roger, i know you were busy, thats why i didnt push it.
But i will remind you now that you asked. :mrgreen:

User avatar
RogerClark
Posts: 5467
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby RogerClark » Tue Jan 31, 2017 10:27 pm

No worries.

palmerr
Posts: 5
Joined: Tue Jan 31, 2017 6:21 am

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby palmerr » Tue Jan 31, 2017 10:37 pm

Steve (sorry about the "Simon" in my last post), Roger and Victor,

Thanks for the rapid response.

The core of the issue (apart from my mis-paste from the core SPI library) seems to be that I was using the SPI library from Roger's master repo, rather than Steve's amended one.

I will seek the revised one on Steve's repo and use that in the interim, while the PR is pending.

I'm in no rush!

Richard

palmerr
Posts: 5
Joined: Tue Jan 31, 2017 6:21 am

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby palmerr » Wed Feb 01, 2017 3:05 am

Steve

Works just fine with your modified SPI library.

Thanks

Benchmarks on my Maple Mini clone (2 button, Chinese) confirm yours.

Richard

stevestrong
Posts: 734
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby stevestrong » Wed Feb 01, 2017 9:25 am

8-)

stevestrong
Posts: 734
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby stevestrong » Sun Feb 05, 2017 9:13 pm

push - for Roger... ;)

User avatar
RogerClark
Posts: 5467
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby RogerClark » Sun Feb 05, 2017 10:31 pm

stevestrong wrote:push - for Roger... ;)


I will do a local pull and test again

BTW. Just for cross referencing purposes, the PR is https://github.com/rogerclarkmelbourne/ ... 2/pull/220

fari
Posts: 18
Joined: Sun Feb 26, 2017 12:01 pm

Problem: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby fari » Sun Feb 26, 2017 12:27 pm

Hello everybody!

After 15 years I am back to my old hobby. Well I am working on a smart home system based on CAN-BUS communication. I have chosen the STM32f103 to work with.
I have read this post a while ago and decided to buy the mentioned TFT display ( 3,5" TFT-LCD Touch-Screen Display for Raspberry Pi):
http://www.ebay.de/itm/-/252472008067?

I have wired the Display to communicate with SPI 1 with the following configuration pins:
#define TFT_CNTRL GPIOA
#define TFT_RST PA3
#define TFT_RS PA2
#define TFT_CS PA4

I have used the SPI example in the STM32 library to test the SPI communication and the display responds always with the pattern 0x55, does it mean the communication is OK? I have disconnected it and I have got 0xFF!!! Looked fine to me!!

Well! Afterwards I could run the ILI9486 example program and got the run times statistic quite similar to the one in beginning of this post (see below!)

The problem is, that the display is just flashing white synchronously to the test sequences. After doing some debugging with Atollic , I could not detect any error.
Now I have no clue :roll: , why the display is not showing the test patterns!!!
Can anybody give me a hint please!

(Sorry for my school English :| )

***** ILI9486 graphic Test *****

************************************************
Without DMA:
************************************************
Benchmark Time (microseconds)
Screen fill 356406
Text 50544
Lines 547817
Horiz/Vert Lines 31755
Rectangles (outline) 19880
Rectangles (filled) 869491
Circles (filled) 302401
Circles (outline) 435629
Triangles (outline) 112165
Triangles (filled) 356495
Rounded rects (outline) 132816
Rounded rects (filled) 997862
Done!

************************************************
Now using DMA:
************************************************
Benchmark Time (microseconds)
Screen fill 341522
Text 52901
Lines 622749
Horiz/Vert Lines 31425
Rectangles (outline) 20386
Rectangles (filled) 833499
Circles (filled) 359237
Circles (outline) 435628
Triangles (outline) 138814
Triangles (filled) 374145
Rounded rects (outline) 133456
Rounded rects (filled) 975637
Done!

stevestrong
Posts: 734
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany

Re: Lib for ILI9486 - 3.5 inch 480x320 touch TFT for RPi

Postby stevestrong » Sun Feb 26, 2017 3:46 pm

It looks like a Waveshare Spotpear clone.
Although the controller interface is SPI, but the display board contains a serial->parallel converter which is write-only.
Hence, these modules cannot be read, so the controller cannot be determined 100% sure, it may have other driver than ILI9486.

Still, I would suggest to lower the SPI clock speed down to 18MHz.
36MHz is only possible with the hardware-hack I posted here.


Return to “Libraries & Hardware”

Who is online

Users browsing this forum: No registered users and 1 guest