Appendix: command summary, 1 general, 2 issuing commands – Matrix Orbital GLK12232-25-SM Legacy User Manual
Page 31: 3 text commands

31
8. Appendix: Command Summary
8.1 General
The operation of the GLK12232-25-SM is controlled by a simple and consistent command set. Commands
control
text display
graphics display
keypad interface
the GLK12232-25-SM file system
miscellaneous operating parameters
This chapter includes summary tables of all commands. Individual commands are discussed in detail in
Chapters 3 to 7.
8.2 Issuing Commands
Commands are issued to the GLK12232-25-SM by the controller. In a test setup, commands can be issued
to the GLK12232-25-SM by means of a BASIC program, using the chr$( ) function. In the tables below,
we've shown commands in hex, ASCII and decimal form. All commands begin with the prefix character
0xFE (254 decimal). These commands are issued on the serial communications link (I
2
C or RS-232) at the
currently defined baud rate.
For example (using BASIC in a test setup), you could issue the command to clear the screen on the
GLK12232-25-SM by including the line:
PRINT#1,chr$(254);chr$(88)
in your BASIC program. Or with C you could (using Zcomm serial library)
ZComm1->WriteCommByte(0xfe);
ZComm1->WriteCommByte('X');
8.3 Text Commands
See Chapter 3 for command descriptions.
Table 8-1 Text Commands
Command Syntax
Default
Notes
Auto scroll on
FE 51
254 81
254 'Q'
off
Enables scroll at bottom of screen. Text will
push display up one line to make room for new
line.
Auto scroll off
FE 52
254 82
254 'R'
off
Disables auto scroll. Text will wrap to top left
and overwrite existing text.