Difference between revisions of "Component: Keypad (BL0138) (BL0138) (E-blocks 2)"
From Flowcode Help
Jump to navigationJump to searchLine 52: | Line 52: | ||
''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
+ | |||
+ | |||
Line 57: | Line 59: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===WaitPressed=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 70: | Line 73: | ||
+ | ===GetAscii=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 83: | Line 87: | ||
+ | ===GetString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 96: | Line 101: | ||
+ | ===GetNumber=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 109: | Line 115: | ||
+ | ===GetIndex=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 122: | Line 129: | ||
+ | ===WaitReleased=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:49, 3 February 2023
Author | Matrix TSL |
Version | 1.0 |
Category | E-blocks 2 |
Contents
Keypad (BL0138) component
Keypad component to drive the E-blocks 2 BL0138 Keypad board. Provides twelve individual raster scanned switches.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBlocks2_KeyPad_BL0138.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBlocks2_KeyPad_BL0138.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
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 |