|
blip
0.1
|
A class representing an LED array. More...
#include <LEDArray.hpp>
Public Member Functions | |
| ~LEDArray () | |
| Destructor. More... | |
| uint_t | getCount () const |
| Get the number of LEDs in the LED array. More... | |
| uint_t | getPrimaryIndex () const |
| Get the index of the primary LED. More... | |
| uint32_t | getColorSupportMask () const |
| Get a bitmask that indicates which LEDs support changing of their colors. More... | |
| bool | supportsColor (uint_t index) const |
| Test if the LED with the given index supports changing of its color. More... | |
| void | setActivated (uint_t index, bool activated) |
| Activate or deactivate the LED with the given index. More... | |
| bool | isActivated (uint_t index) |
| Test if the LED with the given index is activated. More... | |
| void | setActivatedMask (uint32_t mask) |
| Specify which LEDs should be enabled and disabled via a bitmask. More... | |
| uint32_t | getActivatedMask () |
| Get a bitmask which indicates which LEDs are activated and which are deactivated. More... | |
| void | setColor (uint_t index, const Color &color) |
| Set the color of the LED with the given index. More... | |
| Color | getColor (uint_t index) |
| Get the color of the LED with the given index. More... | |
A class representing an LED array.
Instances of this class may be obtained from an AudioEngine.
NOTE: As of Android platform version 9, the OpenSL implementation is missing LED array functionality.
| ~LEDArray | ( | ) |
Destructor.
| uint32_t getActivatedMask | ( | ) |
Get a bitmask which indicates which LEDs are activated and which are deactivated.
| AudioException | If an error occurs. |
| Color getColor | ( | uint_t | index | ) |
Get the color of the LED with the given index.
| index | The LED index. |
| AudioException | If an error occurs. |
|
inline |
Get a bitmask that indicates which LEDs support changing of their colors.
|
inline |
Get the number of LEDs in the LED array.
|
inline |
Get the index of the primary LED.
| bool isActivated | ( | uint_t | index | ) |
Test if the LED with the given index is activated.
| index | The LED index. |
| AudioException | If an error occurs. |
| void setActivated | ( | uint_t | index, |
| bool | activated | ||
| ) |
Activate or deactivate the LED with the given index.
| index | The LED index. |
| activated | A flag indicating whether the LED should be activated (turned on) or deactivated (turned off). |
| AudioException | If an error occurs. |
| void setActivatedMask | ( | uint32_t | mask | ) |
Specify which LEDs should be enabled and disabled via a bitmask.
| mask | The bitmask, wherein 1 bits indicate which LEDs should be activated and 0 bits indicate which should be deactivated. |
| AudioException | If an error occurs. |
| void setColor | ( | uint_t | index, |
| const Color & | color | ||
| ) |
Set the color of the LED with the given index.
| index | The LED index. |
| color | The new color. The hardware will select the closest possible color. |
| AudioException | If an error occurs. |
| bool supportsColor | ( | uint_t | index | ) | const |
Test if the LED with the given index supports changing of its color.