Glance of all Commands (Letter Commands)

 

This Color ----for V7 firmware only

 

 

Basic functions

Appearance Decoration

Characters

TT" display text SF" set font
SFF" set font in flash,
SFfset font in a file in flash
SUFsave user font,
TP"  set text position,
ETO" set text offset,
ETB" back to last text position
CScursor on/off

for characters,graphics&images
CL”-clear screen use background color
BGC" set background color
DWWIN" set drawing window
RSTDW" unset drawing window
WINCL" clear drawing window use background
SDset direction
GPset graphic position,
ALIGNtext alignment

 

for characters&graphics
DM" drawing mode
SC" set drawing color (8bit format), 
ESCset drawing color (6-6-6 format), 

Graphics

DPdraw pixel,
LN" draw line
LTdraw line to
DRdraw rectangle
FR" draw filled rectangle,
CCdraw circle
MAmove an area
DIM" display bit image,
SLPset line pattern
TRANSset Graph transparent or not

Images

"EDIM1", "EDIM2", “EDIM3" display color image (256, 65K 262K color)
VIDEOdisplay a video stream
"JPEG"(63) display a JPEG file on the screen
fDPF”(74) search and display next JPEG file on the screen

Flash

Memory

Direct

FLMER”-flash erase, “FLMRD”-flash read, “FLMWR”-flash write, “FLMCS”-run command set in flash,“SFF”-set font in flash

Mini File

4MAT”- format flash chip, will erase all data, 
fDIR”- list all files or a special file
fREAD”- read content from a file
fSAVE”- save content to a file
fDEL”- delete a file
fREN”- rename a file
FLMRS”- reserve a continue memory space for Direct access
fCS”- run commands set in a file
fMODE”- switch flash operating mode
GOTO”- jump to a special point in file or address when running commands set

Serial Port

SI2CA”-Set I2C address, “SB”-set UART baud rate, “DC”-display module configuration

Power Manage

BL”-adjust backlight, “DNALL”-put module in sleep, “DNMCU”-put MCU sleep, “SOO”-turn screen on/off

Screen

Mono

CT”-set contrast

SLCD”-config mono LCD (ST7920, ST7565,KS0108),
"INV"-invert the pixels

SSS”-save splash screen

DSS”-turn splash ON/OFF

SOO”-turn screen on/off

MCD”-send command to screen(obsolated)

MDT”-send data to screen(obsolated)

Other

 

Touch Panel

RPNXY”[I/W/C]-read x,y, I=instant, W=wait touched, C=Click, “TUCHC”- calibrate touch panel, “RDBAT”-read battery voltage, “RDAUX”-read aux pin, “RDTMP”-read chip temperature(obsolated),

EEPROM

WREP”-write data to EEPROM, “RDEP”-read data from EEPROM

Other

DLY”-delay a period; “WHO”- retrieve the screen information(width, height, color depth)

 

Escape commands 

Note: user can choose to use letter commands or escape commands or combine them together, all ESC commands are 2 bytes, first byte must be value of 27 (ESC) and second byte is the index of command. As the result of our test: by using ESCAPE commands can accelerate the average processing speed up to 3%.

e.g.: Letter command: “TT” = ESC command: 27, 01, both are 2 bytes, but for longer letter commands, it will also save some program space for user.

here is the cross reference, the number from TT is 1, and increased 1 after each commands: 

“TT” (1), "ETB" (2), "ETP" (3), "ETO" (4), "ESC" (5), "SI2CA" (6), "SC" (7), "SB" (8), "SD" (9), "SF" (10),

"SSS" (11), "SUF" (12), "SOO" (13), "SLP" (14), "FR" (15), "LN" (16), "LT" (17), "DC" (18), "DIM" (19), "DP" (20),

"DR" (21), "DSS" (22), "DOUT" (23), "TP" (24), "BL" (25), "TRT" (26), "GP" (27), "CL" (28), "CC" (29), "CS" (30),

“CT" (31), “MA" (32), “MCD" (33), "MDT" (34), "DM" (35), "EDIM" (36), "FS" (37), "WREP" (38), "RDEP" (39), "INV" (40),

"DNALL" (41), "DNMCU" (42), "SLCD" (43), "RPNXY" (44), "TUCHC" (45), "RDBAT" (46), "RDAUX" (47), "RDTMP" (48), "FLMER" (49), "FLMRD" (50),

"FLMWR" (51), "FLMCS" (52), "BGC" (53), "DWWIN" (54), "RSTDW" (55), "WINCL" (56), "SPIMD" (57), "FTOB" (58), “DLY” (59), "TRANS" (60),

“VIDEO" (61), “ALIGN” (62), "JPEG"(63), "4MAT"(64), "fDIR"(65), "fREAD"(66), "fSAVE"(67), "fDEL"(68), "fREN"(69), "FLMRS"(70),

"fCS"(71), "fMODE"(72), "GOTO"(73), "fDPF"(74), "WHO"(75)