- 5 -
separated by space and ends with a return character; pay attention that the return character is a must.
When
the command is executing,the busy pin is low,and the module can’t receive new command, until the busy pin is
high.
“CMD n1 n2……Return”
The parameters n1, n2… in table below express a 16-bit unsigned integer data and s1, s2…expresses
alphabetic string.
Drawing commands
Function Command
Format Example
"
n
\
L
L
A
"
L
L
A
s
e
r
u
t
c
i
P
e
s
w
o
r
B
Draw a circle
CIRCLE Xa Ya R C
"CIRCLE 100 100 50 31\n"
Fill in color
CLR Xa Ya Xe Ye C
"CLR 0 0 100 100 31\n"
"
n
\
1
3
S
L
C
"
C
S
L
C
n
e
e
r
c
s
r
a
e
l
C
Cut a picture
CUT Pn Xa Ya Xb Yb Xs Ys
"CUT 1 30 30 0 0 100 100\n"
Draw a dot
DOT Xa Ya C
"DOT 100 100 31\n"
Draw a frame with
linetype and
chamfer
FRAME Xa Ya Xe Ye Ds Do
C
"FRAME 10 10 200 40 2 3
31\n"
Draw a line
LINE Xa Ya Xe Ye C
"LINE 10 10 50 50 31\n"
"
n
\
N
O
D
E
L
"
N
O
D
E
L
n
o
t
h
g
il
k
c
a
B
"
n
\
F
F
O
D
E
L
"
F
F
O
D
E
L
f
f
o
t
h
g
il
k
c
a
B
Animation
MOT Xa Ya Ps Pe Pt
"MOT 0 0 10 14 100\n"
"
n
\
F
F
O
M
"
F
F
O
M
f
f
o
n
o
i
t
a
m
i
n
A
"
n
\
0
3
0
3
1
C
I
P
"
a
Y
a
X
n
P
C
I
P
C
I
P
n
o
ll
a
C
Draw a rectangle
RECT Xa Ya Xe Ye C
"RECT 10 10 100 100 31\n"
Get screen size
*
"
n
\
E
Z
I
S
"
E
Z
I
S
Display alphabetic
string
STR Xa Ya C Str
"STR 0 0 31 ABCDEF\n"
Note:
Xa Ya :start x y coordinates
Xe Ye :End x y coordinates
C :color(16bits,RGB 565 )
Xb Yb
˖
start end X Y coordinates in livelong PIC
Xs Ys : Need to intercept the
size from livelong picture
Ds Do :Length of Solid line
/
Dotted line
Str :alphabetic string(8x16)
Pn : Pictures serial number(000-999)
R :
Radius
Ps :
Pe :
Pt :
Start animation picture number
End animation picture number
Spacing time(step :100ms)
* Using the command ,there will be a return value format is a "SXY Xsize Ysize\n"
6