beautypg.com

Miscellaneous commands, 1command list, 1clear display (254 88) – Matrix Orbital LK204-25 Legacy User Manual

Page 23: 2set contrast (254 80 [contrast]), 3backlight on (254 66 [minutes]), 4backlight off (254 70), 5general purpose output off (254 86 [gpo #]), 6general purpose output on (254 87 [gpo #])

background image

6.Miscellaneous Commands

The commands listed in this chapter don't readily fit in any of the other categories, or are used in more than
one category. Before issuing commands to the LK204-25 please read sections 7.2 and 7.3.

6.1Command List

6.1.1Clear display (254 88)

This command clears the display and resets the text insertion point to the top left of the screen.

6.1.2Set contrast (254 80 [contrast])

This command sets the display's contrast to [contrast], where [contrast] is a value between 0x00 and 0xFF
(between 0 and 255). Lower values cause "on" elements in the display area to appear lighter, while higher
values cause "on" elements to appear darker.

Lighting conditions will affect the actual value used for optimal viewing. Individual LK204-25 modules will
also differ slightly from each other in appearance. In addition, values for optimal viewing while the LK204-
25 backlight is on may differ from values used when backlight is off.

6.1.3Backlight on (254 66 [minutes])

This command turns on the backlight for a time of [minutes] minutes. If [minutes] is zero (0), the backlight
will remain on indefinitely. Note: the factory default for backlight is on.

6.1.4Backlight off (254 70)

This command turns the backlight of the LK204-25 off.

6.1.5General purpose output off (254 86 [gpo #])

This command turns OFF any of the General Purpose Outputs (see section 2.2 for a description of the
GPOs). [gpo #] is 1 to 6. Note that OFF means that the output floats.

6.1.6General purpose output on (254 87 [gpo #])

This command turns ON any of the General Purpose Outputs. [gpo #] is 1 to 6. ON means that the output is
pulled low (ground via 240 ohms).

LK204-25 rev 1

23