Difference between revisions of "Component: LED (BL0167) (E-blocks 2)"
From Flowcode Help
Jump to navigationJump to search| (7 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
| |- | |- | ||
| | width="20%" style="color:gray;" | Version | | width="20%" style="color:gray;" | Version | ||
| − | |  | + | | 7.7 | 
| |- | |- | ||
| | width="20%" style="color:gray;" | Category | | width="20%" style="color:gray;" | Category | ||
| Line 15: | Line 15: | ||
| LED component to drive the E-blocks 2 BL0167 LED board. Provides eight individually addressable LEDs. | LED component to drive the E-blocks 2 BL0167 LED board. Provides eight individually addressable LEDs. | ||
| − | == | + | ==Version information== | 
| + | |||
| + |  Library Version, Component Version, Date, Author, Info | ||
| + |  7, 7.0, 23-04-25, MW, Hidden propert to change LED colours as the LEDS on the BL0167 are red | ||
| + |   8, 7.0, 08-05-25, BR, Added autodetect port on Ev_PostInitialise | ||
| − | |||
| ==Detailed description== | ==Detailed description== | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 28: | Line 37: | ||
| ==Examples== | ==Examples== | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 37: | Line 52: | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| + | ==Macro reference== | ||
| + | ===AllOff=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AllOff''' | 
| |- | |- | ||
| − | | colspan="2" |  | + | | colspan="2" | Switches Off All LEDs.  | 
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| − | |||
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 142: | Line 78: | ||
| + | ===AllOn=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AllOn''' | 
| |- | |- | ||
| − | | colspan="2" | Switches  | + | | colspan="2" | Switches On All LEDs.  | 
| |- | |- | ||
| |- | |- | ||
| Line 155: | Line 92: | ||
| − | + | ===BarGraph=== | |
| − | |||
| − | == | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 199: | Line 111: | ||
| + | ===LEDOff=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOff''' | 
| |- | |- | ||
| − | | colspan="2" | Turns  | + | | colspan="2" | Turns off the selected LED leaving the other LEDs as was.  | 
| |- | |- | ||
| |- | |- | ||
| Line 210: | Line 123: | ||
| | width="90%" | Index | | width="90%" | Index | ||
| |- | |- | ||
| − | | colspan="2" | LED to switch  | + | | colspan="2" | LED to switch off. Range: 0-7  | 
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 217: | Line 130: | ||
| + | ===LEDOn=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | ||
| − | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | ''' | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOn''' | 
| |- | |- | ||
| − | + | | colspan="2" | Turns on the selected LED leaving the other LEDs as was.  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | | colspan="2" | Turns  | ||
| |- | |- | ||
| |- | |- | ||
| Line 241: | Line 142: | ||
| | width="90%" | Index | | width="90%" | Index | ||
| |- | |- | ||
| − | | colspan="2" | LED to switch  | + | | colspan="2" | LED to switch on. Range: 0-7  | 
| |- | |- | ||
| | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - VOID | ||
| Line 248: | Line 149: | ||
| + | ===PointGraph=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 266: | Line 168: | ||
| + | ===WriteValue=== | ||
| {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
| |- | |- | ||
| Line 282: | Line 185: | ||
| | width="90%" style="border-top: 2px solid #000;" | ''Return'' | | width="90%" style="border-top: 2px solid #000;" | ''Return'' | ||
| |} | |} | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| Line 314: | Line 202: | ||
| | width="10%" align="center" | [[File:Fc9-type-19-icon.png]] | | width="10%" align="center" | [[File:Fc9-type-19-icon.png]] | ||
| | width="90%" | Port | | width="90%" | Port | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| |- | |- | ||
| | colspan="2" |   | | colspan="2" |   | ||
| |} | |} | ||
| + | |||
| + | ==Component Source Code== | ||
| + | |||
| + | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_EBlocks2_LED_BL0167.fcfx FC_Comp_Source_EBlocks2_LED_BL0167.fcfx] | ||
| + | |||
| + | Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_EBlocks2_LED_BL0167.fcfx FC_Comp_Source_EBlocks2_LED_BL0167.fcfx] | ||
Latest revision as of 08:58, 9 June 2025
| Author | Matrix TSL | 
| Version | 7.7 | 
| Category | E-blocks 2 | 
Contents
LED component
LED component to drive the E-blocks 2 BL0167 LED board. Provides eight individually addressable LEDs.
Version information
Library Version, Component Version, Date, Author, Info 7, 7.0, 23-04-25, MW, Hidden propert to change LED colours as the LEDS on the BL0167 are red 8, 7.0, 08-05-25, BR, Added autodetect port on Ev_PostInitialise
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
AllOff
|   | AllOff | 
| Switches Off All LEDs. | |
|  - VOID | Return | 
AllOn
|   | AllOn | 
| Switches On All LEDs. | |
|  - VOID | Return | 
BarGraph
|   | BarGraph | 
| Turns on the first N elements of the array - for generating bar graph metes etc. | |
|  - BYTE | Length | 
| How many items to light up. Range 0-8 | |
|  - VOID | Return | 
LEDOff
|   | LEDOff | 
| Turns off the selected LED leaving the other LEDs as was. | |
|  - BYTE | Index | 
| LED to switch off. Range: 0-7 | |
|  - VOID | Return | 
LEDOn
|   | LEDOn | 
| Turns on the selected LED leaving the other LEDs as was. | |
|  - BYTE | Index | 
| LED to switch on. Range: 0-7 | |
|  - VOID | Return | 
PointGraph
|   | PointGraph | 
| Turns on the Indexed LED and turns all others off. Does nothing if the index is out of range. | |
|  - BYTE | Index | 
| The LED to light. Range: 0-7 | |
|  - VOID | Return | 
WriteValue
|   | WriteValue | 
| Write a number which is presented on the LEDs in binary. | |
|  - BYTE | Value | 
| Value to write to the LEDs. Range: 0-255 | |
|  - VOID | Return | 
Property reference
|   | Properties | 
|   | Output Mode | 
|   | Port | 
Component Source Code
Please click here to download the component source project: FC_Comp_Source_EBlocks2_LED_BL0167.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_EBlocks2_LED_BL0167.fcfx
