Page 1 of 1

Precedure TFT_Init_ILI9340 with STM32

Posted: 31 May 2012 20:44
by alpha123
Has any one used builtin command TFT_Init_ILI9340 on STM32 system? when I compile, the compiler raises "identifier TFT_Init_ILI9340 was not declared" error?

Re: Precedure TFT_Init_ILI9340 with STM32

Posted: 01 Jun 2012 14:47
by janko.kaljevic
Hello,

I believe that you have same correspondence with my colleague via e-mail.

Best regards.

Re: Precedure TFT_Init_ILI9340 with STM32

Posted: 01 Jun 2012 17:00
by alpha123
Hi Dear,

Yes I have received email. Thanks for support.
Although I was in need of further help. In the example file I received, the connections of TFT's 16 datalines were all bound to PortD of STM32. On my boards the 16 data lines of TFT are connected to two ports. Low eight bits to PortC-Pin0-7 and High eight bits to PortB_Pin8-15. I have replied the email and wait for further help to know how to configure it.

best regards

Re: Precedure TFT_Init_ILI9340 with STM32

Posted: 04 Jun 2012 10:37
by janko.kaljevic
Hello,

TFTData should be connected to 16bit port. This is most efficient and you will get best performance.

Best regards.

Re: Precedure TFT_Init_ILI9340 with STM32

Posted: 04 Jun 2012 22:59
by alpha123
Hi Dear,

When I draw a few graphics in Visual TFT selecting ILI9340 as TFT type. I find lines similar to this:

' TFT module connections
dim TFT_16bit_DataPort_Hi as char at Todo
TFT_16bit_DataPort_Lo as char at Todo
TFT_16bit_DataPort_Hi_Direction as char at Todo
.........
TFT_16bit_Set_Pen(CL_WHITE_16bit, 3)
TFT_16bit_Set-Font ......
TFT_16bit_Write_Text.....


But when I compile such commands that have word 16bit the compiler raises "undeclared" error. And also as you told DataPort_Hi/Lo is not supported so should not I buy Visual TFT with Mikrobasic pro ARM if Visual TFT code is not supported by compiler?

best regards

Re: Precedure TFT_Init_ILI9340 with STM32

Posted: 13 Jun 2012 14:19
by janko.kaljevic
Hello,

STM32 does not have TFT_16bit.. library. Your TFT controller is listed in regular TFT library.

So just use calls without _16bit:

Code: Select all

  TFT_Init_ILI9340
  TFT_Set_Font
  TFT_Write_Text
Best regards.