SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 147
2.12.7 Object Window 57hex ‘W’ ascii
Commands (host)
12 bytes + Window Text + 1byte(NULL)
1.- 0x4F (hex), O (ascii). *OBJECT command.
2.- 0x57((hex), W (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.- Window Font Size
12.- Active State: 0x00(hex) Un-selected Trans,
0x01(hex) Selected Trans,
0x02(hex) Selected Gray,
0x03(hex) Selected White.
13 N.- Window Text
N+1.- 0x00(hex) NULL character.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) success ACK or
0x46 (hex), F (ascii) fail NAK.
Description
This Command generates-draws an:
-Un-selected header with Transparent center
-Selected header with Transparent center
-Selected header with Gray center
-Selected header with White center
Window object with the received X1(16bit),
Y1(16bit), X2(16bit), Y2(16bit) coordinates, the
Window header will be automatically fitted with the
received “Window Font Size”.
The parameters selected/un-selected and
transparent/colour windows let user draw window
objects that require backgroundcolours(gray/white)
or when the transparent center is needed, this
allows the user to switch states of the window from
selected to unselected without overwriting the
contents of the entire window.
*Minimum Window Size accepted parameters are
50(dec)x50(dec), that means that the smallest
Window object that can be created is 50x50 pixels.
(X2-X1) >= 50 and (Y2-Y1) >= 50.