buydisplay.com
EastRising
4.2.15 Ring Drawing Setting and Display Command
Ring Drawing command is to display a ring indicator in TFT panel
Table 4-18: Ring Indicator Command
Command
Function
Code
No.
Command Parameter
Command Description
Ring Indicator
Setting
DCh
#nn:
X(2), Y(2), R(2), Width(2),
Color(3), Speed(1)
Display a ring indicator around the
center point (X, Y) ; R: radius, Width:
circular width; Color: circular color,
Speed: display speed (unit1ms), Angle:
circular angle.
Display the
Arc
DCh
nn
S_Angle(2), A_Angle(2)
Display the Arc set above. S_Angle
represents the initial angle; A_Angle is
the angle of the action, both of which
are two Byte hexadecimal units.
For example, input below command in
“UartTFT.ini”
:
DCh #00: 160, 100, 45, 8, 0xFF0000, 5
// display a red ring around (160, 100)
// with radius is 45
;
width is 8
;
speed is 5ms
After the compilation is completed, the host transmits the commands
DCh, 00, 0000, 010E
to TFT panel through UART, then the TFT will display a red ring around the center point (160,
100) with a radius of 45, from 0° to 270° in 5ms.
Figure 4-18: Ring Indicator Example
(160, 100)