beautypg.com

6 miscellaneous commands – Matrix Orbital LCD2041 Legacy User Manual

Page 28

background image

6.6 Miscellaneous Commands

Table 14: Miscellaneous Commands

Command

Syntax

Default

Notes

Clear display

FE 58
254 88
254 ’X’

n/a

Clears screen of
text and graphics,
places text cursor
at top left.

Set contrast

FE 50 [contrast]
254 80 [contrast]
254 ’P’ [contrast]

0x80128

Sets display con-
trast.

Compen-

sates for viewing
angle.

Contrast

is a value between
0 and 255 (hex 0
to FF). Larger =
darker.

Backlight on

FE 42 [minutes]
254 66 [minutes]
254 ’B’ [minutes]

on

Backlight

will

stay on for [min-
utes]. If [minutes]
=

0

backlight

will

stay

on

permanently.

Backlight off

FE 46
254 70
254 ’F’

on

Turns off back-
light.

General purpose output off

FE 56 [gpo #]
254 86 [gpo #]
254 ’V’ [gpo #]

off

Turns

general

purpose

output

OFF.

General purpose output on

FE 57 [gpo #]
254 87 [gpo #]
254 ’W’ [gpo #]

off

Turns

general

purpose

output

ON.

Read module type

FE 37
254 55
254 ’7’

see table

This command re-
turns a 1-byte hex
value.

Matrix Orbital

LCD2041

25