From 7508c32ef1d6fee3127e3462d0bc866a73baeb6c Mon Sep 17 00:00:00 2001 From: uncarvedblock <1+uncarvedblock@git.franklin57.com> Date: Sat, 31 Oct 2026 13:00:17 -0400 Subject: [PATCH] Add components/es8388/select/adc_input_mic_select.cpp --- components/es8388/select/adc_input_mic_select.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 components/es8388/select/adc_input_mic_select.cpp diff --git a/components/es8388/select/adc_input_mic_select.cpp b/components/es8388/select/adc_input_mic_select.cpp new file mode 100644 index 0000000..4551067 --- /dev/null +++ b/components/es8388/select/adc_input_mic_select.cpp @@ -0,0 +1,10 @@ +#include "adc_input_mic_select.h" + +namespace esphome::es8388 { + +void ADCInputMicSelect::control(size_t index) { + this->publish_state(index); + this->parent_->set_adc_input_mic(static_cast(index)); +} + +} // namespace esphome::es8388 \ No newline at end of file