44 void setup()
override;
45 void dump_config()
override;
55 if (this->pwm_amounts_[channel] != value)
57 this->pwm_amounts_[channel] = value;
64 uint8_t min_channel_{0xFF};
65 uint8_t max_channel_{0x00};
66 uint16_t pwm_amounts_[16] = {
const uint8_t PCA9685_MODE_OUTPUT_ONACK
Channel update happens upon ACK (post-set) rather than on STOP (endTransmission)
float get_setup_priority() const override
Base class for all output components that can output a variable level, like PWM.
const uint8_t PCA9685_MODE_INVERTED
Inverts polarity of channel output signal.
void set_parent(PCA9685Output *parent)
PCA9685 float output component.
BedjetMode mode
BedJet operating mode.
void set_channel_value_(uint8_t channel, uint16_t value)
void set_frequency(float frequency)
PCA9685Output(uint8_t mode=PCA9685_MODE_OUTPUT_ONACK|PCA9685_MODE_OUTPUT_TOTEM_POLE)
void write_state(float state) override
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
void set_extclk(bool extclk)
Implementation of SPI Controller mode.
const uint8_t PCA9685_MODE_OUTPUT_TOTEM_POLE
Use a totem-pole (push-pull) style output rather than an open-drain structure.
const uint8_t PCA9685_MODE_OUTNE_HIGHZ
For active low output enable, sets channel output to high-impedance state.
This Class provides the methods to read/write bytes from/to an i2c device.
void set_channel(uint8_t channel)
const uint8_t PCA9685_MODE_OUTNE_LOW
Similarly, sets channel output to high if in totem-pole mode, otherwise.