7 set auto repeat mode – Matrix Orbital GLK24064-25 Legacy User Manual
Page 41
Description
This command sets the time between key press and key read. All key
types with the exception of latched piezo switches will ’bounce’ for a
varying time, depending on their physical characteristics. The [time]
value is in increments of 6.554ms. The default debounce time for the
module is 8 (about 52ms), which is adequate for most membrane
keypads.
Remembered
Yes
Default
8
9.7
Set Auto Repeat Mode
Syntax
Hexadecimal
0xFE 0x7E [mode]
Decimal
254 126 [mode]
ASCII
254 “~” [mode]
Parameters
Parameter
Length
Description
mode
1
Auto Repeat Mode (0: Resend Key
, 1: Key Up/Down)
Description
Two auto repeat modes are available and are set via the same command:
• Resend Key Mode: 0x00
• Key Up/Down Mode: 0x01
Resend Key Mode This mode is similar to the action of a keyboard on
a PC. In this mode, when a key is held down, the key code is
transmitted immediately followed by a 1/2 second delay. After
this delay, key codes will be sent via the RS-232 interface at a rate
of about 5 codes per second. This mode has no effect if polling or
if using the I
2
C interface.
Key Up/Down Mode This mode may be used when the typematic
parameters of the “Resend Key Code” mode are unacceptable or
if the unit is being operated in polled mode. The host system
detects the press of a key and simulates an auto repeat inside the
host system until the key release is detected. In this mode, when a
key is held down, the key code is transmitted immediately and no
other codes will be sent until the key is released. On the release of
the key, the key release code transmitted will be a value equal to
the key down code plus 20 hex.
Remembered
Yes
Matrix Orbital
GLK24064-25
36