SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 50
2.4.4 Display String SD 46hex - F ascii
Commands (host)
14 bytes + text file name + 1byte(NULL)
1.- 0x53 (hex), S (ascii). *String Command.
2.- 0x46 (hex), F (ascii). from SD .txt File
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.- Start Character (position) high byte.
12.- Start Character (position) low byte.
13.- Characters to Read (from position) high byte.
14.- Characters to Read (from position) low byte.
11 up to N (file name).
N+1.- 0x00 (hex) NULL ascii.
Responses (device)
SPC(2 bytes) + 1 byte ACK
1.- SPC high byte
2.- SPC low byte
3.- 0x4F (hex), O (ascii) success ACK.
0x46 (hex), F (ascii) fail NAK.
*SPC stands for Successfully Printed Chars.
Description
This command calls a text file stored on the micro SD card and
displays the contained text on an imaginary text box created with
the given points: X1(16bit), Y1(16bit) as top left corner and
X2(16bit), Y2(16bit) as bottom right corner.
The text or string is automatically adjusted to fit in this defined
text box, if the text is longer to fit in the text box, it will stop
discarding all the rest of the String. The command always return
the SPC(successfully printed bytes), this way user can determine
how many of the chars fitted and were printed on the received text
box.
The Start Character parameter means, the number of bytes that
will be jumped from the start of the file, including spaces. If this
parameter is zero (0x0000)hex, the file will be read and displayed
from the beginning.
The Characters to Read parameter means: the number of bytes
that will be read up from the Start character position. When this
parameter is zero (0x0000)hex, mini SmartGPU will try to read all