GroveCircularLED Class
- ID: grovecircularled
- Name: Circular LED
- Category: display
- Manufacturer: seeed
- Link: http://www.seeedstudio.com/wiki/Grove_-_Circular_LED
- Connection: gpio
This is a circular LED ring based on the MY9221 chip. It is often used with a rotary encoder and has 24 controllable LEDs.
Item Index
Methods
Methods
GroveCircularLED
(
Number
-
dataPin
-
clockPin
Instantiates an GroveCircularLED object
Parameters:
-
dataPin
NumberData pin
-
clockPin
NumberClock pin
Returns:
Number:
setSpinner
(
-
position
Sets the spinner (turns off all LEDs but selected one)
Parameters:
-
position
NumberSelected position for the spinner (0-23)
setLevel
(
-
level
-
direction
Sets the lighting status
Parameters:
-
level
NumberSelected level for the circular LED (0-23)
-
direction
BooleanUp or down; up is true and default