Jump to content

Component: LED Bar v2.0 (Grove 104020006) (104020006) (LEDs)

From Flowcode Help
Revision as of 16:19, 7 January 2022 by Wiki bot (talk | contribs) (Created page with "{| style="width:50%" |- | width="20%" style="color:gray;" | Author | Matrix TSL |- | width="20%" style="color:gray;" | Version | 1.0 |- | width="20%" style="color:gray...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Author Matrix TSL
Version 1.0
Category LEDs


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 
- UINT Data
 
- VOID Return


LatchDataSim
Latches the data and shifts the new input to the output. 
- VOID 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 
- BYTE Level
Range: 0-10 
- VOID 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 
- BYTE Level
Range: 0-10 
- VOID 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 
- BYTE LED
Range: 0-9 
- BYTE State
0=Off / 1=On 
- VOID Return



Property reference

Properties
Data
Data pin  
Clock
Clock pin  
Connections
Simulations