Product Application

©
Rev.1.1
Ft_Gpu_Hal_Dec2Ascii(StringArray,(ThisDemoEnd/100)+1);
strcat(StringArray,"s");
Ft_Gpu_CoCmd_Text(phost,FT_DispWidth, (FT_DispHeight-12), 20, OPT_RIGHTX,
StringArray);
if(tftConfig == RTP35 || tftConfig == RTP43 || tftConfig == CTP35 || tftConfig
== CTP43)
{
Ft_App_WrCoCmd_Buffer(phost,COLOR_RGB(0xff,0xff,0xff));
Ft_App_WrCoCmd_Buffer(phost,TAG(249));
Ft_Gpu_CoCmd_Button(phost,FT_DispWidth-65,FT_DispHeight-42,60,30,20,0, "SKIP-
>");
CurrTag2 = Ft_Gpu_Hal_Rd8(phost,REG_TOUCH_TAG);
}
Ft_App_WrCoCmd_Buffer(phost,DISPLAY());
Ft_Gpu_CoCmd_Swap(phost);
/* Download the commands into fifo */
Ft_App_Flush_Co_Buffer(phost);
/* Wait till coprocessor completes the operation */
Ft_Gpu_Hal_WaitCmdfifo_empty(phost);
PrevTag = CurrTag;
}
}
}
Thanks to Ft_Gpu_Hal_Rd8(phost,REG_TOUCH_TAG) function you can determine which object
on the screen is pressed. Pendown variable stores information that any of objects is pressed. You
can tag any drawing object using Ft_App_WrCoCmd_Buffer(phost,TAG(249)), of course value
of tag can be different from 249. Ft_App_WrCoCmd_Buffer(phost,TAG_MASK(0)) command
disables tagging drawing objects after it. Ft_App_WrCoCmd_Buffer(phost,TAG_MASK(1))
command enables tagging drawing objects after it.
FT800 and FT812 provide button and key widgets. They can be used in such manner:
Ft_Gpu_CoCmd_Keys(phost, yBtnDst, yOffset, 10*ButtonW, ButtonH, TextFont,
(OPT_CENTER | CurrTag), "qwertyuiop");
Ft_Gpu_CoCmd_Button(phost,yBtnDst, yOffset, 10*ButtonW, ButtonH, TextFont,
OPT_CENTER | OPT_FLAT, " ");
You can change foreground color of drawing objects using
Ft_Gpu_CoCmd_FgColor(phost,0x404080). Using Ft_Gpu_CoCmd_GradColor(phost,0x00ff00)
gradient color of objects (only buttons and keys) can be changed.
There is also possibility to draw other widgets such as: analog clocks, gauges, progress bars, scroll bars,
sliders, rotary dial controls and toggle switches. For more information please see FT80x/FT81x
datasheet.