beautypg.com

11 keypad – Matrix Orbital GLK24064-25 User Manual

Page 45

background image

40

Command Summary

6.11 Keypad

11.1 Auto
Transmit Key
Presses On

Dec
Hex
ASCII

254 65

FE 41

■ A

v8.0

Key presses are automatically sent to the host when received by the display. Use this mode for I2C transactions.


11.2 Auto
Transmit Key
Presses Off

Dec
Hex
ASCII

254 79

FE 4F

■ O

v8.0

Key presses are held in the 10 key buffer to be polled by the host using the Poll Key Press command. Default is
Auto Transmit on.

11.3 Poll
Key Press

Dec
Hex
ASCII

254 38

FE 26

■ &

v8.0

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, do not use with I

2

C.

Response

Byte

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


11.4 Clear
Key Buffer

Dec
Hex
ASCII

254 69

FE 45

■ E

v8.0

Clears all key presses from the key buffer.


11.5 Set
Debounce Time

Dec
Hex
ASCII

254 85

FE 55

■ U

Time
Time
Time

v8.0

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).

11.6 Set Auto
Repeat Mode

Dec
Hex
ASCII

254 126

FE 7E

DEL

Mode
Mode
Mode

v8.0

Sets key press repeat mode to typematic or hold. In typematic mode if a key press is held, by default 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.



This manual is related to the following products: