SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 57
2.5.1 Draw Image/Icon – 49hex - I ascii
Commands (host)
10 bytes + pixel number x 2
1.- 0x49 (hex), I (ascii). *Image Command.
2.- 0x49 (hex), I (ascii).
3.- X1 coord high byte.
4.- X1 coord low byte.
5.- Y1 coord high byte.
6.- Y1 coord low byte.
7.- X2 coord high byte.
8.- X2 coord low byte.
9.- Y2 coord high byte.
10.- Y2 coord low byte.
Now send pixel by pixel:
11.- High byte colour pixel 1.
12.- Low byte colour pixel 1.
13.- High byte colour pixel 2.
14.- Low byte colour pixel 2.
15.- High byte colour pixel 3.
16.- Low byte colour pixel 3.
….
Last- High byte colour pixel n((X2-X1+1)*(Y2-
Y1+1)).
Last- Low byte colour pixel n((X2-X1+1)*(Y2-
Y1+1)).
Remember: each pixel is composed by two
bytes following the same RGB565 convention.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) – success ACK or
0x46 (hex), F (ascii) – fail NAK.
Any of those two commands will not be sent
until the host finish to send all the width(X2-
X1+1)*height(Y2-Y1+1) pixels of the image or
icon.
Description
This command draws an icon/ image on the
screen starting at the given points(top left
corner): X1(16bit), Y1(16bit) and ending on the
(bottom right corner)X2(16bit), Y2(16bit).
Colour format for each pixel is the same
RGB565.