Component: LED (EB004) (E-blocks 1)
Author | Matrix TSL |
Version | 1.1 |
Category | E-blocks 1 |
Contents
LED component
An LED matrix made up of standard PCB mount 5mm LEDs.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_LED_Array_EB004.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_LED_Array_EB004.fcfx
Detailed description
No detailed description exists yet for this component
Examples
LEDs can be wired either active high or active low. The LED components should each have a property allowing you to configure which LED type your using.
An active high LED will light when the microcontroller pin is outputting a logic 1 and be off when the microcontroller pin is outputting a logic 0 or in input mode.
An active low LED will light when the microcontroller pin is outputting a logic 0 and be off when the microcontroller pin is outputting a logic 1 or in input mode.
The series resistor can be on either side of the LED and acts to protect the LED from damage due to excess current. The value of resistor used can be changed based on the brightness of the LED and power consumption.
This LED Calculator tool is a good resource for calculating the correct LED series protection resistor.
Macro reference
AllOff
![]() |
AllOff |
Turns off all elements | |
![]() |
Return |
AllOn
![]() |
AllOn |
Turns on all elements | |
![]() |
Return |
BarGraph
![]() |
BarGraph |
Turns on the first N elements of the array - for generating bar graph metes etc. | |
![]() |
Length |
How many items to light up. | |
![]() |
Return |
LEDOff
![]() |
LEDOff |
Turn off the selected led. | |
![]() |
Index |
Index of the LED to turn on. | |
![]() |
Return |
LEDOn
![]() |
LEDOn |
Turn on the selected LED. | |
![]() |
Index |
Index of the LED to turn on. | |
![]() |
Return |
PointGraph
![]() |
PointGraph |
Turns on the Indexed LED and turns all others off. Does nothing if the index is out of range. | |
![]() |
Index |
The LED to show. | |
![]() |
Return |
WriteValue
![]() |
WriteValue |
Write a number which is presented on the LEDs in binary. | |
![]() |
Value |
Provide a value to be written to the LEDs in binary | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Connections |
![]() |
Output Mode |
Choose a single port for all LEDs, or to allocate them to arbitrary pins. | |
![]() |
Port |