beautypg.com

Matrix Orbital LK162A-4T User Manual

Page 23

background image

19

Command Summary

5.3 Poll Key
Press

Dec
Hex
ASCII

254 38

FE 26

■ &

v7.2

Reads the last unread key press from the 10 key display buffer. If another key is stored in the buffer the MSB will
be 1, the MSB will be 0 when the last key press is read. If there are no stored key presses a value of 0 will be
returned. Auto transmit key presses must be turned off for this command to be successful.

Response

Byte

Value of key pressed (MSb determines additional keys to be read).


5.4 Clear Key
Buffer

Dec
Hex
ASCII

254 69

FE 45

■ E

v7.2

Clears all key presses from the key buffer.


5.5 Set Debounce
Time

Dec
Hex
ASCII

254 85

FE 55

■ U

Time
Time
Time

v7.2

Sets the time between a key press and a key read by the display. Most switches will bounce when pressed; the
debounce time allows the switch to settle for an accurate read. Default is 8 representing approximately 52ms.

Time

Byte

Debounce increment (debounce time =

Time

* 6.554ms).

5.6 Set Auto
Repeat Mode

Dec
Hex
ASCII

254 126

FE 7E

DEL

Mode
Mode
Mode

v7.2

Sets key press repeat mode to typematic or hold. In typematic mode if a key press is held, the key value is
transmitted immediately, then 5 times a second after a 1 second delay. In hold mode, the key down value is
transmitted once when pressed, and then the key up value is sent when the key is released. Default is typematic.

Mode

Byte

1 for hold mode or 0 for typematic.


5.7 Auto Repeat
Mode Off

Dec
Hex
ASCII

254 96

FE 60

■ `

v7.2

Turns auto repeat mode off. Default is on (typematic).