Difference between revisions of "Component: LED (BL0167) (E-blocks 2)"
From Flowcode Help
Jump to navigationJump to search| Line 17: | Line 17: | ||
| ==Component Source Code== | ==Component Source Code== | ||
| − | Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/ | + | 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/ | + | 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] | 
| ==Detailed description== | ==Detailed description== | ||
| Line 49: | Line 49: | ||
| ''<span style="color:red;">No additional examples</span>'' | ''<span style="color:red;">No additional examples</span>'' | ||
| + | |||
| + | |||
Revision as of 13:10, 7 February 2023
| Author | Matrix TSL | 
| Version | 1.0 | 
| Category | E-blocks 2 | 
Contents
LED component
LED component to drive the E-blocks 2 BL0167 LED board. Provides eight individually addressable LEDs.
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
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 | 
|   | Colour | 
