SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 141
2.12.4 Object Progress Bar –50hex – ‘P’ ascii
Commands (host)
11 bytes
1.- 0x4F (hex), O (ascii). *OBJECT command.
2.- 0x50((hex), P (ascii).
3.- X1 coord high byte.
4.- X1 coord low byte.
5.- Y1 coord high byte.
6.- Y1 coord low byte.
7.- X2 coord high byte.
8.- X2 coord low byte.
9.- Y2 coord high byte.
10.- Y2 coord low byte.
11.- Progress/Percentage 0x00(hex) – 0x64(hex).
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) – success ACK or
0x46 (hex), F (ascii) – fail NAK.
Description
This Command generates-draws a Progress Bar
object with the received X1(16bit), Y1(16bit),
X2(16bit), Y2(16bit) coordinates, the progress bar
will be automatically filled with GREEN colour up
to the received “Progress/Percentage” parameter,
the text will be automatically centered and the font
is adjusted in size to fit the Progress Bar, if the
Progress Bar is too Small to hold text inside it, this
will be discarded.
*Minimum Progress Bar accepted parameters
are 25(dec)x25(dec), that means that the smallest
Progress Bar that can be created is 25x25 pixels.
(X2-X1) >= 25 and (Y2-Y1) >= 25.
Example (sent commands)
Example 1:
<4F,50,00,0A,00,0A,00,C8,00,64,16> Draw a
Progress Bar object with the coordinates:
X1:10(dec), Y1:10(dec), X2:200(dec),
Y2:100(dec), and 22(dec) as
Progress/Percentage.