User manual

PROFESIONAL, CREDITABLE, SUCCESSFULL DWIN DGUS v2.0 Specification
Beijing DWIN Technology Co., Ltd. - 31 - www.dwin.com.cn/en
5.3.2 Basic Graphic Display(0x21)
Add.
Definition
Data
Length
Description
0x00
0x5A21
2
0x02
*SP
2
Variables description pointer, 0xFFFF indicates it loaded by config. file
0x04
0x0005
2
0x06
0x00
*VP
2
Variable data pointer;
0x08
0x01
Area
8
Definition of drawing display area: the upper left corner of the specified
area and the lower right corner coordinates;
No display if drawing cross the border;
Only be valid for 0x0001-0x0005 graphic command.
Format description of Variable data
Add.
Definition
Description
VP
CMD
Graphic command
VP+1
Data_Pack_Num_Max
The max data packet number; Drawing will automatic terminate when get the
closing conditions;
Line command (0x0002)defined as line number (Vertices-1);
VP+2
DATA_Pack
Date packet Description of Graphic drawing command
Command
Operation
Format description of Graphic data packet
(Unit of the comparative addressand data length is word)
Comparative
Add.
Data
length
Definition
Description
0x0001
Point set
0x00
2
(x,y)
Coordinate of the set pointuse the high byte of X as
judging factor.
0x02
1
Color
Color of the set point
0x0002
Line
0x00
1
Color
Line color
0x01
2
(x,y)0
Coordinate of line vertex0, use the high byte of X as judging
factor.
0x03
2
(x,y)1
Coordinate of line vertex1, use the high byte of X as judging
factor.
0x01+2*n
2
(x,y)n
Coordinate of line vertexn, use the high byte of X as judging
factor.
0x0003
Rectangle
0x00
2
(x,y)s
Top left corner coordinate of rectangle, use the high byte of
X as judging factor.
0x02
2
(x,y)e
Bottom right corner coordinate of the rectangle
0x04
1
Color
Color of rectangle
0x0004
Rectangle area
filling
0x00
2
(x,y)s
Top left corner coordinate of rectangle, use the high byte of
X as judging factor.
0x02
2
(x,y)e
Bottom right corner coordinate of the rectangle
0x04
1
Color
Filling color of rectangle
0x0005
Round
0x00
2
(x,y)
Center coordinateuse the high byte of X as judging factor.
0x02
1
Rad
Radius
0x03
1
Color
Round color
0x0006
Cut and paste
of image area
0x00
1
Pic_ID
ID of the page in which to shear the image; use the high
byte as judging factor.
0x01
2
(x,y)s
Top left coordinate of the cut area of image
0x03
2
(x,y)e
Bottom right coordinate of the cut area of image
0x05
2
(x,y)
The coordinate position of current page which the cut image
pasted to, top left corner
0x**07
ICON display
0x00
2
(x,y)
Coordinate position to display, use the high byte of X as
judging factor.