SmartGPU2-LCD480X320Touch-CommandSet

SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 59
2.5.2 Image BMP SD 42hex - B ascii
Commands (host)
6 bytes + image name + 1byte(NULL)
1.- 0x49 (hex), I (ascii). *Image Command.
2.- 0x42 (hex), B (ascii).
3.- X coord high byte (left corner).
4.- X coord low byte.
5.- Y coord high byte (top corner).
6.- Y coord low byte.
7 up to N (file name).
N+1.- 0x00 (hex) NULL ascii.
Responses (device)
1 byte
1.- 0x4F (hex), O (ascii) success ACK or
0x46 (hex), F (ascii) fail NAK.
Description
This command calls an image stored on the micro
SD card and displays it with the given point:
X(16bit), Y(16bit) as top left corner.
If the image is 320x240 pixels this point must be
0,0 if not, the image won’t fit on the screen and
command will fail(depends orientation).
Any size of image could be called, however
user is responsible that the image fits on the
screen with the X,Y top left corner adjustment.
The file name must be up to 250 characters.
Only numbers and letters are recommended to
name the file, some special characters are not
allowed and may not work.
Always a NULL character (0x00)hex must follow
the last character of the file name, in order to
indicate to SMART GPU the end of this file name,
the name to receive must not include the .bmp
extension.
Example (sent commands)
Example 1:
<49,42,00,00,00,00,4B,4F,41,4C,41,00>
Opens the 320X240pixels “KOALA.bmp” file with
top left corner at X:00(dec), Y:00(dec) and displays
it on the screen.