Difference between revisions of "Component: Keypad (4x4) (Keypad)"
From Flowcode Help
Jump to navigationJump to search|  (XML import) | |||
| Line 1: | Line 1: | ||
| − | + | {| style="width:50%" | |
| − | |||
| − | {|  | ||
| |- | |- | ||
| − | | width="20%" style="color: gray;" | Author | + | | width="20%" style="color:gray;" | Author | 
| | Matrix TSL | | Matrix TSL | ||
| |- | |- | ||
| − | | width="20%" style="color: gray;" | Version | + | | width="20%" style="color:gray;" | Version | 
| − | | 1.0  | + | | 1.0 | 
| |- | |- | ||
| − | | width="20%" style="color: gray;" | Category | + | | width="20%" style="color:gray;" | Category | 
| | Keypad | | Keypad | ||
| |} | |} | ||
| − | + | ==Keypad component== | |
| − | == | ||
| Preset keypad based around the 4 * 4 unit. | Preset keypad based around the 4 * 4 unit. | ||
| − | == | + | ==Component Pack== | 
| − | |||
| + | BASICIO | ||
| − | == | + | ==Detailed description== | 
| − | + | ''No detailed description exists yet for this component'' | |
| − | |||
| − | + | ==Examples== | |
| − | |||
| + | ''<span style="color:red;">No additional examples</span>'' | ||
| − | |||
| − | + | ==Downloadable macro reference== | |
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WaitPressed''' | ||
| + | |- | ||
| + | | colspan="2" | 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.  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| − | |||
| − | |||
| − | ''' | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetAscii''' | ||
| + | |- | ||
| + | | colspan="2" | Gets the ASCII value for the current keypress. If no key is pressed then the macro returns the value 255.  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| − | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetString''' | ||
| + | |- | ||
| + | | colspan="2" | Gets the ASCII value for the current keypress and returns in the form of a string. If no key pressed then the macro returns the value 255.  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-string-icon.png]] - STRING | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| − | |||
| − | :[[ | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetNumber''' | ||
| + | |- | ||
| + | | colspan="2" | Gets the numeric value for the current keypress. If no key pressed then the macro returns the value 255.  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| − | = | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | 
| − | + | |- | |
| − | + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | |
| − | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetIndex''' | |
| − | + | |- | |
| − | + | | colspan="2" | Gets the index value for the current keypress. If no key pressed then the macro returns the value 255.  | |
| − | + | |- | |
| − | + | |- | |
| − | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-u8-icon.png]] - BYTE | |
| − | + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | |
| − | :[[ | + | |} | 
| − | |||
| − | |||
| − | = | ||
| − | |||
| − | |||
| − | ''' | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | Gets the index value for the current keypress. If no key pressed then the macro returns the value 255. | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | :[[ | ||
| − | |||
| − | |||
| − | = | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| + | |- | ||
| + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WaitReleased''' | ||
| + | |- | ||
| + | | colspan="2" | Blocking call that waits for the keys on the keypad to be released. If no key is pressed then the function will return immediatley.  | ||
| + | |- | ||
| + | |- | ||
| + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| + | |} | ||
| − | |||
| − | |||
| ==Property reference== | ==Property reference== | ||
| − | |||
| − | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
| − | + | |- | |
| − | Pin for the first column of keys. | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]] | 
| − | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''   | |
| − | Columns are counted from left to right. | + | |- | 
| − | + | |- | |
| − | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] | |
| − | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''  | |
| − | + | |- | |
| − | + | |- | |
| − | Pin for the second column of keys. | + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | 
| − | + | | width="90%" | Column 1 | |
| − | Columns are counted from left to right. | + | |- | 
| − | + | | colspan="2" | Pin for the first column of keys. Columns are counted from left to right.  | |
| − | + | |- | |
| − | + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | |
| − | + | | width="90%" | Column 2 | |
| − | + | |- | |
| − | Pin for the third column of keys. | + | | colspan="2" | Pin for the second column of keys. Columns are counted from left to right.  | 
| − | + | |- | |
| − | Columns are counted from left to right. | + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | 
| − | + | | width="90%" | Column 3 | |
| − | + | |- | |
| − | + | | colspan="2" | Pin for the third column of keys. Columns are counted from left to right.  | |
| − | + | |- | |
| − | + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | |
| − | Pin for the fourth column of keys. | + | | width="90%" | Column 4 | 
| − | + | |- | |
| − | Columns are counted from left to right. | + | | colspan="2" | Pin for the fourth column of keys. Columns are counted from left to right.  | 
| − | + | |- | |
| − | + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | |
| − | + | | width="90%" | Row 1 | |
| − | + | |- | |
| − | + | | colspan="2" | Pin for the first row of keys. Columns are counted from top to bottom by default - they can be counted from bottom to top by changing the 'First Row' property in the 'Dimensions' section.  | |
| − | Pin for the first row of keys. | + | |- | 
| − | + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | |
| − | Columns are counted from top to bottom by default - they can be counted from bottom to top | + | | width="90%" | Row 2 | 
| − | + | |- | |
| − | by changing the 'First Row' property in the 'Dimensions' section. | + | | colspan="2" | Pin for the second row of keys. Columns are counted from top to bottom by default - they can be counted from bottom to top by changing the 'First Row' property in the 'Dimensions' section.  | 
| − | + | |- | |
| − | + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | |
| − | + | | width="90%" | Row 3 | |
| − | + | |- | |
| − | + | | colspan="2" | Pin for the third row of keys. Columns are counted from top to bottom by default - they can be counted from bottom to top by changing the 'First Row' property in the 'Dimensions' section.  | |
| − | Pin for the second row of keys. | + | |- | 
| − | + | | width="10%" align="center" | [[File:Fc9-type-5-icon.png]] | |
| − | Columns are counted from top to bottom by default - they can be counted from bottom to top | + | | width="90%" | Row 4 | 
| − | + | |- | |
| − | by changing the 'First Row' property in the 'Dimensions' section. | + | | colspan="2" | Pin for the fourth row of keys. Columns are counted from top to bottom by default - they can be counted from bottom to top by changing the 'First Row' property in the 'Dimensions' section.  | 
| − | + | |- | |
| − | + | | width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]] | |
| − | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''  | |
| − | + | |- | |
| − | + | |} | |
| − | Pin for the third row of keys. | ||
| − | |||
| − | Columns are counted from top to bottom by default - they can be counted from bottom to top | ||
| − | |||
| − | by changing the 'First Row' property in the 'Dimensions' section. | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | Pin for the fourth row of keys. | ||
| − | |||
| − | Columns are counted from top to bottom by default - they can be counted from bottom to top | ||
| − | |||
| − | by changing the 'First Row' property in the 'Dimensions' section. | ||
Revision as of 16:20, 7 January 2022
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | Keypad | 
Contents
Keypad component
Preset keypad based around the 4 * 4 unit.
Component Pack
BASICIO
Detailed description
No detailed description exists yet for this component
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. | |
|  - BYTE | Return | 
|   | GetAscii | 
| Gets the ASCII value for the current keypress. If no key is pressed then the macro returns the value 255. | |
|  - BYTE | Return | 
|   | 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 the value 255. | |
|  - STRING | Return | 
|   | GetNumber | 
| Gets the numeric value for the current keypress. If no key pressed then the macro returns the value 255. | |
|  - BYTE | Return | 
|   | GetIndex | 
| Gets the index value for the current keypress. If no key pressed then the macro returns the value 255. | |
|  - BYTE | Return | 
|   | 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. | |
|  - VOID | Return | 



