SmartGPU2-LCD480X320Touch-CommandSet
SMART GPU 2 3.5” TOUCH
Command Set
Vizic Technologies ©2014 55
2.5 Image Commands
The SMART GPU 2, unlike other graphic development tools in the market, is the
only embedded graphic processor capable of managing files directly in
FAT/FAT12/FAT16 or FAT32 file systems without any special program/interface or
micro SD rare formats. It is fully compatible with any PC.
Smart GPU 2 can manage images, so any file with .bmp or .jpg extension will be
easily opened and displayed.
A maximum of 32GBs micro SD memory card is supported, allowing storing
thousands of full screen images.
Briefly Summary of Commands in this section:
*All of Those next commands always begin with the byte ‘I’-49hex, as
they are Image commands, followed by the next parameters/bytes.
• Draw Image/Icon – 49hex ‘I’
• Image BMP SD – 42hex ‘B’
• Image JPG SD – 4Ahex ‘J’
• Memory Read – 4Dhex ‘M’
• Screenshot BMP – 53hex ‘S’
A complete tutorial on how to load images to the SD card is explained on the
“SmartGPU2LCD320x240Datasheet.pdf” file, at the SD card file management
section.
The colour parameter needed on Draw Image/Icon command 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