SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 28
2.3.2 Draw Line – 4Chex - L ascii
Commands (host)
12bytes
1.- 0x47 (hex), G (ascii). *Geometry Command.
2.- 0x4C (hex), L (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.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) – success ACK or
0x46 (hex), F (ascii) – fail NAK.
Description
This command draws a simple line 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,4C,00,0A,00,0F,01,2C,00,C8,00,1F>
Draws a Blue line from X1:10(dec),Y1:15(dec)
to X2:300(dec),Y2:200(dec).
All data is in hex. Note: Maximum Xs or Ys
acceptable size values depend on display
orientation.