diff --git a/esphome/components/es8388/__init__.py b/esphome/components/es8388/__init__.py index 3ec2b96523..1e0b011190 100644 --- a/esphome/components/es8388/__init__.py +++ b/esphome/components/es8388/__init__.py @@ -3,12 +3,11 @@ from esphome.automation import maybe_simple_id import esphome.codegen as cg import esphome.config_validation as cv from esphome.components import i2c -from esphome.const import CONF_ID +from esphome.const import CONF_ID, CONF_PRESET from esphome.util import Registry CONF_ES8388_ID = "es8388_id" -CONF_PRESET = "preset" CONF_INIT_INSTRUCTIONS = "init_instructions" CONF_MACROS = "macros" CONF_INSTRUCTIONS = "instructions" diff --git a/esphome/components/es8388/es8388_component.cpp b/esphome/components/es8388/es8388_component.cpp index ccd4f7c491..58a20af64d 100644 --- a/esphome/components/es8388/es8388_component.cpp +++ b/esphome/components/es8388/es8388_component.cpp @@ -9,9 +9,6 @@ namespace es8388 { static const char *const TAG = "es8388"; -#define ES8388_CLK_MODE_SLAVE 0 -#define ES8388_CLK_MODE_MASTER 1 - void ES8388Component::setup() { switch (this->preset_) { case ES8388Preset::RASPIAUDIO_MUSE_LUXE: @@ -132,7 +129,7 @@ void ES8388Component::setup_raspiaudio_radio() { error = error || not this->write_byte(1, 0x50); // powerup error = error || not this->write_byte(2, 0x00); - // slave mode + // follower mode error = error || not this->write_byte(8, 0x00); // DAC powerdown error = error || not this->write_byte(4, 0xC0);