6 miscellaneous commands – Matrix Orbital LCD2041 Legacy User Manual

Page 26

Advertising
background image

LCD2041 rev 2

26

6.6 Miscellaneous Commands

Table 6-3 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]

0x80
128

Sets display contrast. Compensates 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 [minutes]. If [minutes]
= 0 backlight will stay on permanently.

Backlight off

FE 46
254 70
254 'F'

on

Turns off backlight.

General purpose
output off

FE 56
254 86
254 'V'

off

Turns the general purpose output OFF.

General purpose
output on

FE 57
254 87
254 'W'

off

Turns the general purpose output ON.

Read module type

FE 37
254 55
254 '7'

see table

See table in section 5.1.7. This command
returns a 1-byte hex value.

Advertising