SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 26
2.3 Geometry Commands
Briefly Summary of Commands in this section:
*All of Those next commands always begin with the byte ‘G’-47hex, as
they are Geometry commands, followed by the next parameters/bytes.
• Put Pixel – 50hex ‘P’
• Draw Line – 4Chex ‘L’
• Draw Rectangle – 52hex ‘R’
• Draw Round Rectangle – 4Fhex ‘O’
• Draw Gradient Rectangle – 47hex ‘G’
• Draw Arc – 41hex ‘A’
• Draw Circle – 43hex ‘C’
• Draw Ellipse – 45hex ‘E’
• Draw Triangle – 54hex ‘T’
The colour parameter needed on all of those commands, consist of 16bits (2 bytes) RGB565:
R4R3R2R1R0G5G4G3 G2G1G0B4B3B2B1B0
That is:
5bits for red, 6 bits for green, 5bits for blue.
High byte colour: R4R3R2R1R0G5G4G3
Low byte colour: G2G1G0B4B3B2B1B0