beautypg.com

6 appendix; command summary, 1 general, 2 issuing commands – Matrix Orbital LCD2041 Legacy User Manual

Page 23

background image

5.1.6 Set backlight brightness (254 153 [brightness])

This command sets the display’s brightness to [brightness], where [brightness] is a value between 0x00

and 0xFF (between 0 and 255). The higher the number is, the brighter the backlight will appear.

5.1.7 General purpose output on (254 87)

This command turns ON the general purpose output. ON means that the output is pulled low or, ground

via 240ohms.

5.1.8 Read module type

This command will return, over the RS-232 interface in TTL levels only, the model type value of the

module. This command returns a 1-byte hex value. Values for various modules at the time of this publication
are as follows;

Table 7: Module Values

LCD0821 - 0x01

LCD2021 - 0x03

LCD2041 - 0x05

LCD4041 - 0x07

LK202-25 - 0x08

LK204-25 - 0x09

LK404-55 - 0x0A

VFD2021 - 0x0B

VFD2041 - 0x0C

VK204-25PC - 0x0E

VK204-25 - 0x0F

GLC12232 - 0x10

GLC24064 - 0x13

GLK24064-25 - 0x15

GLK12232-25 - 0x22

LK404-AT - 0x31

LK402-12 - 0x33

LK162-12 - 0x34

6 Appendix; Command Summary

6.1 General

The operation of the display is controlled by a simple and consistent command set. Commands control;

Text
Display graphics
Display keypad interface
Miscellaneous operating parameters

6.2 Issuing Commands

Commands are issued to the display by the controller. In a test setup, commands can be issued to

the display by means of a BASIC program, using the chr$( ) function. In the tables below, we’ve shown

Matrix Orbital

LCD2041

20