What is TFT_Set_DBC_SSD1963 and how do I use it?

Post your requests and ideas on the future development of mikroBasic PRO for PIC.
Post Reply
Author
Message
OldTimeCoder
Posts: 32
Joined: 15 Sep 2017 12:47

What is TFT_Set_DBC_SSD1963 and how do I use it?

#1 Post by OldTimeCoder » 08 Oct 2017 23:41

In the STM32F7 demo project from Libstock, in the mikromedia_7_driver.c file, there is a InitializeTouchPanel( ) function that contains this line:

TFT_Set_DBC_SSD1963(255);

There is no info in the help file for this function but it does appear in the __Lib_TFT_Defs.c file, which indicates is is used to set the brightness. Without this call the LCD is totally dark.

When I create a project using VTFT this call is not included within the InitializeTouchPanel( ) function and when running the program the LCD is indeed dark. If I manually add this code to my InitializeTouchPanel( ) function then the display is lit. When I make any changes within VTFT and build the code again the function call is missing.

Why is this not documented ion the help file and how do I fix this?

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: What is TFT_Set_DBC_SSD1963 and how do I use it?

#2 Post by lana.arsic » 09 Oct 2017 16:24

Hi,

I'm sorry for this inconvenience, yes function TFT_Set_DBC_SSD1963(255).
turns backlight ON and sets it to value "255".

I have forwarded to our developers to add description in Help file,
and that TFT_Set_DBC_SSD1963(255) is not added when Mikromedia7_for_STM32F7_ARM150
is chosen for hardware pattern.

Meanwhile, in order to prevent Visual TFT to erase added code,
you can surround added code with two new lines, as described here:

viewtopic.php?f=101&t=69468#p279811

Kind regards,
Lana

OldTimeCoder
Posts: 32
Joined: 15 Sep 2017 12:47

Re: What is TFT_Set_DBC_SSD1963 and how do I use it?

#3 Post by OldTimeCoder » 10 Oct 2017 01:38

Lana,

I tried adding new lines before and after the line and VTFT still deletes it. Is the InitializeTouchPanel() handled differently than other functions? (I do have Code Merge enabled).

I did notice that when I generate code for my project, I get a "'TFT_Internal' in not a valid integer value" error message, but when I do the same for teh example project I get a "Your code has been successfully generated, Would you like to see your code?" message instead.

Can you explain the difference?

Thanks,

Jeff

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: What is TFT_Set_DBC_SSD1963 and how do I use it?

#4 Post by lana.arsic » 10 Oct 2017 17:42

Hi Jeff,

I'm sending in attachment .xml file which you can try,
it was tested and it was working properly, i.e. backlight is set.

When you unzip the file Mikromedia_7_for_STM32F7_ARMCustom.xml
you can place it in Board Defs folder which is located in the installation folder
of Visual TFT, for example in:

c:\Users\Public\Documents\Mikroelektronika\Visual TFT\Board Defs\

and to choose that board for hardware pattern, when you create new project.

Kind regards,
Lana
Attachments
Mikromedia_7_for_STM32F7_ARMCustom.zip
(2.28 KiB) Downloaded 130 times

OldTimeCoder
Posts: 32
Joined: 15 Sep 2017 12:47

Re: What is TFT_Set_DBC_SSD1963 and how do I use it?

#5 Post by OldTimeCoder » 11 Oct 2017 01:58

Thanks - this works.

Can you please explain why?

Note that I had to add the lines to rotate the TFT and the Touch panel 180 degrees.

Also, can you please answer my other question:

"I did notice that when I generate code for my project, I get a "'TFT_Internal' in not a valid integer value" error message, but when I do the same for the example project I get a "Your code has been successfully generated, Would you like to see your code?" message instead." Why?

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: What is TFT_Set_DBC_SSD1963 and how do I use it?

#6 Post by lana.arsic » 12 Oct 2017 13:41

Hi Jeff,
OldTimeCoder wrote: Can you please explain why?
It was made by our developer as workaround, he knows internal
Visual TFT commands which cannot be seen by end user.
OldTimeCoder wrote: "I did notice that when I generate code for my project, I get a "'TFT_Internal' in not a valid integer value" error message, but when I do the same for the example project I get a "Your code has been successfully generated, Would you like to see your code?" message instead." Why?
I'm sorry, I oversight that, can you please post
the minimal example which demonstrates that behavior?

Kind regards,
Lana

Post Reply

Return to “mikroBasic PRO for PIC Wish List”