mirror of
https://github.com/esphome/esphome.git
synced 2025-11-17 23:35:47 +00:00
Add es8388 audio_dac (#8342)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
12
esphome/components/es8388/select/adc_input_mic_select.cpp
Normal file
12
esphome/components/es8388/select/adc_input_mic_select.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "adc_input_mic_select.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace es8388 {
|
||||
|
||||
void ADCInputMicSelect::control(const std::string &value) {
|
||||
this->publish_state(value);
|
||||
this->parent_->set_adc_input_mic(static_cast<AdcInputMicLine>(this->index_of(value).value()));
|
||||
}
|
||||
|
||||
} // namespace es8388
|
||||
} // namespace esphome
|
||||
Reference in New Issue
Block a user