Component: LED (BL0167) (E-blocks 2)
Author | Matrix TSL |
Version | 1.0 (Release) |
Category | E-blocks 2 |
Contents
LED (BL0167) component
LED component to drive the E-blocks 2 BL0167 LED board. Provides eight individually addressable LEDs.
Examples
No additional examples
Downloadable macro reference
BarGraph
Turns on the first N elements of the array - for generating bar graph metes etc.
Parameters
- BYTE Length
- How many items to light up. Range 0-8
Return value
- This call does not return a value
LEDOn
Turns on the selected LED leaving the other LEDs as was.
Parameters
- BYTE Index
- LED to switch on. Range: 0-7
Return value
- This call does not return a value
AllOn
Switches On All LEDs.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
LEDOff
Turns off the selected LED leaving the other LEDs as was.
Parameters
- BYTE Index
- LED to switch off. Range: 0-7
Return value
- This call does not return a value
PointGraph
Turns on the Indexed LED and turns all others off.
Does nothing if the index is out of range.
Parameters
- BYTE Index
- The LED to light. Range: 0-7
Return value
- This call does not return a value
WriteValue
Write a number which is presented on the LEDs in binary.
Parameters
- BYTE Value
- Value to write to the LEDs. Range: 0-255
Return value
- This call does not return a value
AllOff
Switches Off All LEDs.
Parameters
- This macro has no parameters
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Output Mode
This property is of type Fixed list of ints and can be referenced with the variable name OutputMode.
No additional information
Port
This property is of type Digital port byte and can be referenced with the variable name Port.
No additional information