SPI support for ILI9341

Post your requests and ideas on the future development of Visual TFT Software.
Author
Message
fspfde
Posts: 12
Joined: 23 May 2014 13:58

Re: SPI support for ILI9341

#16 Post by fspfde » 26 May 2014 13:44

Thank for your answer but when I try to remplace TFT_Init(320, 240) by TFT_Init_ILI9341(240, 320) or TFT_Init_ILI9341_8bit(240, 320) or TFT_Init_ILI9341_16bit(240, 320) in the TFT example find in the web site nothing is display on the screen.
I am using mikromedia board for pic24.

#include <built_in.h>

// TFT display connections
unsigned short TFT_DataPort at LATE;
sbit TFT_WR at LATD13_bit;
sbit TFT_RD at LATD12_bit;
sbit TFT_CS at LATC3_bit;
sbit TFT_RS at LATB15_bit;
sbit TFT_RST at LATC1_bit;

unsigned short TFT_DataPort_Direction at TRISE;
sbit TFT_WR_Direction at TRISD13_bit;
sbit TFT_RD_Direction at TRISD12_bit;
sbit TFT_CS_Direction at TRISC3_bit;
sbit TFT_RS_Direction at TRISB15_bit;
sbit TFT_RST_Direction at TRISC1_bit;

/*********************************************************************/
const code far char Image1_pic24_img[36265];

void main() {
AD1PCFGL = 0xFFFF;
AD1PCFGH = 0xFFFF;
Delay_ms(150);

TFT_Init_ILI9341_8bit(240, 320);
TFT_Fill_Screen(CL_WHITE);

TFT_Image_Jpeg(0, 0, Image1_pic24_img);
Delay_ms(1000);
}

However, when I upload a calculator.hex from Visual TFT example it works.
Do you have an idea to fix my problem?

Thank you so much for your help.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: SPI support for ILI9341

#17 Post by filip » 27 May 2014 08:00

Hi,

Please, can you attach here the photo of your board ?

Regards,
Filip.

fspfde
Posts: 12
Joined: 23 May 2014 13:58

Re: SPI support for ILI9341

#18 Post by fspfde » 27 May 2014 08:11

Hi,

You will find the photo in attaches.
Thank you.
Attachments
IMG_20140527_085453.jpg
IMG_20140527_085453.jpg (1.39 MiB) Viewed 12687 times
IMG_20140527_085447.jpg
IMG_20140527_085447.jpg (1.37 MiB) Viewed 12687 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: SPI support for ILI9341

#19 Post by filip » 27 May 2014 14:51

Hi,

The image is too blurry so I cannot see the hardware revision, could you read it for me ?

Regards,
Filip.

fspfde
Posts: 12
Joined: 23 May 2014 13:58

Re: SPI support for ILI9341

#20 Post by fspfde » 27 May 2014 15:02

Yes for sure, the screen is MI0283QT-9A on mikromedia board for pic24.

MaGiK
Posts: 897
Joined: 19 Apr 2013 10:00

Re: SPI support for ILI9341

#21 Post by MaGiK » 28 May 2014 13:30

Hello fspfde :D

Is your compiler updated to the latest version?
Update can be done by:

1- Right clicking on program icon then choosing to run as administrator.
2- Clicking on (help) in the tool bar.
3- Choosing (check for updates).

Best Regards
My hobby is collecting MikroElektronika products.
Gotta catch them all!

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: SPI support for ILI9341

#22 Post by filip » 29 May 2014 09:30

Hi,

Which hardware revision of the mikromedia for PIC24 board is it ?

Regards,
Filip.

rares.porutiu
Posts: 28
Joined: 18 Apr 2012 16:42

Re: SPI support for ILI9341

#23 Post by rares.porutiu » 13 Jul 2014 09:48

Please check out my example on how to use ILI9341 SPI (board made for Arduino with 2.2" TFT and SDCard socket). Example is for ATMEGA644P but contains source and it is easy portable on any chip. Ask me if you have any problems running it.

http://www.libstock.com/projects/view/1 ... ft-library

lerameur
Posts: 233
Joined: 09 Sep 2006 21:32

Re: SPI support for ILI9341

#24 Post by lerameur » 04 Feb 2015 03:47

Hello Filip,

Any news concerning intergrating spi library to MikroC with tft screen?
regards,

Ken

rares.porutiu
Posts: 28
Joined: 18 Apr 2012 16:42

Re: SPI support for ILI9341

#25 Post by rares.porutiu » 04 Feb 2015 07:49

If you mean working with TFT library for Ili9341 on SPI with C it should be the same as in Pascal, just translate the lines that I modified into C syntax. I could help if you send the compressed project to my e-mail, as I helped others who contacted me. So please define precisely the terms in your question so I can help :)

morais
Posts: 10
Joined: 22 Jan 2014 12:01

Re: SPI support for ILI9341

#26 Post by morais » 03 Aug 2016 15:55

Hi ME Team.

Any news about the support for ILI9341 in spi mode?

I´m using the mikroBasic PRO for dsPIC compiller and i intend to use this module:

Image

User avatar
Aleksandar.Mitrovic
mikroElektronika team
Posts: 1697
Joined: 11 Mar 2015 12:48

Re: SPI support for ILI9341

#27 Post by Aleksandar.Mitrovic » 08 Aug 2016 12:02

Hi,

At this moment we do not have precise information regarding the ILI9341 in SPI mode support.

What I do know, is that soon we will have some topic on the forum with enhancement that all users have suggested and you will be able to:

- VOTE for the enhancement (enhancement with the most votes we will realized by our developers)
- suggest new enhancement which can be added to the voting list
- get answer if is possible that suggested enhancement can be realized by our developers
- and more.

So no more forwarding suggestions to the developers and "generic answers" in the future.
All of that will be on the Enhancement page, and up to users and their desires.

Kind regards,
Aleksandar

rares.porutiu
Posts: 28
Joined: 18 Apr 2012 16:42

Re: SPI support for ILI9341

#28 Post by rares.porutiu » 15 Aug 2016 13:00

Whenever you need information about the SPI mode for ILI9341 I am happy to offer the routines that I tested on various platforms. Then you can just include them in your compiler libraries.

User avatar
uros.cvetinovic
mikroElektronika team
Posts: 803
Joined: 14 Dec 2015 09:24

Re: SPI support for ILI9341

#29 Post by uros.cvetinovic » 16 Aug 2016 09:45

Hi,

I believe you uploaded your project to libstock here:
http://libstock.mikroe.com/projects/vie ... ft-library

Right?

If yes, than thank you for your contribution.
If no, than you can upload your code on libstock.

Best regards,

Uros

rares.porutiu
Posts: 28
Joined: 18 Apr 2012 16:42

Re: SPI support for ILI9341

#30 Post by rares.porutiu » 16 Aug 2016 18:35

I did upload, routines are clear, but need a little adaptation to different platforms. I mean I am here to help in case anything does not work or needs clarification. Please do not hesitate :)

Post Reply

Return to “Visual TFT Wish List”