10 const uint16_t max_duty = 4095;
11 const float duty_rounded = roundf(state * max_duty);
12 auto duty =
static_cast<uint16_t
>(duty_rounded);
void set_channel_value_(MCP4728ChannelIdx channel, uint16_t value)
MCP4728Component * parent_
void write_state(float state) override
MCP4728ChannelIdx channel_
Implementation of SPI Controller mode.