SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 29
2.3.3 Draw Rectangle – 52hex - R ascii
Commands (host)
13 bytes
1.- 0x47 (hex), G (ascii). *Geometry Command.
2.- 0x52 (hex), R (ascii).
3.- X1 high byte.
4.- X1 low byte.
5.- Y1 high byte.
6.- Y1 low byte.
7.- X2 high byte.
8.- X2 low byte.
9.- Y2 high byte.
10.- Y2 low byte.
11.- High byte colour.
12.- Low byte colour.
13.- Fill: 0x00(hex) No Fill Geometry or
0x01(hex) Fill Geometry.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) – success ACK or
0x46 (hex), F (ascii) – fail NAK.
Description
This command draws a simple rectangle on
the screen with the two given points: X1(16bit),
Y1(16bit) and X2(16bit),Y2(16bit). Colour
format is the same RGB565.
Example (sent commands)
Example 1:
<47,52,00,46,00,32,00,C8,00,96,F8,1F,00>
Draws a no filled purple rectangle from
X1:70(dec),Y1:50(dec) to X2:200(dec),
Y2:150(dec).