52 void setup()
override;
54 void dump_config()
override;
63 bool set_volume(
float volume)
override;
67 float volume()
override;
71 bool set_mute_off()
override {
return this->set_mute_state_(
false); }
75 bool set_mute_on()
override {
return this->set_mute_state_(
true); }
77 bool is_muted()
override {
return this->is_muted_; }
85 this->resolution_in_ = resolution;
86 this->resolution_out_ = resolution;
106 bool configure_clock_();
110 bool configure_format_();
114 bool configure_mic_();
119 bool set_mute_state_(
bool mute_state);
125 bool sclk_inverted_{
false};
126 bool mclk_inverted_{
false};
127 uint32_t mclk_multiple_{256};
const float DATA
For components that import data from directly connected sensors like DHT.
ES8311Resolution resolution_in_
void set_bits_per_sample(ES8311Resolution resolution)
void set_use_mic(bool use_mic)
uint32_t sample_frequency_
void set_sample_frequency(uint32_t sample_frequency)
ES8311Resolution resolution_out_
void set_use_mclk(bool use_mclk)
bool set_mute_on() override
Enables mute for audio out.
Implementation of SPI Controller mode.
bool set_mute_off() override
Disables mute for audio out.
This Class provides the methods to read/write bytes from/to an i2c device.
float get_setup_priority() const override
void set_mic_gain(ES8311MicGain mic_gain)