Difference between revisions of "Component: LED (BL0167) (E-blocks 2)"
(XML import - Pre 8.0 release) |
|||
Line 18: | Line 18: | ||
LED component to drive the E-blocks 2 BL0167 LED board. | LED component to drive the E-blocks 2 BL0167 LED board. | ||
Provides eight individually addressable LEDs. | Provides eight individually addressable LEDs. | ||
+ | |||
+ | There are component macros in flowcode 8 to turn a selected LED on or off, or you can even use macros to turn all LEDs on or off. Make sure the LED component is connected to the correct port in flowcode which corresponds to the port that it’s connected to on your E-blocks 2 upstream board. When selecting an individual LED to turn on or off you are asked for the index value (0-7), which is the large number shown underneath each LED on the E-blocks 2 board. | ||
==Examples== | ==Examples== |
Revision as of 14:30, 7 September 2018
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.
There are component macros in flowcode 8 to turn a selected LED on or off, or you can even use macros to turn all LEDs on or off. Make sure the LED component is connected to the correct port in flowcode which corresponds to the port that it’s connected to on your E-blocks 2 upstream board. When selecting an individual LED to turn on or off you are asked for the index value (0-7), which is the large number shown underneath each LED on the E-blocks 2 board.
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