API for the Grove Circular LED module.
More...
This is a circular LED ring based on the MY9221 chip. It is often used with a rotary encoder and has 24 controllable LEDs.
Instantiates an MY9221 object
- Parameters
-
Returns the name of the component
int setLevel |
( |
short |
level, |
|
|
boolean |
direction |
|
) |
| |
Sets the lighting status
- Parameters
-
level | Selected level for the circular LED (0-24) |
direction | Up or down; up is true and default |
int setSpinner |
( |
short |
position | ) |
|
Sets the spinner (lights up all the other LEDs but one)
- Parameters
-
position | Selected position for the spinner (0-23) |
int setStatus |
( |
boolean[] |
status | ) |
|
Sets the lighting status
- Parameters
-
status | Boolean array (24 elements) |
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/upm-doc-stable/build-33/src/grovecircularled/GroveCircularLED.java