Difference between revisions of "Component: IO Expander (BL0155) (E-blocks 2)"
From Flowcode Help
Jump to navigationJump to search| Line 49: | Line 49: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
| Line 55: | Line 57: | ||
| ==Macro reference== | ==Macro reference== | ||
| + | ===ReadPort=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 78: | Line 81: | ||
| + | ===ConfigureInversion=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 101: | Line 105: | ||
| + | ===ReadPortPin=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 124: | Line 129: | ||
| + | ===WritePortPin=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 152: | Line 158: | ||
| + | ===WritePort=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 180: | Line 187: | ||
| + | ===ConfigurePullups=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 203: | Line 211: | ||
| + | ===ReadRegister=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 221: | Line 230: | ||
| + | ===WriteRegister=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 244: | Line 254: | ||
| + | ===Initialise=== | ||
| {| 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
IO Expander component
Provides 16 digital input/output pins arranged into two 8-bit E-block 2 ports using a SPI bus connection.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBlocks2_IOEXP_BL0155.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBlocks2_IOEXP_BL0155.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
ReadPort
ConfigureInversion
ReadPortPin
WritePortPin
WritePort
ConfigurePullups
ReadRegister
|   | ReadRegister | 
| Reads an 8-bit value from a register on the I/O expander device. | |
|  - BYTE | Address | 
| Register address to write to. Range: 0-15 | |
|  - BYTE | Return | 
WriteRegister
|   | WriteRegister | 
| Writes an 8-bit value to a register on the I/O expander device. | |
|  - BYTE | Address | 
| Register address to write to. Range: 0-15 | |
|  - BYTE | Value | 
| Value to write. Range: 0-255 | |
|  - VOID | Return | 
Initialise
|   | Initialise | 
|  - VOID | Return | 






