|
upm
1.5.0
Sensor/Actuator repository for libmraa (v1.8.0)
|
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.
Public Member Functions | |
| GroveCircularLED (int dataPin, int clockPin) | |
| virtual | ~GroveCircularLED () |
| void | setSpinner (uint8_t position) |
| void | setLevel (uint8_t level, bool direction=true) |
Public Member Functions inherited from MY9221 | |
| MY9221 (int dataPin, int clockPin, int instances=1) | |
| virtual | ~MY9221 () |
| void | setAutoRefresh (bool enable) |
| void | setLED (int led, bool on) |
| void | setLowIntensityValue (int intensity) |
| void | setHighIntensityValue (int intensity) |
| void | setAll () |
| void | clearAll () |
| void | refresh () |
Additional Inherited Members | |
Protected Attributes inherited from MY9221 | |
| my9221_context | m_my9221 |
| GroveCircularLED | ( | int | dataPin, |
| int | clockPin | ||
| ) |
Instantiates an GroveCircularLED object
| dataPin | Data pin |
| clockPin | Clock pin |

|
virtual |
GroveCircularLED destructor
| void setSpinner | ( | uint8_t | position | ) |
Sets the spinner (turns off all LEDs but selected one)
| position | Selected position for the spinner (0-23) |

| void setLevel | ( | uint8_t | level, |
| bool | direction = true |
||
| ) |
Sets the lighting status
| level | Selected level for the circular LED (0-23) |
| direction | Up or down; up is true and default |



1.8.11