diff --git a/esphome/components/es8388/es8388_component.cpp b/esphome/components/es8388/es8388_component.cpp index ac7a88f97e..914d5c5f05 100644 --- a/esphome/components/es8388/es8388_component.cpp +++ b/esphome/components/es8388/es8388_component.cpp @@ -248,30 +248,5 @@ void ES8388Component::execute_macro(std::string name) { } } -void ES8388Component::powerup_dac() { this->write_byte(0x04, 0x3B); } -// void ES8388Component::powerup_adc() {} -void ES8388Component::powerup() { - this->write_byte(0x01, 0x50); // LPVrefBuf - low power - this->write_byte(0x02, 0x00); // power up DAC/ADC without resetting DMS, DEM, filters & serial -} - -void ES8388Component::powerdown_dac() { this->write_byte(0x04, 0xC0); } -void ES8388Component::powerdown_adc() {} -void ES8388Component::powerdown() { - this->powerdown_dac(); - this->powerdown_adc(); -} - -void ES8388Component::clock_mode(uint8_t mode) { - if (mode == ES8388_CLK_MODE_SLAVE) { - this->write_byte(0x08, 0x00); - } else { - this->write_byte(0x08, 0x80); - // TODO multipliers - } -} - -void ES8388Component::mute() { this->write_byte(0x19, 0x04); } - } // namespace es8388 } // namespace esphome diff --git a/esphome/components/es8388/es8388_component.h b/esphome/components/es8388/es8388_component.h index 0549611dad..5e4132600b 100644 --- a/esphome/components/es8388/es8388_component.h +++ b/esphome/components/es8388/es8388_component.h @@ -30,18 +30,6 @@ class ES8388Component : public Component, public i2c::I2CDevice { void register_macro(std::string name, Instructions instructions); void execute_macro(std::string name); - void powerup_dac(); - // void powerup_adc(); - void powerup(); - - void powerdown_dac(); - void powerdown_adc(); - void powerdown(); - - void clock_mode(uint8_t mode); - - void mute(); - protected: void setup_raspiaudio_radio(); void setup_raspiaudio_muse_luxe();