496
Platforms
©2000-2008 Tibbo Technology Inc.
.Repeatdelay Property
Function:
Defines (in 10ms increments) the time period at which
the
event with 4-
PL_KP_EVENT_REPEATPRESSED event code will be
generated once the key reaches the "longpressed" state
and remains pressed.
Type:
Byte
Value Range:
0-254. Default= 50 (500ms).
See Also:
Details
This property can only be changed when the keypad is disabled (
= 0-
NO). Setting the property to 0 means that the on_kp event with 4-
PL_KP_EVENT_REPEATPRESSED event code will never be generated.
.Returnlinesmapping Property
Function:
Defines the list of up to 8 I/O lines that will serve as
return lines of the keypad matrix.
Type:
String
Value Range:
Up to eight comma-separated I/O line numbers can be
listed. Default= "".
See Also:
Possible Keypad Configurations
,
Details
This property should contain a comma-separated list of I/O lines numbers, for
example: "24, 26, 27". Line numbers correspond to those of the pl_io_num enum.
This enum is platform-specific. The declarations for the pl_io_num can be found in
the "Platform-dependent Constants" section of your platform documentation.
The kp.returnlinesmapping string should only contain a list of decimal numbers.
That is, use "24" and not "24- PL_IO_NUM_24". Only numerical characters are
processed anyway -- writing "24- PL_IO_NUM_24,25-PL_IO_NUM_25" will set this
property to "24,25". You can, of course, write str(PL_IO_","+str
(PL_IO_NUM_25) as well.
The order in which you list the return lines does matter -- this is the order in which
the lines will be numbered. All keys connected to the first return line will have their
return field (bits 4-0) of the key code set to 0. For keys connected to the second
line this field will contain 1, third line -- 2, and so on.
, all intended return lines should be
configured as inputs by your application (see
).
This property can only be changed when the keypad is disabled (
= 0-
NO). Setting the property to "" means that the keypad will have no return lines. A
494
486
487
492
484
487
497
368
372
370
492