GroveLEDBar Class
- ID: groveledbar
- Name: LED Bar
- Other Names: MY9221 LED Bar
- Category: display
- Manufacturer: seeed
- Link: http://www.seeedstudio.com/wiki/Grove_-_LED_Bar
- Connection: gpio
- Kit: eak
This is a 10-segment LED bar, with 8 green segments, 1 yellow segment, and one red segment. They can be daisy chained together so that this module can control multiple LED bars.
Item Index
Methods
Methods
GroveLEDBar
-
dataPin
-
clockPin
-
instances
Instantiates an GroveLEDBar object
Parameters:
-
dataPin
NumberData pin
-
clockPin
NumberClock pin
-
instances
NumberNumber of daisy-chained Grove LED Bars, default 1
Returns:
setBarLevel
-
level
-
greenToRed
-
barNumber
Sets the bar level
Parameters:
-
level
NumberSelected level for the bar (0 - 10). 0 is off
-
greenToRed
Booleantrue if you start the level on the first green LED, false otherwise
-
barNumber
NumberIf you have multiple LED bars chained together, this argument selects a specific bar starting at 0. The default is 0.