SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 135
2.12.1 Object Checkbox 43hex ‘C’ ascii
Commands (host)
9 bytes
1.- 0x4F (hex), O (ascii). *OBJECT command.
2.- 0x43((hex), C (ascii).
3.- X coord high byte.
4.- X coord low byte.
5.- Y coord high byte.
6.- Y coord low byte.
7.- Checkbox Size high byte.
8.- Checkbox Size low byte.
9.- Active State (check/un-check).
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) success ACK or
0x46 (hex), F (ascii) fail NAK.
Description
This Command generates-draws a Checkbox
object with the received top left X(16bit) and
Y(16bit) coordinates, the parameter Checkbox
size(16bit), will determine size in pixels of the
object in X and Y axis.
This is a simple but useful object to create GUIs
that need checkboxes.
*Minimum “Checkbox size” accepted parameter
is 15(dec), which means that the smallest
Checkbox that can be created is 15x15 pixels.
Example (sent commands)
Example 1:
<4F,43,00,0A,00,05,00,10,00> Create a checkbox
(un-checked) of size 16(dec)x16(dec), starting on
the top left corner X:10(dec), Y:5(dec).