SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 46
2.4.2 Print Number – 4Ehex - N ascii
Commands (host)
10 bytes
1.- 0x53 (hex), S (ascii). *String Command.
2.- 0x4E (hex), N (ascii).
3.- X coord high byte.
4.- X coord low byte.
5.- Y coord high byte.
6.- Y coord low byte.
7.- Float Number High Byte.
8.- Float Number Medium High Byte.
9.- Float Number Medium Low Byte.
10.-Float Number Low Byte.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) – success ACK.
0x46 (hex), F (ascii) – fail NAK.
Description
This command displays/prints a received
float number(4 bytes), at the received top left
X(16bit) and Y(16bit) coordinates, the number
is printed with the minimum notation possible,
this means that zeros will be cut, as an
example a zero(0x00000000) will be printed as
“0” instead of “0.000000”. If number to print
doesn’t fit on the screen with the given X, Y
coordinates or current font size, number will be
discarded and command will fail with NAK ‘F’.
Text size, text colour, text background colour,
and filled of unfilled background must be set
with the Strings Config Command, Defaults
are Size 0, White text colour, Black
background colour and unfilled background.
Colour format is the same RGB565.
Example (sent commands)
Example 1:
<53,4E,00,0A,00,0F,47,F1,20,00> Draws an
“123456” number, with top left corner at
X:10(dec),Y:15(dec). With Font4 settings.