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?
What is TFT_Set_DBC_SSD1963 and how do I use it?
-
- Posts: 32
- Joined: 15 Sep 2017 12:47
- 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?
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
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
-
- Posts: 32
- Joined: 15 Sep 2017 12:47
Re: What is TFT_Set_DBC_SSD1963 and how do I use it?
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
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
- 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?
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
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
-
- Posts: 32
- Joined: 15 Sep 2017 12:47
Re: What is TFT_Set_DBC_SSD1963 and how do I use it?
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?
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?
- 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?
Hi Jeff,
Visual TFT commands which cannot be seen by end user.
the minimal example which demonstrates that behavior?
Kind regards,
Lana
It was made by our developer as workaround, he knows internalOldTimeCoder wrote: Can you please explain why?
Visual TFT commands which cannot be seen by end user.
I'm sorry, I oversight that, can you please postOldTimeCoder 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?
the minimal example which demonstrates that behavior?
Kind regards,
Lana