The commands set is a commands sequence which contain one or more commands and data, that can do complicated drawing functions on the screen. Save the commands set in the flash chip or MCU flash, run the commands set when you need anytime later. Using commands set save lot of hardware and software resources.
YES: Only setting and drawing commands (draw characters, graphics and images) can be put in command set. NO: Commands to read data from module and write data to EEPROM and flash can’t be embedded in commands set.
CHANGE:
Few commands are little bit different when used in commands set than regular:
Commands : DIM, EDIM1, EDIM2, EDIM3, these 4 commands will show picture on screen, in regular usage, the top-left coordinate (X0,Y0) will follow the command, then width, height and image data. But when it in command set, the X0,Y0 value need to use “GP” command to set it prior, the width and height will follow to the 4 commands directly, this change give user the ability to display same images at different location on screen when call child commands set from parent commands set.
Command: LT. Line to command accept destination coordinate in regular usage, but it accept the coordinate offset (value range -127~127) when used in command set.
eg.: “GP\x0A\x10TTHello user\x00 LN\x00\x12\x30\x12 LT\xD0\x01 LT\x30\x00\xFF”, this commands set display “Hello user” at (10,16) position, then draw line from (0,18) to (48,18) by command “LN\x00\x12\x30\x12” then to (0,19) by command “LT\xD0\x01”(note: 0xD0=-48) then to (48,19) by command “LT\x30\x00”. and end with “\xFF”. the hex value of \xFF is 255 in dec.
The bellow digital photo frame was use the commands set to loop all .jpg file in flash memory: