Component: Keypad (BL0138) (E-blocks 2)
Author | Matrix TSL |
Version | 1.0 (Release) |
Category | E-blocks 2 |
Contents
Keypad (BL0138) component
Keypad component to drive the E-blocks 2 BL0138 Keypad board. Provides twelve individual rasta scanned switches.
Examples
No additional examples
Downloadable macro reference
WaitPressed
Blocking call that waits for one of the keys on the keypad to be pressed.
The index of the key that was pressed is passed back to the user.
Parameters
- This macro has no parameters
Return value
GetAscii
Gets the ASCII value for the current keypress.
If no key is pressed then the macro returns the value 255.
Parameters
- This macro has no parameters
Return value
GetString
Gets the ASCII value for the current keypress and returns in the form of a string.
If no key pressed then the macro returns a null string.
Parameters
- This macro has no parameters
Return value
GetNumber
Gets the numeric value for the current keypress.
If no key pressed then the macro returns the value 255.
Parameters
- This macro has no parameters
Return value
GetIndex
Gets the index value for the current keypress.
If no key pressed then the macro returns the value 255.
Parameters
- This macro has no parameters
Return value
WaitReleased
Blocking call that waits for the keys on the keypad to be released.
If no key is pressed then the function will return immediatley.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Connection Type
This property is of type Fixed list of ints and can be referenced with the variable name ConnType.
No additional information
Port
This property is of type Digital port byte and can be referenced with the variable name Port.
No additional information