24 void setup()
override;
40 auto amount =
static_cast<uint16_t
>(state * 0x3FF);
void dump_config() override
Base class for all output components that can output a variable level, like PWM.
void set_parent(BP1658CJ *parent)
void set_data_pin(GPIOPin *data_pin)
void write_state(float state) override
void write_buffer_(uint8_t *buffer, uint8_t size)
void set_clock_pin(GPIOPin *clock_pin)
uint8_t max_power_color_channels_
void set_channel_value_(uint8_t channel, uint16_t value)
float get_setup_priority() const override
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 write_bit_(bool value)
Implementation of SPI Controller mode.
std::vector< uint16_t > pwm_amounts_
void set_max_power_white_channels(uint8_t max_power_white_channels)
void set_max_power_color_channels(uint8_t max_power_color_channels)
void set_channel(uint8_t channel)
void write_byte_(uint8_t data)
uint8_t max_power_white_channels_