ESPHome
2025.6.1
Loading...
Searching...
No Matches
esphome
components
es8388
select
dac_output_select.cpp
Go to the documentation of this file.
1
#include "
dac_output_select.h
"
2
3
namespace
esphome
{
4
namespace
es8388 {
5
6
void
DacOutputSelect::control
(
const
std::string &value) {
7
this->
publish_state
(value);
8
this->
parent_
->set_dac_output(
static_cast<
DacOutputLine
>
(this->
index_of
(value).value()));
9
}
10
11
}
// namespace es8388
12
}
// namespace esphome
esphome::Parented< ES8388 >::parent_
ES8388 * parent_
Definition
helpers.h:550
esphome::es8388::DacOutputSelect::control
void control(const std::string &value) override
Definition
dac_output_select.cpp:6
esphome::select::Select::index_of
optional< size_t > index_of(const std::string &option) const
Find the (optional) index offset of the provided option value.
Definition
select.cpp:35
esphome::select::Select::publish_state
void publish_state(const std::string &state)
Definition
select.cpp:9
dac_output_select.h
esphome::es8388::DacOutputLine
DacOutputLine
Definition
es8388.h:17
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
Generated by
1.12.0