4 poll key press, 5 clear key buffer, 6 set debounce time – Matrix Orbital GLK12232-25-SM User Manual
Page 42
10.4
Poll Key Press
Syntax
Hexadecimal
0xFE 0x26
Decimal
254 38
ASCII
254 “&”
Description
This command returns any buffered key presses via the serial interface.
The host system must be set up to receive key codes. When the display
receives this command, it will immediately return any buffered key
presses which may have not been read already. If there is more than one
key press buffered, then the high order bit (MSB) of the returned key
code will be set (1). If this is the only buffered key press, then the MSB
will be cleared (0). If there are no buffered key presses, then the
returned code will be 0x00. Please note that to make use of this
command, the “Auto Transmit Key Presses” mode should be off.
NOTE
This command is not available in I
2
C. To read keys in I
2
C mode, one just needs
to address the module and read a byte. No preceding commands are necessary. If there are
no keys pressed the read will result in a 0x00.
Remembered
No
10.5
Clear Key Buffer
Syntax
Hexadecimal
0xFE 0x45
Decimal
254 69
ASCII
254 “E”
Description
This command clears any unread key presses. In a menu application, if
the user presses a key which changes the menu context, any following
key presses may be inaccurate and can be cleared out of the buffer
between menu changes to prevent jumping around the menu tree. It may
also be used, in effect, to reset the keypad in case the host application
resets for whatever reason.
Remembered
No
10.6
Set Debounce Time
Syntax
Hexadecimal
0xFE 0x55 [time]
Decimal
254 85 [time]
ASCII
254 “U” [time]
Matrix Orbital
GLK12232-25-SM
37