SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 53
2.4.5 Strings Configuration - 43hex - C ascii
*This command is divided in 4 sub-commands, each one is explained next:
Commands (host)
X bytes
Set Text Colour
1.- 0x53 (hex), S (ascii). *String Command.
2.- 0x43 (hex), C (ascii). Config.
3.- 0x54 (hex), T (ascii).
4.- High byte text colour.
5.- Low byte text colour.
Set Text Background Colour
1.- 0x53 (hex), S (ascii). *String Command.
2.- 0x43 (hex), C (ascii). Config.
3.- 0x42 (hex), B (ascii).
4.- High byte background colour.
5.- Low byte background colour.
Set Text Font Size
1.- 0x53 (hex), S (ascii). *String Command.
2.- 0x43 (hex), C (ascii). - Config
3.- 0x53 (hex), S (ascii).
4.- 0xXX Text Size: 0x00(hex) to 0x0C(hex).
Set Text Background FILLED/UNFILLED
1.- 0x53 (hex), S (ascii). *String Command.
2.- 0x43 (hex), C (ascii). Config.
3.- 0x46 (hex), F (ascii).
4.- 0x00 (hex) Unfilled or
0x01 (hex) Filled.
Responses (device)
1 byte all commands.
1.- 0x4F (hex), O (ascii) success ACK or
0x46 (hex), F (ascii) fail NAK.
Description
Up above are described the needed
commands/parameters to set each one of the
strings configurations, those are: Text Colour,
Background Colour, Text Size and Filled/Unfilled
Background.
Once one of those commands is sent, next calls
to Put Letter, Display String and Display String
SD will be displayed at the new set parameters by
the user with this commands.