SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 18
2.2.2 Set Erase Background Colour - 43hex - C ascii
Commands (host)
4 bytes
1.- 0x4D (hex), M (ascii). *Master command
2.- 0x43 (hex), C (ascii).
3.- High byte colour.
4.- Low byte colour.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) – success ACK or
0x46 (hex), F (ascii) – fail NAK.
Description
Command needed to set background, the
colour consist of 16bits (2 bytes) RGB565:
R4R3R2R1R0G5G4G3G2G1G0B4B3B2B1B0
That is:
5bits for red, 6 bits for green, 5bits for blue.
High byte : R4R3R2R1R0G5G4G3
Low byte : G2G1G0B4B3B2B1B0
Once this command is sent, each time that
the device receives the Erase Command, the
screen will be draw with this background
colour. Default background colour on reset or
power on is black.
Example (sent commands)
Example 1:
<4D,43,FF,FF> Sets Background Colour to
white (FFFF).
Example 2:
<4D,43,F8,00> Sets Background Colour to
red (F800).
Example 3:
<4D,43,00,1F> Sets Background Colour to
blue (001F).
All data is in hex.