SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 41
2.3.9 Draw Triangle 54hex - T ascii
Commands (host)
17 bytes
1.- 0x47 (hex), G (ascii). *Geometry Command.
2.- 0x54 (hex), T (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.- X3 high byte.
12.- X3 low byte.
13.- Y3 high byte.
14.- Y3 low byte.
15.- High byte colour.
16.- Low byte colour.
17.- 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 triangle on the screen with
the given points: X1(16bit),Y1(16bit), X2(16bit),Y2(16bit) and
X3(16bit),Y3(16bit). Colour format is the same RGB565.
Example (sent commands)
Example 1:
<47,54,00,32,00,3C,00,64,00,C8,00,E6,00,78,F8,00,00>
Draws a no filled red triangle with given points: X1:50(dec),
Y1:60(dec), X2:100(dec), Y2:200(dec) and X3:230(dec),
Y3:120(dec).