Precedure TFT_Init_ILI9340 with STM32
Precedure TFT_Init_ILI9340 with STM32
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?
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: Precedure TFT_Init_ILI9340 with STM32
Hello,
I believe that you have same correspondence with my colleague via e-mail.
Best regards.
I believe that you have same correspondence with my colleague via e-mail.
Best regards.
Re: Precedure TFT_Init_ILI9340 with STM32
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
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
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: Precedure TFT_Init_ILI9340 with STM32
Hello,
TFTData should be connected to 16bit port. This is most efficient and you will get best performance.
Best regards.
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
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
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
- janko.kaljevic
- Posts: 3565
- Joined: 16 Jun 2011 13:48
Re: Precedure TFT_Init_ILI9340 with STM32
Hello,
STM32 does not have TFT_16bit.. library. Your TFT controller is listed in regular TFT library.
So just use calls without _16bit:
Best regards.
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