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