14 void setup()
override;
BedjetMode mode
BedJet operating mode.
This class simplifies creating components that periodically check a state.
This Class provides the methods to read/write bytes from/to an i2c device.
I2CRegister reg(uint8_t a_register)
calls the I2CRegister constructor
void activate()
Activate with the configured power mode; re-initializes first when the mode changed.
void set_selected_channel(ChannelSelect channel)
bool select_page_(uint8_t page)
void reset()
Software reset and re-initialization, leaving the amplifier on or off as last requested.
void set_vol_range_max(float max_val)
bool set_volume(float volume) override
void dump_config() override
void set_power_mode(uint8_t power_mode)
bool update_bits_(uint8_t reg, uint8_t mask, uint8_t value)
bool set_mute_off() override
bool set_mute_(bool muted)
bool apply_config()
Write the amp level, channel and volume range to the device.
uint8_t active_mode_() const
bool apply_amp_and_channel_config_()
float get_setup_priority() const override
bool set_power_mode_(uint8_t power_mode)
uint8_t applied_power_mode_
bool set_mute_on() override
void set_amp_level(uint8_t amp_level)
ChannelSelect selected_channel_
void set_vol_range_min(float min_val)
bool write_mode_ctrl_(uint8_t mode)
constexpr float IO
For components that represent GPIO pins like PCF8573.