SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 62
2.5.3 Image JPG SD – 4Ahex - J ascii
Commands (host)
7 bytes + image name + 1byte(NULL)
1.- 0x49 (hex), I (ascii). *Image Command.
2.- 0x4A (hex), J (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.- Scale Factor(1/1, 1/2, 1/4, 1/8).
8 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.
This command is very similar to the BMP SD
command, differences are that this command calls
JPG images and accepts a scale factor of
1/1(0x00), 1/2(0x01), 1/4(0x02), 1/8(0x03).
The scale factor characteristic is suitable to
generate image thumb nails in a Graphic User
Interface.
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 .jpg
extension.