24 void play(
const Ts &...
x)
override {
25 if (this->
len_ >= 0) {
27 this->
parent_->write_array(this->
code_.
data,
static_cast<size_t>(this->len_));
38 std::vector<uint8_t> (*
func)(Ts...);
Helper class to easily give an object a parent of type T.
void play(const Ts &...x) override
union esphome::uart::UARTWriteAction::Code code_
void set_data_template(std::vector< uint8_t >(*func)(Ts...))
void set_data_static(const uint8_t *data, size_t len)
std::vector< uint8_t >(* func)(Ts...)