20 void setup()
override;
36 auto amount = uint8_t(state * 0xFF);
58 for (uint8_t mask = 0x80; mask; mask >>= 1) {
virtual void digital_write(bool value)=0
void set_clock_pin(GPIOPin *clock_pin)
Base class for all output components that can output a variable level, like PWM.
void set_channel_value_(uint8_t channel, uint8_t value)
void write_state(float state) override
float get_setup_priority() const override
void set_num_chips(uint8_t num_chips)
std::vector< uint8_t > pwm_amounts_
void set_num_channels(uint8_t num_channels)
void dump_config() override
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
void set_data_pin(GPIOPin *data_pin)
void write_bit_(bool value)
Implementation of SPI Controller mode.
void set_channel(uint8_t channel)
void loop() override
Send new values if they were updated.
void set_parent(SM16716 *parent)
void write_byte_(uint8_t data)