9 namespace sm10bit_base {
27 void setup()
override;
38 auto amount =
static_cast<uint16_t
>(state * 0x3FF);
uint8_t max_power_color_channels_
void write_byte_(uint8_t data)
Base class for all output components that can output a variable level, like PWM.
void write_state(float state) override
void set_parent(Sm10BitBase *parent)
std::vector< uint16_t > pwm_amounts_
float get_setup_priority() const override
void dump_config() override
void set_channel(uint8_t channel)
void write_bit_(bool value)
void set_model(uint8_t model_id)
void set_data_pin(GPIOPin *data_pin)
void set_max_power_color_channels(uint8_t max_power_color_channels)
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
void write_buffer_(uint8_t *buffer, uint8_t size)
void set_clock_pin(GPIOPin *clock_pin)
Implementation of SPI Controller mode.
uint8_t max_power_white_channels_
void set_max_power_white_channels(uint8_t max_power_white_channels)
void set_channel_value_(uint8_t channel, uint16_t value)