Component: LED Array (LEDs)
From Flowcode Help
(Redirected from Component: ID b07ae733 c144 4558 979a be737044519c)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | LEDs |
Contents
LED Array component
An array of LED indicators equally spaced and complete with labels to indicate their meaning. Embedded can be used to control an 8-bit port or up to 8 individual pins.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_LED_Array_2dgi.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_LED_Array_2dgi.fcfx
Detailed description
No detailed description exists yet for this component
Examples
Each segment will require a current limiting resistor.
This LED Calculator tool is a good resource for calculating the correct LED series protection resistor.
Macro reference
AllOff
AllOff | |
Turns off all elements | |
- VOID | Return |
AllOn
AllOn | |
Turns on all elements | |
- 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. | |
- VOID | Return |
LEDOff
LEDOff | |
Turn off the selected led. | |
- BYTE | Index |
Index of the LED to turn on. | |
- VOID | Return |
LEDOn
LEDOn | |
Turn on the selected LED. | |
- BYTE | Index |
Index of the LED to turn on. | |
- 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 show. | |
- VOID | Return |
WriteValue
WriteValue | |
Write a number which is presented on the LEDs in binary. | |
- BYTE | Value |
Provide a value to be written to the LEDs in binary | |
- VOID | Return |