44 void setup()
override;
60 auto amount =
static_cast<uint8_t
>(state * 0xff);
void set_rgb_current(SM2135Current rgb_current)
void set_separate_modes(bool separate_modes)
void sm2135_set_low_(GPIOPin *pin)
void sm2135_set_high_(GPIOPin *pin)
Base class for all output components that can output a variable level, like PWM.
SM2135Current cw_current_
void set_channel_value_(uint8_t channel, uint8_t value)
void set_clock_pin(GPIOPin *clock_pin)
void set_channel(uint8_t channel)
float get_setup_priority() const override
SM2135Current rgb_current_
void dump_config() override
void write_byte_(uint8_t data)
std::vector< uint8_t > pwm_amounts_
void write_state(float state) override
void write_buffer_(uint8_t *buffer, uint8_t size)
void set_parent(SM2135 *parent)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
void loop() override
Send new values if they were updated.
void set_data_pin(GPIOPin *data_pin)
void set_cw_current(SM2135Current cw_current)
Implementation of SPI Controller mode.