.Mode Property

Top  Previous  Next

Function:

Specifies the type of the keypad attached to your TiOS device.

Type:

Enum (no_yes, byte)

Value Range:

0- PL_KP_MODE_MATRIX (default): The keypad is of the matrix type.

1- PL_KP_MODE_BINARY: The keypad is of the binary type.

See Also:

Preparing the Keypad for Operation

 


Details

Matrix keypads are defined by a number of scan and return lines (see kp.scanlinesmapping and kp.returnlinesmapping).

Binary keypads only need return lines and directly output the binary codes of keys. The kp.idlecode property must match the code sent by your binary keypad when no key is pressed.

This property can only be changed when the keypad is disabled (kp.enabled= 0- NO).