Precedure TFT_Init_ILI9340 with STM32

Beta Testing discussion on mikroBasic PRO for ARM.
Post Reply
Author
Message
alpha123
Posts: 9
Joined: 31 May 2012 20:22

Precedure TFT_Init_ILI9340 with STM32

#1 Post by alpha123 » 31 May 2012 20:44

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?

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Precedure TFT_Init_ILI9340 with STM32

#2 Post by janko.kaljevic » 01 Jun 2012 14:47

Hello,

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

Best regards.

alpha123
Posts: 9
Joined: 31 May 2012 20:22

Re: Precedure TFT_Init_ILI9340 with STM32

#3 Post by alpha123 » 01 Jun 2012 17:00

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

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Precedure TFT_Init_ILI9340 with STM32

#4 Post by janko.kaljevic » 04 Jun 2012 10:37

Hello,

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

Best regards.

alpha123
Posts: 9
Joined: 31 May 2012 20:22

Re: Precedure TFT_Init_ILI9340 with STM32

#5 Post by alpha123 » 04 Jun 2012 22:59

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

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Precedure TFT_Init_ILI9340 with STM32

#6 Post by janko.kaljevic » 13 Jun 2012 14:19

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.

Post Reply

Return to “mikroBasic PRO for ARM Beta Testing”