SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 39
2.3.8 Draw Ellipse – 45hex - E ascii
Commands (host)
13 bytes
1.- 0x47 (hex), G (ascii). *Geometry Command.
2.- 0x45 (hex), E (ascii).
3.- X high byte.
4.- X low byte.
5.- Y high byte.
6.- Y low byte.
7.- Radius in X high byte.
8.- Radius in X low byte.
9.- Radius in Y high byte.
10.- Radius in Y 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 ellipse on the
screen with center on the given point: X(16bit),
Y(16bit), RADIUSX(16bit) and RADIUSY(16bit)
values. Colour format is the same RGB565.
Radius values must be always different than zero.
Example (sent commands)
Example 1:
<47,45,00,A0,00,78,00,96,00,64,FF,E0,00>
Draws a no filled yellow ellipse, with center in
X:160(dec), Y:120(dec), RADIUSX:150(dec)
and RADIUSY:100(dec).