Miscellaneous commands, 1 command list – Matrix Orbital LCD2041 Legacy User Manual
Page 20

LCD2041 rev 2
20
5. 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 LCD2041 please read sections 6.2 and 6.3.
5.1 Command List
5.1.1 Clear display (254 88)
This command clears the display and resets the text insertion point to the top left of the screen.
5.1.2 Set 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 LCD2041 modules will
also differ slightly from each other in appearance. In addition, values for optimal viewing while the
LCD2041 backlight is on may differ from values used when backlight is off.
5.1.3 Backlight 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.
5.1.4 Backlight off (254 70)
This command turns the backlight of the LCD2041 off.
5.1.5 General purpose output off (254 86)
This command turns OFF the General Purpose Output (see section 0 for a description of the GPO). OFF
means that the "–" side of the output floats.
5.1.6 General purpose output on (254 87)
This command turns ON the General Purpose Output. ON means that the output is pulled low (ground via
240 ohms).