25 void setup()
override;
41 auto amount =
static_cast<uint16_t
>(state * 0xfff);
51 if (channel >= this->
num_chips_ * N_CHANNELS_PER_CHIP)
std::vector< uint16_t > pwm_amounts_
void set_channel_value_(uint16_t channel, uint16_t value)
void write_state(float state) override
Base class for all output components that can output a variable level, like PWM.
void set_data_pin(GPIOPin *data_pin)
void set_outenable_pin(GPIOPin *outenable_pin)
void set_clock_pin(GPIOPin *clock_pin)
void set_num_chips(uint8_t num_chips)
const uint8_t N_CHANNELS_PER_CHIP
void set_parent(TLC5947 *parent)
float get_setup_priority() const override
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
void dump_config() override
Implementation of SPI Controller mode.
void set_lat_pin(GPIOPin *lat_pin)
void set_channel(uint8_t channel)
void loop() override
Send new values if they were updated.