beautypg.com

4 text commands – Matrix Orbital LCD2041 Legacy User Manual

Page 25

background image

Table 9: Example of an ASCII Table

Letter/ Number

Decimal Value

Hex Value

A

65

41

a

97

61

0

48

30

9

57

39

This gives rise to the possibility of confusion when parameters are being set on the display. For example,

the GPO ON and OFF commands use a number to indicate which GPO is being controlled. We’re told that
acceptable values are 0 to 8. All such parameters must use numeric values (i.e., the actual byte values). If
we send the ASCII number 0 by mistake it will actually give the value 48 decimal (30 hex) to the parameter,
which is wrong.

In the tables given in the following sections ASCII characters are shown as ’A’, with single quotes.

6.4 Text Commands

Syntax in the tables below is given in hex, decimal and decimal with ASCII, in that order, one per line.

Table 10: Text Commands

Command

Syntax

Default

Notes

Auto line wrap on

FE 43
254 67
254’C’

off

Enables

line

wrapping

(not

word wrap).

Auto line wrap off

FE 44
254 68
254 ’D’

off

Disables

line

wrapping.

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.

Matrix Orbital

LCD2041

22