19#ifndef SBL_COMPONENTS_DISPLAY_RGB_LED_HPP_
20#define SBL_COMPONENTS_DISPLAY_RGB_LED_HPP_
61 void set_rgb(uint8_t r, uint8_t g, uint8_t b) {
69 uint8_t c =
static_cast<uint8_t
>(color);
70 r_ = (c & 4) ? 255 : 0;
71 g_ = (c & 2) ? 255 : 0;
72 b_ = (c & 1) ? 255 : 0;
RGB LED state holder with 8-bit per-channel duty cycle.
RgbLedState state() const
Current state.
void set_color(Color color)
Set from Color enum (full brightness per active channel)
void off()
Turn off all channels.
void set_rgb(uint8_t r, uint8_t g, uint8_t b)
Set per-channel duty cycle (0-255)
Color
3-bit color enum — all 8 RGB combinations
Root namespace for all Sound Byte Libs functionality.