Difference between revisions of "Component: Keypad (Numeric 3x4) (Keypad)"
From Flowcode Help
Jump to navigationJump to search| Line 68: | Line 68: | ||
{{Fcfile|Keypad Door Entry.fcfx.fcfx|Keypad Door Entry}} | {{Fcfile|Keypad Door Entry.fcfx.fcfx|Keypad Door Entry}} | ||
| + | |||
| + | |||
| Line 73: | Line 75: | ||
==Macro reference== | ==Macro reference== | ||
| + | ===WaitPressed=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 86: | Line 89: | ||
| + | ===GetAscii=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 99: | Line 103: | ||
| + | ===GetString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 112: | Line 117: | ||
| + | ===GetNumber=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 125: | Line 131: | ||
| + | ===GetIndex=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
| Line 138: | Line 145: | ||
| + | ===WaitReleased=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Revision as of 11:50, 3 February 2023
| Author | Matrix Ltd |
| Version | 1.0 |
| Category | Keypad |
Contents
Keypad (Numeric 3x4) component
Preset keypad based around the 3 * 4 unit, as used by the Matrix EB014 E-block
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Keypad_Numeric.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Keypad_Numeric.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Basic Example
Keypad Example File demonstrating controlling a door lock.
LED is used to show the pin status controlling the door lock.
Macro reference
WaitPressed
| 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. | |
| Return | |
GetAscii
| GetAscii | |
| Gets the ASCII value for the current keypress. If no key is pressed then the macro returns the value 255. | |
| Return | |
GetString
| 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. | |
| Return | |
GetNumber
| GetNumber | |
| Gets the numeric value for the current keypress. If no key pressed then the macro returns the value 255. | |
| Return | |
GetIndex
| GetIndex | |
| Gets the index value for the current keypress. If no key pressed then the macro returns the value 255. | |
| Return | |
WaitReleased
| 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. | |
| Return | |