Component: LED Bar v2.0 (Grove 104020006) (104020006) (LEDs)
From Flowcode Help
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | LEDs |
Contents
LED Bar v2.0 (Grove 104020006) component
LED Bar is comprised of a 10 segment LED gauge bar and an MY9221 LED controlling chip. It can be used as a indicator for remaining battery life, voltage, water level, music volume or other values that require a gradient display. There are 10 LED bars in the LED bar graph: one red, one yellow, one light green, and the rest green. It lights up the LEDs sequentially from red to green, so the entire bar graph is lit up in the end.
Component Pack
SENSORS
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Downloadable macro reference
![]() |
SetBinary |
Allows a binary value to be shown on the LEDs. Red = Bit0 Yellow = Bit1 Light Green = Bit2 Green = Bit3 - Bit9 | |
![]() |
Data |
![]() |
Return |
![]() |
LatchDataSim |
Latches the data and shifts the new input to the output. | |
![]() |
Return |
![]() |
SetLevelReverse |
Set level 0-10 in reverse, green to red, where 10 is red Level 0 means all leds off while level 5 means leds 1-5 on and 6-10 will be off | |
![]() |
Level |
Range: 0-10 | |
![]() |
Return |
![]() |
SetLevel |
Set level 0-10, red to green, where 1 is red Level 0 means all leds off while level 5 means leds 1-5 on and 6-10 will be off | |
![]() |
Level |
Range: 0-10 | |
![]() |
Return |
![]() |
SetSingleLED |
Allows a single LED to be controlled and switched on or off. LED 0 = Red LED 1 = Yellow LED 2 = Light Green LED 3-9 = Green | |
![]() |
LED |
Range: 0-9 | |
![]() |
State |
0=Off / 1=On | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Data |
Data pin | |
![]() |
Clock |
Clock pin | |
![]() |
Connections |
![]() |
Simulations |