Jump to content

Component: LED (BL0167) (E-blocks 2): Difference between revisions

From Flowcode Help
No edit summary
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(5 intermediate revisions by the same user not shown)
Line 66: Line 66:


===AllOff===
===AllOff===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AllOff'''
| width="90%" class="mtx-class-macrohead" | '''AllOff'''
|-
|-
| colspan="2" | Switches Off All LEDs. 
| colspan="2" | Switches Off All LEDs. 
Line 80: Line 80:


===AllOn===
===AllOn===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''AllOn'''
| width="90%" class="mtx-class-macrohead" | '''AllOn'''
|-
|-
| colspan="2" | Switches On All LEDs. 
| colspan="2" | Switches On All LEDs. 
Line 94: Line 94:


===BarGraph===
===BarGraph===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''BarGraph'''
| width="90%" class="mtx-class-macrohead" | '''BarGraph'''
|-
|-
| colspan="2" | Turns on the first N elements of the array - for generating bar graph metes etc. 
| colspan="2" | Turns on the first N elements of the array - for generating bar graph metes etc. 
Line 113: Line 113:


===LEDOff===
===LEDOff===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOff'''
| width="90%" class="mtx-class-macrohead" | '''LEDOff'''
|-
|-
| colspan="2" | Turns off the selected LED leaving the other LEDs as was. 
| colspan="2" | Turns off the selected LED leaving the other LEDs as was. 
Line 132: Line 132:


===LEDOn===
===LEDOn===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOn'''
| width="90%" class="mtx-class-macrohead" | '''LEDOn'''
|-
|-
| colspan="2" | Turns on the selected LED leaving the other LEDs as was. 
| colspan="2" | Turns on the selected LED leaving the other LEDs as was. 
Line 151: Line 151:


===PointGraph===
===PointGraph===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PointGraph'''
| width="90%" class="mtx-class-macrohead" | '''PointGraph'''
|-
|-
| colspan="2" | Turns on the Indexed LED and turns all others off. Does nothing if the index is out of range. 
| colspan="2" | Turns on the Indexed LED and turns all others off. Does nothing if the index is out of range. 
Line 170: Line 170:


===WriteValue===
===WriteValue===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteValue'''
| width="90%" class="mtx-class-macrohead" | '''WriteValue'''
|-
|-
| colspan="2" | Write a number which is presented on the LEDs in binary. 
| colspan="2" | Write a number which is presented on the LEDs in binary. 
Line 190: Line 190:
==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
Line 206: Line 206:
| colspan="2" |  
| colspan="2" |  
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Colour
| width="90%" class="mtx-class-propfolder" | Colour
|-
|-
|-
|-

Latest revision as of 14:36, 13 July 2026

Author Matrix TSL
Version 7.7
Category E-blocks 2


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, Modified component icon to look better in dark mode
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
 
Colour
Colour
 
Shape
 

Component Source Code

Please click here to download the component source project: FC_Comp_Source_EB_LED_BL0167.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_EB_LED_BL0167.fcfx