SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 3
Table of Contents:
Description.….................................................................................................................6
Board Features………....................................................................................................8
SmartGPU 2 Board Explained…...................................................................................9
1. Host Interface............................................................................................................10
1.1 Command Protocol : Flow Control.................................................................10
1.2 Serial Set-up………………….........................................................................11
1.3 Power-up and Reset…...................................................................................11
1.4 Splash Screen on Power Up..........................................................................12
1.5 Understanding the computer’s graphic coordinate system…………………...12
2. SMART GPU Command Set software Interface Specification..............................13
2.1 General Commands.....................................................................................14
2.1.1 Initialize Smart GPU 2 -55hex U ascii........................................................15
2.2 Master Commands.......................................................................................16
2.2.1 Erase Screen - 45hex - E ascii…………………………………….…….…….17
2.2.2 Set Erase Background Colour - 43hex - C ascii……………………….…….18
2.2.3 Display Orientation 4Fhex - O ascii…………………………………….......19
2.2.4 Display Brightness - 42hex - B ascii………………………………………..20
2.2.5 BaudRate Change 58hex - X ascii……………………………………….21
2.2.6 Sleep 5Ahex - Z ascii………………………….……………………………..22
2.2.7 Calibrate Touch 54hex - T ascii…………………………………………..23
2.2.8 Software Reset 52hex - R ascii………………………………………….….25
2.3 Geometry Commands.................................................................................26
2.3.1 Put Pixel 50hex - P ascii………………………………………………….….27
2.3.2 Draw Line 4Chex - L ascii……………………………………………….…..28
2.3.3 Draw Rectangle 52hex - R ascii……………………………………….……29
2.3.4 Draw Round Rectangle 4Fhex - O ascii……………………………………31
2.3.5 Draw Gradient Rectangle 47hex - G ascii…………………………….…...33
2.3.6 Draw Arc 41hex - A ascii……………………………………...……….…….35
2.3.7 Draw Circle 43hex - C ascii………………………………………………….37
2.3.8 Draw Ellipse 45hex - E ascii………………………………………………...39
2.3.9 Draw Triangle 54hex - T ascii………………………………………….……41
2.4 Text/String Commands................................................................................43
2.4.1 Put Letter 4Chex - L ascii…………………………………………………….44
2.4.2 Print Number 4Ehex - N ascii.………………………………………….……46
2.4.3 Display String 53hex - S ascii…………………………………………….48
2.4.4 Display String SD 46hex - F ascii……………………………………….….50
2.4.5 Strings Configuration - 43hex - C ascii…………………………………….53