ILI9341 (with and without DMA support)

Please do not post requests
victor_pv
Posts: 1654
Joined: Mon Apr 27, 2015 12:12 pm

ILI9341 (with and without DMA support)

Post by victor_pv » Mon Apr 27, 2015 4:04 pm

Available here, until thoroughly tested, then will send a pull or merge or something to Roger:
https://github.com/victorpv/TFT_ILI9163C

To use it with the standard repo SPI library comment out these 3 lines in the header file:
#define SPI_16BIT
#define SPI_MODE_DMA 1
#define SPEED_UP 1 // Enables extra calculations in the circles routine to use fastVLine and fastHLine, only in DMA mode.

To use DMA, uncomment those lines, and download the SPI library from my repo:
https://github.com/victorpv/Arduino_STM ... es/SPI/src

Once all is tested the changes to the SPI library will be integrated in Roger's repo.

Please post here if you have any issues with DMA or non-DMA.

User avatar
ahull
Posts: 1598
Joined: Mon Apr 27, 2015 11:04 pm
Location: Sunny Scotland
Contact:

Re: ILI9341 (with and without DMA support)

Post by ahull » Fri Aug 28, 2015 11:18 pm

Some ideas for improvement for this library from Paul Stoffregen are being discussed here.
- Andy Hull -

User avatar
martinayotte
Posts: 1222
Joined: Mon Apr 27, 2015 1:45 pm

Re: ILI9341 (with and without DMA support)

Post by martinayotte » Sat Aug 29, 2015 1:40 am

Good catch !

Would it be easy to merge ?

(I don't have ILI8341 yet, maybe I should purchase one ... ;) )

bigplik
Posts: 15
Joined: Wed Jun 17, 2015 7:18 am

Re: ILI9341 (with and without DMA support)

Post by bigplik » Sat Aug 29, 2015 7:27 pm

I'll checked code above and unfortunately it is not working when I comment this lines in header file,
anyone knows some good working code for stm32 and ILI9341?

User avatar
sheepdoll
Posts: 236
Joined: Fri May 22, 2015 12:58 am
Location: Silicon Valley Vortex
Contact:

Re: ILI9341 (with and without DMA support)

Post by sheepdoll » Sat Aug 29, 2015 7:47 pm

bigplik wrote:I'll checked code above and unfortunately it is not working when I comment this lines in header file,
anyone knows some good working code for stm32 and ILI9341?
The F429I-Discovery uses this display. There are examples in the STM standard peripheral library. Most depend on a third party (payware) library, which does not lend itself to porting to the arduino interface. The STMF429 has a built in TFT controller and external Ram controller, so the code for that hardware is complex.

I think there has been much better progress on the libmaple/F103 side, which uses the Adafruit libraries.

bigplik
Posts: 15
Joined: Wed Jun 17, 2015 7:18 am

Re: ILI9341 (with and without DMA support)

Post by bigplik » Sat Aug 29, 2015 7:50 pm

yes, some times ago I found one library for maple mini and it was working, but now can't get if where I found it,
maybe it was on arduino.cc forum

User avatar
mrburnette
Posts: 1803
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: ILI9341 (with and without DMA support)

Post by mrburnette » Sun Aug 30, 2015 12:27 pm

bigplik wrote:yes, some times ago I found one library for maple mini and it was working, but now can't get if where I found it,
maybe it was on arduino.cc forum
Or, maybe it was the download of the STM32 core from github where the ILI9341 has been represented for months:
https://github.com/rogerclarkmelbourne/ ... /libraries

I have a number of STM32 simplified examples on my project blog, each example has the ILI9341 library as local to the sketch. Otherwise, you must make certain that you do not have naming conflicts to the ordinary Arduino libraries under /Documents/Arduino/libraries

https://www.hackster.io/rayburne


Ray

stanleyseow
Posts: 46
Joined: Sun Sep 27, 2015 3:26 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: ILI9341 (with and without DMA support)

Post by stanleyseow » Sat Oct 10, 2015 12:04 pm

Hi,

I've a 3.2" 320x240 ILI9320

Are they similar to the ILI9341 library ??

I just wanted the screen working first before focusing on the touchscreen...

Thanks

Stanley


ImageTFT320x240-2 by stanley_seow, on Flickr

ImageTFT320x240 by stanley_seow, on Flickr
Stanley
9W2SVT / N5SVT

stanleyseow
Posts: 46
Joined: Sun Sep 27, 2015 3:26 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: ILI9341 (with and without DMA support)

Post by stanleyseow » Sat Oct 10, 2015 3:56 pm

Silly question..

Got the 2.2" TFT ILI9341 working on SPI1 pins...
How do I access the SPI2 and SPI3 pins coming from UNO with ONLY 1 SPI sets of pins..

I had to look at the Mini STM32 to lookup the SPI1 pin names..

Thanks
Stanley
9W2SVT / N5SVT

User avatar
mrburnette
Posts: 1803
Joined: Mon Apr 27, 2015 12:50 pm
Location: Greater Atlanta
Contact:

Re: ILI9341 (with and without DMA support)

Post by mrburnette » Sat Oct 10, 2015 7:38 pm

stanleyseow wrote:Silly question..

Got the 2.2" TFT ILI9341 working on SPI1 pins...
How do I access the SPI2 and SPI3 pins coming from UNO with ONLY 1 SPI sets of pins..

I had to look at the Mini STM32 to lookup the SPI1 pin names..

Thanks

Maybe this link will shed some light on summer '15 changes to the syntax:
http://www.stm32duino.com/viewtopic.php?t=423
Ray

Post Reply