1
Discussion - Hardware / FT813 non const text display?
« on: October 27, 2019, 04:08:37 pm »
Hi,
Using the newhaven 7" ft813 connected to an Arduino.
I am using Ft_Gpu_CoCmd_Text(phost,140,30,31,0,"test");
to display the word test on the screen.
However the screen is part of a bigger project (naturally) and I would like to be able to change the text depending on other conditions.
String x = "test";
Something like Ft_Gpu_CoCmd_Text(phost,140,30,31,0,x);
However this obviously isn't as straightforward as that as the function declaration for Ft_Gpu_CoCmd_Text defines the text parameter as a const.
Is there anyway around this? I can think of a few brute force methods such as look up tables etc but just asking incase I am missing something basic.
Thanks for an help.
Using the newhaven 7" ft813 connected to an Arduino.
I am using Ft_Gpu_CoCmd_Text(phost,140,30,31,0,"test");
to display the word test on the screen.
However the screen is part of a bigger project (naturally) and I would like to be able to change the text depending on other conditions.
String x = "test";
Something like Ft_Gpu_CoCmd_Text(phost,140,30,31,0,x);
However this obviously isn't as straightforward as that as the function declaration for Ft_Gpu_CoCmd_Text defines the text parameter as a const.
Is there anyway around this? I can think of a few brute force methods such as look up tables etc but just asking incase I am missing something basic.
Thanks for an help.