diff --git a/components/es8388/select/dac_output_select.cpp b/components/es8388/select/dac_output_select.cpp new file mode 100644 index 0000000..5204787 --- /dev/null +++ b/components/es8388/select/dac_output_select.cpp @@ -0,0 +1,10 @@ +#include "dac_output_select.h" + +namespace esphome::es8388 { + +void DacOutputSelect::control(size_t index) { + this->publish_state(index); + this->parent_->set_dac_output(static_cast(index)); +} + +} // namespace esphome::es8388 \ No newline at end of file