beautypg.com

5 miscellaneous commands, 1 command list – Matrix Orbital LCD2041 Legacy User Manual

Page 22

background image

txUart.sendByte(0);
txUart.sendByte(0x00); //display custom character 0

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.

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 display modules will also differ slightly from each other in appearance. In
addition, values for optimal viewing while the display 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. The factory default for backlight is on.

5.1.4 Backlight off (254 70)

This command turns the backlight of the display off.

5.1.5 General purpose output off (254 86)

This command turns OFF any of the general purpose outputs. [gpo #] is 1 to 8. Please note that OFF

means the GPO pin floats (high impedance).

Matrix Orbital

LCD2041

19