18 void setup()
override;
35 auto amount =
static_cast<uint16_t
>(state * 0x3FF);
void write_state(float state) override
void set_data_pin(GPIOPin *data_pin)
Base class for all output components that can output a variable level, like PWM.
void set_channel_current_(uint8_t channel, uint8_t current)
void set_clock_pin(GPIOPin *clock_pin)
void set_channel(uint8_t channel)
void dump_config() override
std::vector< uint16_t > pwm_amounts_
void write_buffer_(uint8_t *buffer, uint8_t size)
void set_channel_value_(uint8_t channel, uint16_t value)
void loop() override
Send new values if they were updated.
void set_parent(BP5758D *parent)
float get_setup_priority() const override
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
void set_current(uint8_t current)
std::vector< uint8_t > channel_current_
Implementation of SPI Controller mode.
void write_bit_(bool value)
void write_byte_(uint8_t data)
uint8_t correct_current_level_bits_(uint8_t current)