SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 33
2.3.5 Draw Gradient Rectangle 47hex - G ascii
Commands (host)
15 bytes
1.- 0x47 (hex), G (ascii). *Geometry Command.
2.- 0x47 (hex), G (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 first colour.
12.- Low byte first colour.
13.- High byte second colour.
14.- Low byte second colour.
15.- Direction: 0x00(hex) Horizontal.
0x01(hex) Vertical.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) success ACK or
0x46 (hex), F (ascii) fail NAK.
Description
This command draws a simple gradient
rectangle on the screen with the two given points:
X1(16bit), Y1(16bit) and X2(16bit),Y2(16bit). The
first colour and second colour are mix as they
approach the middle of the rectangle. Colour
format is the same RGB565.
Example (sent commands)
Example 1:
<47,47,00,00,00,00,01,3F,00,EF,07,E0,FF,E0,00>
Draws a horizontal green + yellow gradient
rectangle from X1:00(dec), Y1:00(dec) to
X2:319(dec), Y2:239(dec).