beautypg.com

2 issuing commands, 3 text commands – Matrix Orbital GLK12232-25-SM Legacy User Manual

Page 34

background image

9.2 Issuing Commands

Commands are issued to the display by the micro-controller. In a test setup, commands can be issued

to the display 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), the user could issue the command to clear the screen on the

display by including the line:

CDFEHG£I¢PF(QR3H ¢S1TVUW2£'XFYa`R3$ £SbTcUWdd)Y

in the BASIC program.

Or, with C the user could (using Zcomm serial library)

e¥f¢gHB£Bh(7i7pq¢SF$¡1"f¢gB£B1r¢s¡¢"hU©%¥9£4¢"bYa`

e¥f¢gHB£Bh(7i7pq¢SF$¡1"f¢gB£B1r¢s¡¢"hUtvuwtxYa`

9.3 Text Commands

Table 9: Text Commands

Command

Syntax

Default

Notes

Auto scroll on

E 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.

Set text insertion point

FE 47 [col] [row] 254 71

[col] [row] 254 ’G’ [col]

[row]

n/a

Sets text insertion

point using the

base size of the

current font

Matrix Orbital

GLK12232-25-SM

30