|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
RGB LED state holder with 8-bit per-channel duty cycle. More...
#include <rgb_led.hpp>
Public Member Functions | |
| RgbLed () | |
| void | set_rgb (uint8_t r, uint8_t g, uint8_t b) |
| Set per-channel duty cycle (0-255) | |
| void | set_color (Color color) |
| Set from Color enum (full brightness per active channel) | |
| void | off () |
| Turn off all channels. | |
| RgbLedState | state () const |
| Current state. | |
RGB LED state holder with 8-bit per-channel duty cycle.
Definition at line 56 of file rgb_led.hpp.
|
inline |
Definition at line 58 of file rgb_led.hpp.
|
inline |
Turn off all channels.
Definition at line 76 of file rgb_led.hpp.
|
inline |
Set from Color enum (full brightness per active channel)
Definition at line 68 of file rgb_led.hpp.
|
inline |
Set per-channel duty cycle (0-255)
Definition at line 61 of file rgb_led.hpp.
|
inline |
Current state.
Definition at line 83 of file rgb_led.hpp.
Referenced by sbl::led::write(), and sbl::led::write().